aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2011-12-16 19:05:02 -0500
committerTony Lindgren <tony@atomide.com>2011-12-16 19:05:02 -0500
commit4a4de1d9b47156525ceb46c7faf6ae4042d90aa7 (patch)
treef90aa422ec96245d8bda6322a85403a55e4f4905
parente5fe29c7198a1f6616286dfc8602a69da165cb3f (diff)
parent91a36bdb3ada99ebf3a613a0dab2d741445ffd7f (diff)
Merge branch 'hwmod_data_fixes_3.2rc' of git://git.pwsan.com/linux-2.6 into fixes-hwmod
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_3xxx_data.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index 7f8915ad5099..126cb49c0de7 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -3198,7 +3198,6 @@ static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
3198 &omap3xxx_timer9_hwmod, 3198 &omap3xxx_timer9_hwmod,
3199 &omap3xxx_timer10_hwmod, 3199 &omap3xxx_timer10_hwmod,
3200 &omap3xxx_timer11_hwmod, 3200 &omap3xxx_timer11_hwmod,
3201 &omap3xxx_timer12_hwmod,
3202 3201
3203 &omap3xxx_wd_timer2_hwmod, 3202 &omap3xxx_wd_timer2_hwmod,
3204 &omap3xxx_uart1_hwmod, 3203 &omap3xxx_uart1_hwmod,
@@ -3245,20 +3244,22 @@ static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
3245 NULL, 3244 NULL,
3246}; 3245};
3247 3246
3247/* GP-only hwmods */
3248static __initdata struct omap_hwmod *omap3xxx_gp_hwmods[] = {
3249 &omap3xxx_timer12_hwmod,
3250 NULL
3251};
3252
3248/* 3430ES1-only hwmods */ 3253/* 3430ES1-only hwmods */
3249static __initdata struct omap_hwmod *omap3430es1_hwmods[] = { 3254static __initdata struct omap_hwmod *omap3430es1_hwmods[] = {
3250 &omap3xxx_iva_hwmod,
3251 &omap3430es1_dss_core_hwmod, 3255 &omap3430es1_dss_core_hwmod,
3252 &omap3xxx_mailbox_hwmod,
3253 NULL 3256 NULL
3254}; 3257};
3255 3258
3256/* 3430ES2+-only hwmods */ 3259/* 3430ES2+-only hwmods */
3257static __initdata struct omap_hwmod *omap3430es2plus_hwmods[] = { 3260static __initdata struct omap_hwmod *omap3430es2plus_hwmods[] = {
3258 &omap3xxx_iva_hwmod,
3259 &omap3xxx_dss_core_hwmod, 3261 &omap3xxx_dss_core_hwmod,
3260 &omap3xxx_usbhsotg_hwmod, 3262 &omap3xxx_usbhsotg_hwmod,
3261 &omap3xxx_mailbox_hwmod,
3262 NULL 3263 NULL
3263}; 3264};
3264 3265
@@ -3300,6 +3301,13 @@ int __init omap3xxx_hwmod_init(void)
3300 if (r < 0) 3301 if (r < 0)
3301 return r; 3302 return r;
3302 3303
3304 /* Register GP-only hwmods. */
3305 if (omap_type() == OMAP2_DEVICE_TYPE_GP) {
3306 r = omap_hwmod_register(omap3xxx_gp_hwmods);
3307 if (r < 0)
3308 return r;
3309 }
3310
3303 rev = omap_rev(); 3311 rev = omap_rev();
3304 3312
3305 /* 3313 /*