diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-12-08 18:21:29 -0500 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-11 18:16:00 -0500 |
commit | d8a944582da1a4d29a1487ff7f435643505a12a0 (patch) | |
tree | 1e1d946c578c4d5108c86f24f932f55da936ee5d /arch/arm/mach-omap2/Makefile | |
parent | 82e9bd588563c4e22ebb55b684ebec7e310cc715 (diff) |
OMAP2 clock: convert clock24xx.h to clock2xxx_data.c, opp2xxx*
The OMAP2 clock code currently #includes a large .h file full of static
data structures. Instead, define the data in a .c file.
Russell King <linux@arm.linux.org.uk> proposed this new arrangement:
http://marc.info/?l=linux-omap&m=125967425908895&w=2
This patch also deals with most of the flagrant checkpatch violations.
While here, separate the prcm_config data structures out into their own
files, opp2xxx.h and opp24{2,3}0_data.c, and only build in the OPP tables
for the target device. This should save some memory. In the long run,
these prcm_config tables should be replaced with OPP code.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/Makefile')
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index cc56accee3ef..610da0515e1f 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -7,7 +7,7 @@ obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o | |||
7 | 7 | ||
8 | omap-2-3-common = irq.o sdrc.o omap_hwmod.o | 8 | omap-2-3-common = irq.o sdrc.o omap_hwmod.o |
9 | prcm-common = prcm.o powerdomain.o | 9 | prcm-common = prcm.o powerdomain.o |
10 | clock-common = clock.o clockdomain.o | 10 | clock-common = clock.o clock_common_data.o clockdomain.o |
11 | 11 | ||
12 | obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common) | 12 | obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common) |
13 | obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common) | 13 | obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common) |
@@ -41,8 +41,10 @@ obj-$(CONFIG_ARCH_OMAP3) += cm.o | |||
41 | obj-$(CONFIG_ARCH_OMAP4) += cm4xxx.o | 41 | obj-$(CONFIG_ARCH_OMAP4) += cm4xxx.o |
42 | 42 | ||
43 | # Clock framework | 43 | # Clock framework |
44 | obj-$(CONFIG_ARCH_OMAP2) += clock24xx.o | 44 | obj-$(CONFIG_ARCH_OMAP2) += clock2xxx.o clock2xxx_data.o |
45 | obj-$(CONFIG_ARCH_OMAP2420) += opp2420_data.o | ||
45 | obj-$(CONFIG_ARCH_OMAP3) += clock34xx.o clock34xx_data.o | 46 | obj-$(CONFIG_ARCH_OMAP3) += clock34xx.o clock34xx_data.o |
47 | obj-$(CONFIG_ARCH_OMAP2430) += opp2430_data.o | ||
46 | 48 | ||
47 | # EMU peripherals | 49 | # EMU peripherals |
48 | obj-$(CONFIG_OMAP3_EMU) += emu.o | 50 | obj-$(CONFIG_OMAP3_EMU) += emu.o |