aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_3xxx_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_3xxx_data.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index eef43e2e163e..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,6 +3244,12 @@ 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 &omap3430es1_dss_core_hwmod, 3255 &omap3430es1_dss_core_hwmod,
@@ -3296,6 +3301,13 @@ int __init omap3xxx_hwmod_init(void)
3296 if (r < 0) 3301 if (r < 0)
3297 return r; 3302 return r;
3298 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
3299 rev = omap_rev(); 3311 rev = omap_rev();
3300 3312
3301 /* 3313 /*