]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: OMAP2+: Add DPPLS clock manager for dm814x
authorTony Lindgren <tony@atomide.com>
Thu, 3 Dec 2015 20:02:31 +0000 (12:02 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 10 Dec 2015 00:53:46 +0000 (16:53 -0800)
On dm814x we have some clocks at DPLLS and some at PRCM. Let's add a new
omap_prcm_init_data entry for the DPLLS so we can initalize timer clocks
early.

Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/prm_common.c
include/linux/clk/ti.h

index 3fc2cbe52113b4c1b2f12a6f3cc4c33d874f4e30..55acc76113b845f5f68a97484f80b4a727ccd7f7 100644 (file)
@@ -662,6 +662,11 @@ static struct omap_prcm_init_data am3_prm_data __initdata = {
        .index = TI_CLKM_PRM,
        .init = am33xx_prm_init,
 };
+
+static struct omap_prcm_init_data dm814_pllss_data __initdata = {
+       .index = TI_CLKM_PLLSS,
+       .init = am33xx_prm_init,
+};
 #endif
 
 #ifdef CONFIG_ARCH_OMAP4
@@ -715,6 +720,7 @@ static const struct of_device_id const omap_prcm_dt_match_table[] __initconst =
 #endif
 #ifdef CONFIG_SOC_TI81XX
        { .compatible = "ti,dm814-prcm", .data = &am3_prm_data },
+       { .compatible = "ti,dm814-pllss", .data = &dm814_pllss_data },
        { .compatible = "ti,dm816-prcm", .data = &am3_prm_data },
 #endif
 #ifdef CONFIG_ARCH_OMAP2
index 223be696df275f7bc45df8b330699570ba6ef721..57663c162e1c3cfa8d714407f33c886cb3d9c0d5 100644 (file)
@@ -195,6 +195,7 @@ enum {
        TI_CLKM_PRM,
        TI_CLKM_SCRM,
        TI_CLKM_CTRL,
+       TI_CLKM_PLLSS,
        CLK_MAX_MEMMAPS
 };