diff mbox

[v2,07/13] ARM: davinci - adding new type for cpu_clks in soc_info

Message ID 1348683037-9705-8-git-send-email-m-karicheri2@ti.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

Murali Karicheri Sept. 26, 2012, 6:10 p.m. UTC
To define the clock nodes available on a SoC, a new structure is
defined that will be used by SoC specific code to define the clock
table. This table is used by davinci_common_clk_init() to initialize
the clk drivers. Also added a new field dev_clk_lookups to define
clock aliases for devices that share same clocks.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
diff mbox

Patch

diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h
index bdc4aa8..8abee09 100644
--- a/arch/arm/mach-davinci/include/mach/common.h
+++ b/arch/arm/mach-davinci/include/mach/common.h
@@ -54,7 +54,12 @@  struct davinci_soc_info {
 	u32				jtag_id_reg;
 	struct davinci_id		*ids;
 	unsigned long			ids_num;
+#ifdef CONFIG_COMMON_CLK
+	struct davinci_clk_lookup	*cpu_clks;
+	struct davinci_dev_lookup	*dev_clk_lookups;
+#else
 	struct clk_lookup		*cpu_clks;
+#endif
 	u32				*psc_bases;
 	unsigned long			psc_bases_num;
 	u32				pinmux_base;