提交 185fde6d 编写于 作者: T Tony Lindgren

ARM: OMAP2+: Add minimal clockdomains for dm814x

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: NTony Lindgren <tony@atomide.com>
上级 9444f103
...@@ -216,7 +216,8 @@ extern void __init omap242x_clockdomains_init(void); ...@@ -216,7 +216,8 @@ extern void __init omap242x_clockdomains_init(void);
extern void __init omap243x_clockdomains_init(void); extern void __init omap243x_clockdomains_init(void);
extern void __init omap3xxx_clockdomains_init(void); extern void __init omap3xxx_clockdomains_init(void);
extern void __init am33xx_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 omap44xx_clockdomains_init(void);
extern void __init omap54xx_clockdomains_init(void); extern void __init omap54xx_clockdomains_init(void);
extern void __init dra7xx_clockdomains_init(void); extern void __init dra7xx_clockdomains_init(void);
......
...@@ -165,7 +165,24 @@ static struct clockdomain default_l3_slow_816x_clkdm = { ...@@ -165,7 +165,24 @@ static struct clockdomain default_l3_slow_816x_clkdm = {
.flags = CLKDM_CAN_SWSUP, .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_mpu_816x_clkdm,
&alwon_l3_slow_81xx_clkdm, &alwon_l3_slow_81xx_clkdm,
&alwon_l3_med_81xx_clkdm, &alwon_l3_med_81xx_clkdm,
...@@ -185,10 +202,10 @@ static struct clockdomain *clockdomains_ti81xx[] __initdata = { ...@@ -185,10 +202,10 @@ static struct clockdomain *clockdomains_ti81xx[] __initdata = {
NULL, NULL,
}; };
void __init ti81xx_clockdomains_init(void) void __init ti816x_clockdomains_init(void)
{ {
clkdm_register_platform_funcs(&am33xx_clkdm_operations); clkdm_register_platform_funcs(&am33xx_clkdm_operations);
clkdm_register_clkdms(clockdomains_ti81xx); clkdm_register_clkdms(clockdomains_ti816x);
clkdm_complete_init(); clkdm_complete_init();
} }
#endif #endif
...@@ -554,7 +554,7 @@ void __init ti814x_init_early(void) ...@@ -554,7 +554,7 @@ void __init ti814x_init_early(void)
omap2_prcm_base_init(); omap2_prcm_base_init();
omap3xxx_voltagedomains_init(); omap3xxx_voltagedomains_init();
omap3xxx_powerdomains_init(); omap3xxx_powerdomains_init();
ti81xx_clockdomains_init(); ti814x_clockdomains_init();
ti81xx_hwmod_init(); ti81xx_hwmod_init();
omap_hwmod_init_postsetup(); omap_hwmod_init_postsetup();
if (of_have_populated_dt()) if (of_have_populated_dt())
...@@ -571,7 +571,7 @@ void __init ti816x_init_early(void) ...@@ -571,7 +571,7 @@ void __init ti816x_init_early(void)
omap2_prcm_base_init(); omap2_prcm_base_init();
omap3xxx_voltagedomains_init(); omap3xxx_voltagedomains_init();
omap3xxx_powerdomains_init(); omap3xxx_powerdomains_init();
ti81xx_clockdomains_init(); ti816x_clockdomains_init();
ti81xx_hwmod_init(); ti81xx_hwmod_init();
omap_hwmod_init_postsetup(); omap_hwmod_init_postsetup();
if (of_have_populated_dt()) if (of_have_populated_dt())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册