ARM: OMAP2: Add minimal dm814x hwmod support
authorTony Lindgren <tony@atomide.com>
Thu, 16 Jul 2015 08:55:58 +0000 (01:55 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 24 Jul 2015 04:39:00 +0000 (21:39 -0700)
Let's add minimal set of dm814x hwmods to have a bootable system.

Cc: Matthijs van Duin <matthijsvanduin@gmail.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod.h
arch/arm/mach-omap2/omap_hwmod_81xx_data.c

index 596af73..056a0e6 100644 (file)
@@ -555,7 +555,7 @@ void __init ti814x_init_early(void)
        omap3xxx_voltagedomains_init();
        omap3xxx_powerdomains_init();
        ti814x_clockdomains_init();
-       ti81xx_hwmod_init();
+       dm814x_hwmod_init();
        omap_hwmod_init_postsetup();
        if (of_have_populated_dt())
                omap_clk_soc_init = dm814x_dt_clk_init;
@@ -572,7 +572,7 @@ void __init ti816x_init_early(void)
        omap3xxx_voltagedomains_init();
        omap3xxx_powerdomains_init();
        ti816x_clockdomains_init();
-       ti81xx_hwmod_init();
+       dm816x_hwmod_init();
        omap_hwmod_init_postsetup();
        if (of_have_populated_dt())
                omap_clk_soc_init = dm816x_dt_clk_init;
index d78c12e..33033ff 100644 (file)
@@ -3878,7 +3878,8 @@ void __init omap_hwmod_init(void)
                soc_ops.init_clkdm = _init_clkdm;
                soc_ops.update_context_lost = _omap4_update_context_lost;
                soc_ops.get_context_lost = _omap4_get_context_lost;
-       } else if (cpu_is_ti816x() || soc_is_am33xx() || soc_is_am43xx()) {
+       } else if (cpu_is_ti814x() || cpu_is_ti816x() || soc_is_am33xx() ||
+                  soc_is_am43xx()) {
                soc_ops.enable_module = _omap4_enable_module;
                soc_ops.disable_module = _omap4_disable_module;
                soc_ops.wait_target_ready = _omap4_wait_target_ready;
index b5d27ec..ed95334 100644 (file)
@@ -755,7 +755,8 @@ extern int omap3xxx_hwmod_init(void);
 extern int omap44xx_hwmod_init(void);
 extern int omap54xx_hwmod_init(void);
 extern int am33xx_hwmod_init(void);
-extern int ti81xx_hwmod_init(void);
+extern int dm814x_hwmod_init(void);
+extern int dm816x_hwmod_init(void);
 extern int dra7xx_hwmod_init(void);
 int am43xx_hwmod_init(void);