diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-01-26 22:13:09 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-01-28 20:13:50 -0500 |
commit | 35e424e2c0229aa1e32776fac23902150bd0ab9a (patch) | |
tree | 5d686ee74ae8774afadb0bb6af10563d6c4be0f2 /arch/arm/mach-omap2/Makefile | |
parent | 6ebe0d88f5fead21d6e1ac328acc683c173d26fc (diff) |
OMAP3 clock: split out DPLL3 M2 divider functions into mach-omap2/clkt34xx_dpll3m2.c
Split the DPLL3 M2 divider clock functions out of clock34xx.c and move
them into mach-omap2/clkt34xx_dpll3m2.c. This is intended to make the
clock code easier to understand, since all of the functions needed to
manage the OMAP3 DPLL3 M2 divider are now located in their own file,
rather than being mixed with other, unrelated functions.
Clock debugging is also now more finely-grained, since the DEBUG macro
can now be defined for the DPLL3 M2 clock alone. This should reduce
unnecessary console noise when debugging DVFS.
Also, if at some future point the mach-omap2/ directory is split
into OMAP2/3/4 variants, this clkt file can be placed in the mach-omap34xx/
directory, rather than shared with other chip types that don't use this
clock type.
This patch also lays the groundwork to skip compilation of this
code on OMAP3 chips that don't support DVFS (e.g., AM35xx) via
the Makefile, rather than via #ifdefs.
Thanks to Alexander Shishkin <virtuoso@slind.org> for his comments to
improve the patch description.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Jouni Högander <jouni.hogander@nokia.com>
Cc: Alexander Shishkin <virtuoso@slind.org>
Diffstat (limited to 'arch/arm/mach-omap2/Makefile')
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 7ce5fea7f2bc..34c2867e0f63 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -15,11 +15,12 @@ clock-omap2xxx = clkt2xxx_dpllcore.o \ | |||
15 | clkt2xxx_virt_prcm_set.o \ | 15 | clkt2xxx_virt_prcm_set.o \ |
16 | clkt2xxx_apll.o clkt2xxx_osc.o \ | 16 | clkt2xxx_apll.o clkt2xxx_osc.o \ |
17 | clkt2xxx_sys.o | 17 | clkt2xxx_sys.o |
18 | clock-omap3xxx = clkt34xx_dpll3m2.o | ||
18 | 19 | ||
19 | obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common) \ | 20 | obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common) \ |
20 | $(clock-omap2xxx) | 21 | $(clock-omap2xxx) |
21 | obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common) \ | 22 | obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common) \ |
22 | $(omap-3-4-common) | 23 | $(omap-3-4-common) $(clock-omap3xxx) |
23 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-3-4-common) $(prcm-common) $(clock-common) | 24 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-3-4-common) $(prcm-common) $(clock-common) |
24 | 25 | ||
25 | obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o | 26 | obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o |