mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
163152cbbe
On dm816x the clocks are sourced from a FAPLL (Flying Adder PLL) that does not seem to be used on the other omap variants. There are four instances of the FAPLL on dm816x that each have three to seven child synthesizers. I've set up the FAPLL as a single fapll.c driver. Later on we could potentially have the PLL code generic. To do that, we would have to consider the following: 1. Setting the PLL to bypass mode also sets the child synthesizers into bypass mode. As the bypass rate can also be generated by the PLL in regular mode, there's no way for the child synthesizers to detect the bypass mode based on the parent clock rate. 2. The PLL registers control the power for each of the child syntheriser. Note that the clocks are currently still missing the set_rate implementation so things are still running based on the bootloader values. That's OK for now as most of the outputs have dividers and those can be set using the existing TI component clock code. I have verified that the extclk rates are correct for a few clocks, so adding the set_rate support should be fairly trivial later on. This code is partially based on the TI81XX-LINUX-PSP-04.04.00.02 patches published at: http://downloads.ti.com/dsps/dsps_public_sw/psp/LinuxPSP/TI81XX_04_04/04_04_00_02/index_FDS.html Cc: Brian Hutchinson <b.hutchman@gmail.com> Cc: Paul Walmsley <paul@pwsan.com> Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Michael Turquette <mturquette@linaro.org>
15 lines
638 B
Makefile
15 lines
638 B
Makefile
ifneq ($(CONFIG_OF),)
|
|
obj-y += clk.o autoidle.o clockdomain.o
|
|
clk-common = dpll.o composite.o divider.o gate.o \
|
|
fixed-factor.o mux.o apll.o
|
|
obj-$(CONFIG_SOC_AM33XX) += $(clk-common) clk-33xx.o
|
|
obj-$(CONFIG_SOC_TI81XX) += $(clk-common) fapll.o
|
|
obj-$(CONFIG_ARCH_OMAP2) += $(clk-common) interface.o clk-2xxx.o
|
|
obj-$(CONFIG_ARCH_OMAP3) += $(clk-common) interface.o clk-3xxx.o
|
|
obj-$(CONFIG_ARCH_OMAP4) += $(clk-common) clk-44xx.o
|
|
obj-$(CONFIG_SOC_OMAP5) += $(clk-common) clk-54xx.o
|
|
obj-$(CONFIG_SOC_DRA7XX) += $(clk-common) clk-7xx.o \
|
|
clk-dra7-atl.o
|
|
obj-$(CONFIG_SOC_AM43XX) += $(clk-common) clk-43xx.o
|
|
endif
|