diff options
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 55 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap_hwmod.h | 6 |
2 files changed, 61 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index d68ef2ce6f1..6201422c060 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |||
@@ -231,6 +231,7 @@ static struct omap_hwmod omap44xx_l3_instr_hwmod = { | |||
231 | .omap4 = { | 231 | .omap4 = { |
232 | .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET, | 232 | .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET, |
233 | .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET, | 233 | .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET, |
234 | .modulemode = MODULEMODE_HWCTRL, | ||
234 | }, | 235 | }, |
235 | }, | 236 | }, |
236 | .slaves = omap44xx_l3_instr_slaves, | 237 | .slaves = omap44xx_l3_instr_slaves, |
@@ -490,6 +491,7 @@ static struct omap_hwmod omap44xx_l3_main_3_hwmod = { | |||
490 | .omap4 = { | 491 | .omap4 = { |
491 | .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET, | 492 | .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET, |
492 | .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET, | 493 | .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET, |
494 | .modulemode = MODULEMODE_HWCTRL, | ||
493 | }, | 495 | }, |
494 | }, | 496 | }, |
495 | .slaves = omap44xx_l3_main_3_slaves, | 497 | .slaves = omap44xx_l3_main_3_slaves, |
@@ -819,6 +821,7 @@ static struct omap_hwmod omap44xx_aess_hwmod = { | |||
819 | .omap4 = { | 821 | .omap4 = { |
820 | .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET, | 822 | .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET, |
821 | .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET, | 823 | .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET, |
824 | .modulemode = MODULEMODE_SWCTRL, | ||
822 | }, | 825 | }, |
823 | }, | 826 | }, |
824 | .slaves = omap44xx_aess_slaves, | 827 | .slaves = omap44xx_aess_slaves, |
@@ -1090,6 +1093,7 @@ static struct omap_hwmod omap44xx_dmic_hwmod = { | |||
1090 | .omap4 = { | 1093 | .omap4 = { |
1091 | .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET, | 1094 | .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET, |
1092 | .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET, | 1095 | .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET, |
1096 | .modulemode = MODULEMODE_SWCTRL, | ||
1093 | }, | 1097 | }, |
1094 | }, | 1098 | }, |
1095 | .slaves = omap44xx_dmic_slaves, | 1099 | .slaves = omap44xx_dmic_slaves, |
@@ -1176,6 +1180,7 @@ static struct omap_hwmod omap44xx_dsp_hwmod = { | |||
1176 | .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET, | 1180 | .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET, |
1177 | .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET, | 1181 | .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET, |
1178 | .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET, | 1182 | .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET, |
1183 | .modulemode = MODULEMODE_HWCTRL, | ||
1179 | }, | 1184 | }, |
1180 | }, | 1185 | }, |
1181 | .slaves = omap44xx_dsp_slaves, | 1186 | .slaves = omap44xx_dsp_slaves, |
@@ -1888,6 +1893,7 @@ static struct omap_hwmod omap44xx_gpio1_hwmod = { | |||
1888 | .omap4 = { | 1893 | .omap4 = { |
1889 | .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET, | 1894 | .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET, |
1890 | .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET, | 1895 | .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET, |
1896 | .modulemode = MODULEMODE_HWCTRL, | ||
1891 | }, | 1897 | }, |
1892 | }, | 1898 | }, |
1893 | .opt_clks = gpio1_opt_clks, | 1899 | .opt_clks = gpio1_opt_clks, |
@@ -1943,6 +1949,7 @@ static struct omap_hwmod omap44xx_gpio2_hwmod = { | |||
1943 | .omap4 = { | 1949 | .omap4 = { |
1944 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET, | 1950 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET, |
1945 | .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET, | 1951 | .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET, |
1952 | .modulemode = MODULEMODE_HWCTRL, | ||
1946 | }, | 1953 | }, |
1947 | }, | 1954 | }, |
1948 | .opt_clks = gpio2_opt_clks, | 1955 | .opt_clks = gpio2_opt_clks, |
@@ -1998,6 +2005,7 @@ static struct omap_hwmod omap44xx_gpio3_hwmod = { | |||
1998 | .omap4 = { | 2005 | .omap4 = { |
1999 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET, | 2006 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET, |
2000 | .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET, | 2007 | .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET, |
2008 | .modulemode = MODULEMODE_HWCTRL, | ||
2001 | }, | 2009 | }, |
2002 | }, | 2010 | }, |
2003 | .opt_clks = gpio3_opt_clks, | 2011 | .opt_clks = gpio3_opt_clks, |
@@ -2053,6 +2061,7 @@ static struct omap_hwmod omap44xx_gpio4_hwmod = { | |||
2053 | .omap4 = { | 2061 | .omap4 = { |
2054 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET, | 2062 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET, |
2055 | .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET, | 2063 | .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET, |
2064 | .modulemode = MODULEMODE_HWCTRL, | ||
2056 | }, | 2065 | }, |
2057 | }, | 2066 | }, |
2058 | .opt_clks = gpio4_opt_clks, | 2067 | .opt_clks = gpio4_opt_clks, |
@@ -2108,6 +2117,7 @@ static struct omap_hwmod omap44xx_gpio5_hwmod = { | |||
2108 | .omap4 = { | 2117 | .omap4 = { |
2109 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET, | 2118 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET, |
2110 | .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET, | 2119 | .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET, |
2120 | .modulemode = MODULEMODE_HWCTRL, | ||
2111 | }, | 2121 | }, |
2112 | }, | 2122 | }, |
2113 | .opt_clks = gpio5_opt_clks, | 2123 | .opt_clks = gpio5_opt_clks, |
@@ -2163,6 +2173,7 @@ static struct omap_hwmod omap44xx_gpio6_hwmod = { | |||
2163 | .omap4 = { | 2173 | .omap4 = { |
2164 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET, | 2174 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET, |
2165 | .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET, | 2175 | .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET, |
2176 | .modulemode = MODULEMODE_HWCTRL, | ||
2166 | }, | 2177 | }, |
2167 | }, | 2178 | }, |
2168 | .opt_clks = gpio6_opt_clks, | 2179 | .opt_clks = gpio6_opt_clks, |
@@ -2243,6 +2254,7 @@ static struct omap_hwmod omap44xx_hsi_hwmod = { | |||
2243 | .omap4 = { | 2254 | .omap4 = { |
2244 | .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET, | 2255 | .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET, |
2245 | .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET, | 2256 | .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET, |
2257 | .modulemode = MODULEMODE_HWCTRL, | ||
2246 | }, | 2258 | }, |
2247 | }, | 2259 | }, |
2248 | .slaves = omap44xx_hsi_slaves, | 2260 | .slaves = omap44xx_hsi_slaves, |
@@ -2327,6 +2339,7 @@ static struct omap_hwmod omap44xx_i2c1_hwmod = { | |||
2327 | .omap4 = { | 2339 | .omap4 = { |
2328 | .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET, | 2340 | .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET, |
2329 | .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET, | 2341 | .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET, |
2342 | .modulemode = MODULEMODE_SWCTRL, | ||
2330 | }, | 2343 | }, |
2331 | }, | 2344 | }, |
2332 | .slaves = omap44xx_i2c1_slaves, | 2345 | .slaves = omap44xx_i2c1_slaves, |
@@ -2383,6 +2396,7 @@ static struct omap_hwmod omap44xx_i2c2_hwmod = { | |||
2383 | .omap4 = { | 2396 | .omap4 = { |
2384 | .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET, | 2397 | .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET, |
2385 | .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET, | 2398 | .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET, |
2399 | .modulemode = MODULEMODE_SWCTRL, | ||
2386 | }, | 2400 | }, |
2387 | }, | 2401 | }, |
2388 | .slaves = omap44xx_i2c2_slaves, | 2402 | .slaves = omap44xx_i2c2_slaves, |
@@ -2439,6 +2453,7 @@ static struct omap_hwmod omap44xx_i2c3_hwmod = { | |||
2439 | .omap4 = { | 2453 | .omap4 = { |
2440 | .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET, | 2454 | .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET, |
2441 | .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET, | 2455 | .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET, |
2456 | .modulemode = MODULEMODE_SWCTRL, | ||
2442 | }, | 2457 | }, |
2443 | }, | 2458 | }, |
2444 | .slaves = omap44xx_i2c3_slaves, | 2459 | .slaves = omap44xx_i2c3_slaves, |
@@ -2495,6 +2510,7 @@ static struct omap_hwmod omap44xx_i2c4_hwmod = { | |||
2495 | .omap4 = { | 2510 | .omap4 = { |
2496 | .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET, | 2511 | .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET, |
2497 | .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET, | 2512 | .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET, |
2513 | .modulemode = MODULEMODE_SWCTRL, | ||
2498 | }, | 2514 | }, |
2499 | }, | 2515 | }, |
2500 | .slaves = omap44xx_i2c4_slaves, | 2516 | .slaves = omap44xx_i2c4_slaves, |
@@ -2593,6 +2609,7 @@ static struct omap_hwmod omap44xx_ipu_hwmod = { | |||
2593 | .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET, | 2609 | .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET, |
2594 | .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET, | 2610 | .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET, |
2595 | .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET, | 2611 | .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET, |
2612 | .modulemode = MODULEMODE_HWCTRL, | ||
2596 | }, | 2613 | }, |
2597 | }, | 2614 | }, |
2598 | .slaves = omap44xx_ipu_slaves, | 2615 | .slaves = omap44xx_ipu_slaves, |
@@ -2680,6 +2697,7 @@ static struct omap_hwmod omap44xx_iss_hwmod = { | |||
2680 | .omap4 = { | 2697 | .omap4 = { |
2681 | .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET, | 2698 | .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET, |
2682 | .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET, | 2699 | .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET, |
2700 | .modulemode = MODULEMODE_SWCTRL, | ||
2683 | }, | 2701 | }, |
2684 | }, | 2702 | }, |
2685 | .opt_clks = iss_opt_clks, | 2703 | .opt_clks = iss_opt_clks, |
@@ -2795,6 +2813,7 @@ static struct omap_hwmod omap44xx_iva_hwmod = { | |||
2795 | .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET, | 2813 | .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET, |
2796 | .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET, | 2814 | .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET, |
2797 | .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET, | 2815 | .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET, |
2816 | .modulemode = MODULEMODE_HWCTRL, | ||
2798 | }, | 2817 | }, |
2799 | }, | 2818 | }, |
2800 | .slaves = omap44xx_iva_slaves, | 2819 | .slaves = omap44xx_iva_slaves, |
@@ -2866,6 +2885,7 @@ static struct omap_hwmod omap44xx_kbd_hwmod = { | |||
2866 | .omap4 = { | 2885 | .omap4 = { |
2867 | .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET, | 2886 | .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET, |
2868 | .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET, | 2887 | .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET, |
2888 | .modulemode = MODULEMODE_SWCTRL, | ||
2869 | }, | 2889 | }, |
2870 | }, | 2890 | }, |
2871 | .slaves = omap44xx_kbd_slaves, | 2891 | .slaves = omap44xx_kbd_slaves, |
@@ -3026,6 +3046,7 @@ static struct omap_hwmod omap44xx_mcbsp1_hwmod = { | |||
3026 | .omap4 = { | 3046 | .omap4 = { |
3027 | .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET, | 3047 | .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET, |
3028 | .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET, | 3048 | .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET, |
3049 | .modulemode = MODULEMODE_SWCTRL, | ||
3029 | }, | 3050 | }, |
3030 | }, | 3051 | }, |
3031 | .slaves = omap44xx_mcbsp1_slaves, | 3052 | .slaves = omap44xx_mcbsp1_slaves, |
@@ -3101,6 +3122,7 @@ static struct omap_hwmod omap44xx_mcbsp2_hwmod = { | |||
3101 | .omap4 = { | 3122 | .omap4 = { |
3102 | .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET, | 3123 | .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET, |
3103 | .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET, | 3124 | .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET, |
3125 | .modulemode = MODULEMODE_SWCTRL, | ||
3104 | }, | 3126 | }, |
3105 | }, | 3127 | }, |
3106 | .slaves = omap44xx_mcbsp2_slaves, | 3128 | .slaves = omap44xx_mcbsp2_slaves, |
@@ -3176,6 +3198,7 @@ static struct omap_hwmod omap44xx_mcbsp3_hwmod = { | |||
3176 | .omap4 = { | 3198 | .omap4 = { |
3177 | .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET, | 3199 | .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET, |
3178 | .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET, | 3200 | .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET, |
3201 | .modulemode = MODULEMODE_SWCTRL, | ||
3179 | }, | 3202 | }, |
3180 | }, | 3203 | }, |
3181 | .slaves = omap44xx_mcbsp3_slaves, | 3204 | .slaves = omap44xx_mcbsp3_slaves, |
@@ -3230,6 +3253,7 @@ static struct omap_hwmod omap44xx_mcbsp4_hwmod = { | |||
3230 | .omap4 = { | 3253 | .omap4 = { |
3231 | .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET, | 3254 | .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET, |
3232 | .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET, | 3255 | .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET, |
3256 | .modulemode = MODULEMODE_SWCTRL, | ||
3233 | }, | 3257 | }, |
3234 | }, | 3258 | }, |
3235 | .slaves = omap44xx_mcbsp4_slaves, | 3259 | .slaves = omap44xx_mcbsp4_slaves, |
@@ -3324,6 +3348,7 @@ static struct omap_hwmod omap44xx_mcpdm_hwmod = { | |||
3324 | .omap4 = { | 3348 | .omap4 = { |
3325 | .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET, | 3349 | .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET, |
3326 | .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET, | 3350 | .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET, |
3351 | .modulemode = MODULEMODE_SWCTRL, | ||
3327 | }, | 3352 | }, |
3328 | }, | 3353 | }, |
3329 | .slaves = omap44xx_mcpdm_slaves, | 3354 | .slaves = omap44xx_mcpdm_slaves, |
@@ -3411,6 +3436,7 @@ static struct omap_hwmod omap44xx_mcspi1_hwmod = { | |||
3411 | .omap4 = { | 3436 | .omap4 = { |
3412 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET, | 3437 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET, |
3413 | .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET, | 3438 | .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET, |
3439 | .modulemode = MODULEMODE_SWCTRL, | ||
3414 | }, | 3440 | }, |
3415 | }, | 3441 | }, |
3416 | .dev_attr = &mcspi1_dev_attr, | 3442 | .dev_attr = &mcspi1_dev_attr, |
@@ -3473,6 +3499,7 @@ static struct omap_hwmod omap44xx_mcspi2_hwmod = { | |||
3473 | .omap4 = { | 3499 | .omap4 = { |
3474 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET, | 3500 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET, |
3475 | .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET, | 3501 | .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET, |
3502 | .modulemode = MODULEMODE_SWCTRL, | ||
3476 | }, | 3503 | }, |
3477 | }, | 3504 | }, |
3478 | .dev_attr = &mcspi2_dev_attr, | 3505 | .dev_attr = &mcspi2_dev_attr, |
@@ -3535,6 +3562,7 @@ static struct omap_hwmod omap44xx_mcspi3_hwmod = { | |||
3535 | .omap4 = { | 3562 | .omap4 = { |
3536 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET, | 3563 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET, |
3537 | .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET, | 3564 | .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET, |
3565 | .modulemode = MODULEMODE_SWCTRL, | ||
3538 | }, | 3566 | }, |
3539 | }, | 3567 | }, |
3540 | .dev_attr = &mcspi3_dev_attr, | 3568 | .dev_attr = &mcspi3_dev_attr, |
@@ -3595,6 +3623,7 @@ static struct omap_hwmod omap44xx_mcspi4_hwmod = { | |||
3595 | .omap4 = { | 3623 | .omap4 = { |
3596 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET, | 3624 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET, |
3597 | .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET, | 3625 | .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET, |
3626 | .modulemode = MODULEMODE_SWCTRL, | ||
3598 | }, | 3627 | }, |
3599 | }, | 3628 | }, |
3600 | .dev_attr = &mcspi4_dev_attr, | 3629 | .dev_attr = &mcspi4_dev_attr, |
@@ -3681,6 +3710,7 @@ static struct omap_hwmod omap44xx_mmc1_hwmod = { | |||
3681 | .omap4 = { | 3710 | .omap4 = { |
3682 | .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET, | 3711 | .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET, |
3683 | .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET, | 3712 | .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET, |
3713 | .modulemode = MODULEMODE_SWCTRL, | ||
3684 | }, | 3714 | }, |
3685 | }, | 3715 | }, |
3686 | .dev_attr = &mmc1_dev_attr, | 3716 | .dev_attr = &mmc1_dev_attr, |
@@ -3742,6 +3772,7 @@ static struct omap_hwmod omap44xx_mmc2_hwmod = { | |||
3742 | .omap4 = { | 3772 | .omap4 = { |
3743 | .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET, | 3773 | .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET, |
3744 | .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET, | 3774 | .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET, |
3775 | .modulemode = MODULEMODE_SWCTRL, | ||
3745 | }, | 3776 | }, |
3746 | }, | 3777 | }, |
3747 | .slaves = omap44xx_mmc2_slaves, | 3778 | .slaves = omap44xx_mmc2_slaves, |
@@ -3798,6 +3829,7 @@ static struct omap_hwmod omap44xx_mmc3_hwmod = { | |||
3798 | .omap4 = { | 3829 | .omap4 = { |
3799 | .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET, | 3830 | .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET, |
3800 | .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET, | 3831 | .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET, |
3832 | .modulemode = MODULEMODE_SWCTRL, | ||
3801 | }, | 3833 | }, |
3802 | }, | 3834 | }, |
3803 | .slaves = omap44xx_mmc3_slaves, | 3835 | .slaves = omap44xx_mmc3_slaves, |
@@ -3853,6 +3885,7 @@ static struct omap_hwmod omap44xx_mmc4_hwmod = { | |||
3853 | .omap4 = { | 3885 | .omap4 = { |
3854 | .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET, | 3886 | .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET, |
3855 | .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET, | 3887 | .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET, |
3888 | .modulemode = MODULEMODE_SWCTRL, | ||
3856 | }, | 3889 | }, |
3857 | }, | 3890 | }, |
3858 | .slaves = omap44xx_mmc4_slaves, | 3891 | .slaves = omap44xx_mmc4_slaves, |
@@ -3907,6 +3940,7 @@ static struct omap_hwmod omap44xx_mmc5_hwmod = { | |||
3907 | .omap4 = { | 3940 | .omap4 = { |
3908 | .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET, | 3941 | .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET, |
3909 | .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET, | 3942 | .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET, |
3943 | .modulemode = MODULEMODE_SWCTRL, | ||
3910 | }, | 3944 | }, |
3911 | }, | 3945 | }, |
3912 | .slaves = omap44xx_mmc5_slaves, | 3946 | .slaves = omap44xx_mmc5_slaves, |
@@ -4024,6 +4058,7 @@ static struct omap_hwmod omap44xx_smartreflex_core_hwmod = { | |||
4024 | .omap4 = { | 4058 | .omap4 = { |
4025 | .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET, | 4059 | .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET, |
4026 | .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET, | 4060 | .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET, |
4061 | .modulemode = MODULEMODE_SWCTRL, | ||
4027 | }, | 4062 | }, |
4028 | }, | 4063 | }, |
4029 | .slaves = omap44xx_smartreflex_core_slaves, | 4064 | .slaves = omap44xx_smartreflex_core_slaves, |
@@ -4072,6 +4107,7 @@ static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = { | |||
4072 | .omap4 = { | 4107 | .omap4 = { |
4073 | .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET, | 4108 | .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET, |
4074 | .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET, | 4109 | .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET, |
4110 | .modulemode = MODULEMODE_SWCTRL, | ||
4075 | }, | 4111 | }, |
4076 | }, | 4112 | }, |
4077 | .slaves = omap44xx_smartreflex_iva_slaves, | 4113 | .slaves = omap44xx_smartreflex_iva_slaves, |
@@ -4120,6 +4156,7 @@ static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = { | |||
4120 | .omap4 = { | 4156 | .omap4 = { |
4121 | .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET, | 4157 | .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET, |
4122 | .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET, | 4158 | .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET, |
4159 | .modulemode = MODULEMODE_SWCTRL, | ||
4123 | }, | 4160 | }, |
4124 | }, | 4161 | }, |
4125 | .slaves = omap44xx_smartreflex_mpu_slaves, | 4162 | .slaves = omap44xx_smartreflex_mpu_slaves, |
@@ -4268,6 +4305,7 @@ static struct omap_hwmod omap44xx_timer1_hwmod = { | |||
4268 | .omap4 = { | 4305 | .omap4 = { |
4269 | .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET, | 4306 | .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET, |
4270 | .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET, | 4307 | .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET, |
4308 | .modulemode = MODULEMODE_SWCTRL, | ||
4271 | }, | 4309 | }, |
4272 | }, | 4310 | }, |
4273 | .slaves = omap44xx_timer1_slaves, | 4311 | .slaves = omap44xx_timer1_slaves, |
@@ -4315,6 +4353,7 @@ static struct omap_hwmod omap44xx_timer2_hwmod = { | |||
4315 | .omap4 = { | 4353 | .omap4 = { |
4316 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET, | 4354 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET, |
4317 | .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET, | 4355 | .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET, |
4356 | .modulemode = MODULEMODE_SWCTRL, | ||
4318 | }, | 4357 | }, |
4319 | }, | 4358 | }, |
4320 | .slaves = omap44xx_timer2_slaves, | 4359 | .slaves = omap44xx_timer2_slaves, |
@@ -4362,6 +4401,7 @@ static struct omap_hwmod omap44xx_timer3_hwmod = { | |||
4362 | .omap4 = { | 4401 | .omap4 = { |
4363 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET, | 4402 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET, |
4364 | .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET, | 4403 | .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET, |
4404 | .modulemode = MODULEMODE_SWCTRL, | ||
4365 | }, | 4405 | }, |
4366 | }, | 4406 | }, |
4367 | .slaves = omap44xx_timer3_slaves, | 4407 | .slaves = omap44xx_timer3_slaves, |
@@ -4409,6 +4449,7 @@ static struct omap_hwmod omap44xx_timer4_hwmod = { | |||
4409 | .omap4 = { | 4449 | .omap4 = { |
4410 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET, | 4450 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET, |
4411 | .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET, | 4451 | .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET, |
4452 | .modulemode = MODULEMODE_SWCTRL, | ||
4412 | }, | 4453 | }, |
4413 | }, | 4454 | }, |
4414 | .slaves = omap44xx_timer4_slaves, | 4455 | .slaves = omap44xx_timer4_slaves, |
@@ -4475,6 +4516,7 @@ static struct omap_hwmod omap44xx_timer5_hwmod = { | |||
4475 | .omap4 = { | 4516 | .omap4 = { |
4476 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET, | 4517 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET, |
4477 | .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET, | 4518 | .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET, |
4519 | .modulemode = MODULEMODE_SWCTRL, | ||
4478 | }, | 4520 | }, |
4479 | }, | 4521 | }, |
4480 | .slaves = omap44xx_timer5_slaves, | 4522 | .slaves = omap44xx_timer5_slaves, |
@@ -4542,6 +4584,7 @@ static struct omap_hwmod omap44xx_timer6_hwmod = { | |||
4542 | .omap4 = { | 4584 | .omap4 = { |
4543 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET, | 4585 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET, |
4544 | .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET, | 4586 | .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET, |
4587 | .modulemode = MODULEMODE_SWCTRL, | ||
4545 | }, | 4588 | }, |
4546 | }, | 4589 | }, |
4547 | .slaves = omap44xx_timer6_slaves, | 4590 | .slaves = omap44xx_timer6_slaves, |
@@ -4608,6 +4651,7 @@ static struct omap_hwmod omap44xx_timer7_hwmod = { | |||
4608 | .omap4 = { | 4651 | .omap4 = { |
4609 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET, | 4652 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET, |
4610 | .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET, | 4653 | .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET, |
4654 | .modulemode = MODULEMODE_SWCTRL, | ||
4611 | }, | 4655 | }, |
4612 | }, | 4656 | }, |
4613 | .slaves = omap44xx_timer7_slaves, | 4657 | .slaves = omap44xx_timer7_slaves, |
@@ -4674,6 +4718,7 @@ static struct omap_hwmod omap44xx_timer8_hwmod = { | |||
4674 | .omap4 = { | 4718 | .omap4 = { |
4675 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET, | 4719 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET, |
4676 | .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET, | 4720 | .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET, |
4721 | .modulemode = MODULEMODE_SWCTRL, | ||
4677 | }, | 4722 | }, |
4678 | }, | 4723 | }, |
4679 | .slaves = omap44xx_timer8_slaves, | 4724 | .slaves = omap44xx_timer8_slaves, |
@@ -4721,6 +4766,7 @@ static struct omap_hwmod omap44xx_timer9_hwmod = { | |||
4721 | .omap4 = { | 4766 | .omap4 = { |
4722 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET, | 4767 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET, |
4723 | .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET, | 4768 | .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET, |
4769 | .modulemode = MODULEMODE_SWCTRL, | ||
4724 | }, | 4770 | }, |
4725 | }, | 4771 | }, |
4726 | .slaves = omap44xx_timer9_slaves, | 4772 | .slaves = omap44xx_timer9_slaves, |
@@ -4768,6 +4814,7 @@ static struct omap_hwmod omap44xx_timer10_hwmod = { | |||
4768 | .omap4 = { | 4814 | .omap4 = { |
4769 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET, | 4815 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET, |
4770 | .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET, | 4816 | .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET, |
4817 | .modulemode = MODULEMODE_SWCTRL, | ||
4771 | }, | 4818 | }, |
4772 | }, | 4819 | }, |
4773 | .slaves = omap44xx_timer10_slaves, | 4820 | .slaves = omap44xx_timer10_slaves, |
@@ -4815,6 +4862,7 @@ static struct omap_hwmod omap44xx_timer11_hwmod = { | |||
4815 | .omap4 = { | 4862 | .omap4 = { |
4816 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET, | 4863 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET, |
4817 | .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET, | 4864 | .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET, |
4865 | .modulemode = MODULEMODE_SWCTRL, | ||
4818 | }, | 4866 | }, |
4819 | }, | 4867 | }, |
4820 | .slaves = omap44xx_timer11_slaves, | 4868 | .slaves = omap44xx_timer11_slaves, |
@@ -4891,6 +4939,7 @@ static struct omap_hwmod omap44xx_uart1_hwmod = { | |||
4891 | .omap4 = { | 4939 | .omap4 = { |
4892 | .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET, | 4940 | .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET, |
4893 | .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET, | 4941 | .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET, |
4942 | .modulemode = MODULEMODE_SWCTRL, | ||
4894 | }, | 4943 | }, |
4895 | }, | 4944 | }, |
4896 | .slaves = omap44xx_uart1_slaves, | 4945 | .slaves = omap44xx_uart1_slaves, |
@@ -4945,6 +4994,7 @@ static struct omap_hwmod omap44xx_uart2_hwmod = { | |||
4945 | .omap4 = { | 4994 | .omap4 = { |
4946 | .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET, | 4995 | .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET, |
4947 | .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET, | 4996 | .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET, |
4997 | .modulemode = MODULEMODE_SWCTRL, | ||
4948 | }, | 4998 | }, |
4949 | }, | 4999 | }, |
4950 | .slaves = omap44xx_uart2_slaves, | 5000 | .slaves = omap44xx_uart2_slaves, |
@@ -5000,6 +5050,7 @@ static struct omap_hwmod omap44xx_uart3_hwmod = { | |||
5000 | .omap4 = { | 5050 | .omap4 = { |
5001 | .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET, | 5051 | .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET, |
5002 | .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET, | 5052 | .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET, |
5053 | .modulemode = MODULEMODE_SWCTRL, | ||
5003 | }, | 5054 | }, |
5004 | }, | 5055 | }, |
5005 | .slaves = omap44xx_uart3_slaves, | 5056 | .slaves = omap44xx_uart3_slaves, |
@@ -5054,6 +5105,7 @@ static struct omap_hwmod omap44xx_uart4_hwmod = { | |||
5054 | .omap4 = { | 5105 | .omap4 = { |
5055 | .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET, | 5106 | .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET, |
5056 | .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET, | 5107 | .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET, |
5108 | .modulemode = MODULEMODE_SWCTRL, | ||
5057 | }, | 5109 | }, |
5058 | }, | 5110 | }, |
5059 | .slaves = omap44xx_uart4_slaves, | 5111 | .slaves = omap44xx_uart4_slaves, |
@@ -5134,6 +5186,7 @@ static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = { | |||
5134 | .omap4 = { | 5186 | .omap4 = { |
5135 | .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET, | 5187 | .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET, |
5136 | .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET, | 5188 | .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET, |
5189 | .modulemode = MODULEMODE_HWCTRL, | ||
5137 | }, | 5190 | }, |
5138 | }, | 5191 | }, |
5139 | .opt_clks = usb_otg_hs_opt_clks, | 5192 | .opt_clks = usb_otg_hs_opt_clks, |
@@ -5208,6 +5261,7 @@ static struct omap_hwmod omap44xx_wd_timer2_hwmod = { | |||
5208 | .omap4 = { | 5261 | .omap4 = { |
5209 | .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET, | 5262 | .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET, |
5210 | .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET, | 5263 | .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET, |
5264 | .modulemode = MODULEMODE_SWCTRL, | ||
5211 | }, | 5265 | }, |
5212 | }, | 5266 | }, |
5213 | .slaves = omap44xx_wd_timer2_slaves, | 5267 | .slaves = omap44xx_wd_timer2_slaves, |
@@ -5274,6 +5328,7 @@ static struct omap_hwmod omap44xx_wd_timer3_hwmod = { | |||
5274 | .omap4 = { | 5328 | .omap4 = { |
5275 | .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET, | 5329 | .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET, |
5276 | .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET, | 5330 | .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET, |
5331 | .modulemode = MODULEMODE_SWCTRL, | ||
5277 | }, | 5332 | }, |
5278 | }, | 5333 | }, |
5279 | .slaves = omap44xx_wd_timer3_slaves, | 5334 | .slaves = omap44xx_wd_timer3_slaves, |
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index 16439fa1344..0e329ca88a7 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h | |||
@@ -80,6 +80,11 @@ extern struct omap_hwmod_sysc_fields omap_hwmod_sysc_type2; | |||
80 | #define HWMOD_IDLEMODE_SMART (1 << 2) | 80 | #define HWMOD_IDLEMODE_SMART (1 << 2) |
81 | #define HWMOD_IDLEMODE_SMART_WKUP (1 << 3) | 81 | #define HWMOD_IDLEMODE_SMART_WKUP (1 << 3) |
82 | 82 | ||
83 | /* modulemode control type (SW or HW) */ | ||
84 | #define MODULEMODE_HWCTRL 1 | ||
85 | #define MODULEMODE_SWCTRL 2 | ||
86 | |||
87 | |||
83 | /** | 88 | /** |
84 | * struct omap_hwmod_mux_info - hwmod specific mux configuration | 89 | * struct omap_hwmod_mux_info - hwmod specific mux configuration |
85 | * @pads: array of omap_device_pad entries | 90 | * @pads: array of omap_device_pad entries |
@@ -365,6 +370,7 @@ struct omap_hwmod_omap4_prcm { | |||
365 | u16 rstctrl_offs; | 370 | u16 rstctrl_offs; |
366 | u16 context_offs; | 371 | u16 context_offs; |
367 | u8 submodule_wkdep_bit; | 372 | u8 submodule_wkdep_bit; |
373 | u8 modulemode; | ||
368 | }; | 374 | }; |
369 | 375 | ||
370 | 376 | ||