]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: OMAP2+: Add minimal clockdomains for dm814x
authorTony Lindgren <tony@atomide.com>
Thu, 16 Jul 2015 08:55:57 +0000 (01:55 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 16 Jul 2015 09:09:33 +0000 (02:09 -0700)
For now, let's just add the ones shared with dm816x.
The dm814x specific ones can be added as they are tested.

Cc: Matthijs van Duin <matthijsvanduin@gmail.com>
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/clockdomain.h
arch/arm/mach-omap2/clockdomains81xx_data.c
arch/arm/mach-omap2/io.c

index 77bab5fb68144df0b509e6de4dfec76dee7930ef..2c398ce1a0f27a628ee882f0cda0f96d66458c3b 100644 (file)
@@ -216,7 +216,8 @@ extern void __init omap242x_clockdomains_init(void);
 extern void __init omap243x_clockdomains_init(void);
 extern void __init omap3xxx_clockdomains_init(void);
 extern void __init am33xx_clockdomains_init(void);
-extern void __init ti81xx_clockdomains_init(void);
+extern void __init ti814x_clockdomains_init(void);
+extern void __init ti816x_clockdomains_init(void);
 extern void __init omap44xx_clockdomains_init(void);
 extern void __init omap54xx_clockdomains_init(void);
 extern void __init dra7xx_clockdomains_init(void);
index ce2a82001d0d5acbf2ceabcdbb84874ff05f3389..53442c86a8208fad0bc62a5921dcbbe64fcf3f30 100644 (file)
@@ -165,7 +165,24 @@ static struct clockdomain default_l3_slow_816x_clkdm = {
        .flags          = CLKDM_CAN_SWSUP,
 };
 
-static struct clockdomain *clockdomains_ti81xx[] __initdata = {
+static struct clockdomain *clockdomains_ti814x[] __initdata = {
+       &alwon_l3_slow_81xx_clkdm,
+       &alwon_l3_med_81xx_clkdm,
+       &alwon_l3_fast_81xx_clkdm,
+       &alwon_ethernet_81xx_clkdm,
+       &mmu_81xx_clkdm,
+       &mmu_cfg_81xx_clkdm,
+       NULL,
+};
+
+void __init ti814x_clockdomains_init(void)
+{
+       clkdm_register_platform_funcs(&am33xx_clkdm_operations);
+       clkdm_register_clkdms(clockdomains_ti814x);
+       clkdm_complete_init();
+}
+
+static struct clockdomain *clockdomains_ti816x[] __initdata = {
        &alwon_mpu_816x_clkdm,
        &alwon_l3_slow_81xx_clkdm,
        &alwon_l3_med_81xx_clkdm,
@@ -185,10 +202,10 @@ static struct clockdomain *clockdomains_ti81xx[] __initdata = {
        NULL,
 };
 
-void __init ti81xx_clockdomains_init(void)
+void __init ti816x_clockdomains_init(void)
 {
        clkdm_register_platform_funcs(&am33xx_clkdm_operations);
-       clkdm_register_clkdms(clockdomains_ti81xx);
+       clkdm_register_clkdms(clockdomains_ti816x);
        clkdm_complete_init();
 }
 #endif
index 820dde8b5b0453f96a6a3c53a4db8e4c3c9abca6..6779a9ff0d10f05cb0e7eec40e659ff16f74cccd 100644 (file)
@@ -554,7 +554,7 @@ void __init ti814x_init_early(void)
        omap2_prcm_base_init();
        omap3xxx_voltagedomains_init();
        omap3xxx_powerdomains_init();
-       ti81xx_clockdomains_init();
+       ti814x_clockdomains_init();
        ti81xx_hwmod_init();
        omap_hwmod_init_postsetup();
        if (of_have_populated_dt())
@@ -571,7 +571,7 @@ void __init ti816x_init_early(void)
        omap2_prcm_base_init();
        omap3xxx_voltagedomains_init();
        omap3xxx_powerdomains_init();
-       ti81xx_clockdomains_init();
+       ti816x_clockdomains_init();
        ti81xx_hwmod_init();
        omap_hwmod_init_postsetup();
        if (of_have_populated_dt())