diff options
Diffstat (limited to 'arch/arm/mach-omap2/clock34xx.h')
-rw-r--r-- | arch/arm/mach-omap2/clock34xx.h | 248 |
1 files changed, 197 insertions, 51 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.h b/arch/arm/mach-omap2/clock34xx.h index ec664457a11a..c38a8a09692f 100644 --- a/arch/arm/mach-omap2/clock34xx.h +++ b/arch/arm/mach-omap2/clock34xx.h | |||
@@ -478,7 +478,7 @@ static struct clk dpll3_m2_ck = { | |||
478 | }; | 478 | }; |
479 | 479 | ||
480 | static const struct clksel core_ck_clksel[] = { | 480 | static const struct clksel core_ck_clksel[] = { |
481 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, | 481 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, |
482 | { .parent = &dpll3_m2_ck, .rates = dpll_locked_rates }, | 482 | { .parent = &dpll3_m2_ck, .rates = dpll_locked_rates }, |
483 | { .parent = NULL } | 483 | { .parent = NULL } |
484 | }; | 484 | }; |
@@ -495,7 +495,7 @@ static struct clk core_ck = { | |||
495 | }; | 495 | }; |
496 | 496 | ||
497 | static const struct clksel dpll3_m2x2_ck_clksel[] = { | 497 | static const struct clksel dpll3_m2x2_ck_clksel[] = { |
498 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, | 498 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, |
499 | { .parent = &dpll3_x2_ck, .rates = dpll_locked_rates }, | 499 | { .parent = &dpll3_x2_ck, .rates = dpll_locked_rates }, |
500 | { .parent = NULL } | 500 | { .parent = NULL } |
501 | }; | 501 | }; |
@@ -541,7 +541,7 @@ static struct clk dpll3_m3x2_ck = { | |||
541 | }; | 541 | }; |
542 | 542 | ||
543 | static const struct clksel emu_core_alwon_ck_clksel[] = { | 543 | static const struct clksel emu_core_alwon_ck_clksel[] = { |
544 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, | 544 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, |
545 | { .parent = &dpll3_m3x2_ck, .rates = dpll_locked_rates }, | 545 | { .parent = &dpll3_m3x2_ck, .rates = dpll_locked_rates }, |
546 | { .parent = NULL } | 546 | { .parent = NULL } |
547 | }; | 547 | }; |
@@ -633,7 +633,7 @@ static struct clk dpll4_m2x2_ck = { | |||
633 | }; | 633 | }; |
634 | 634 | ||
635 | static const struct clksel omap_96m_alwon_fck_clksel[] = { | 635 | static const struct clksel omap_96m_alwon_fck_clksel[] = { |
636 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, | 636 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, |
637 | { .parent = &dpll4_m2x2_ck, .rates = dpll_locked_rates }, | 637 | { .parent = &dpll4_m2x2_ck, .rates = dpll_locked_rates }, |
638 | { .parent = NULL } | 638 | { .parent = NULL } |
639 | }; | 639 | }; |
@@ -659,7 +659,7 @@ static struct clk omap_96m_fck = { | |||
659 | }; | 659 | }; |
660 | 660 | ||
661 | static const struct clksel cm_96m_fck_clksel[] = { | 661 | static const struct clksel cm_96m_fck_clksel[] = { |
662 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, | 662 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, |
663 | { .parent = &dpll4_m2x2_ck, .rates = dpll_locked_rates }, | 663 | { .parent = &dpll4_m2x2_ck, .rates = dpll_locked_rates }, |
664 | { .parent = NULL } | 664 | { .parent = NULL } |
665 | }; | 665 | }; |
@@ -701,7 +701,7 @@ static struct clk dpll4_m3x2_ck = { | |||
701 | }; | 701 | }; |
702 | 702 | ||
703 | static const struct clksel virt_omap_54m_fck_clksel[] = { | 703 | static const struct clksel virt_omap_54m_fck_clksel[] = { |
704 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, | 704 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, |
705 | { .parent = &dpll4_m3x2_ck, .rates = dpll_locked_rates }, | 705 | { .parent = &dpll4_m3x2_ck, .rates = dpll_locked_rates }, |
706 | { .parent = NULL } | 706 | { .parent = NULL } |
707 | }; | 707 | }; |
@@ -911,7 +911,7 @@ static struct clk dpll5_m2_ck = { | |||
911 | }; | 911 | }; |
912 | 912 | ||
913 | static const struct clksel omap_120m_fck_clksel[] = { | 913 | static const struct clksel omap_120m_fck_clksel[] = { |
914 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, | 914 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, |
915 | { .parent = &dpll5_m2_ck, .rates = dpll_locked_rates }, | 915 | { .parent = &dpll5_m2_ck, .rates = dpll_locked_rates }, |
916 | { .parent = NULL } | 916 | { .parent = NULL } |
917 | }; | 917 | }; |
@@ -919,13 +919,13 @@ static const struct clksel omap_120m_fck_clksel[] = { | |||
919 | static struct clk omap_120m_fck = { | 919 | static struct clk omap_120m_fck = { |
920 | .name = "omap_120m_fck", | 920 | .name = "omap_120m_fck", |
921 | .parent = &dpll5_m2_ck, | 921 | .parent = &dpll5_m2_ck, |
922 | .init = &omap2_init_clksel_parent, | 922 | .init = &omap2_init_clksel_parent, |
923 | .clksel_reg = OMAP_CM_REGADDR(PLL_MOD, CM_IDLEST2), | 923 | .clksel_reg = OMAP_CM_REGADDR(PLL_MOD, CM_IDLEST2), |
924 | .clksel_mask = OMAP3430ES2_ST_PERIPH2_CLK_MASK, | 924 | .clksel_mask = OMAP3430ES2_ST_PERIPH2_CLK_MASK, |
925 | .clksel = omap_120m_fck_clksel, | 925 | .clksel = omap_120m_fck_clksel, |
926 | .flags = CLOCK_IN_OMAP3430ES2 | RATE_PROPAGATES | | 926 | .flags = CLOCK_IN_OMAP3430ES2 | RATE_PROPAGATES | |
927 | PARENT_CONTROLS_CLOCK, | 927 | PARENT_CONTROLS_CLOCK, |
928 | .recalc = &omap2_clksel_recalc, | 928 | .recalc = &omap2_clksel_recalc, |
929 | }; | 929 | }; |
930 | 930 | ||
931 | /* CM EXTERNAL CLOCK OUTPUTS */ | 931 | /* CM EXTERNAL CLOCK OUTPUTS */ |
@@ -1034,7 +1034,7 @@ static struct clk dpll1_fck = { | |||
1034 | * called 'dpll1_fck' | 1034 | * called 'dpll1_fck' |
1035 | */ | 1035 | */ |
1036 | static const struct clksel mpu_clksel[] = { | 1036 | static const struct clksel mpu_clksel[] = { |
1037 | { .parent = &dpll1_fck, .rates = dpll_bypass_rates }, | 1037 | { .parent = &dpll1_fck, .rates = dpll_bypass_rates }, |
1038 | { .parent = &dpll1_x2m2_ck, .rates = dpll_locked_rates }, | 1038 | { .parent = &dpll1_x2m2_ck, .rates = dpll_locked_rates }, |
1039 | { .parent = NULL } | 1039 | { .parent = NULL } |
1040 | }; | 1040 | }; |
@@ -1048,6 +1048,7 @@ static struct clk mpu_ck = { | |||
1048 | .clksel = mpu_clksel, | 1048 | .clksel = mpu_clksel, |
1049 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 1049 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
1050 | PARENT_CONTROLS_CLOCK, | 1050 | PARENT_CONTROLS_CLOCK, |
1051 | .clkdm_name = "mpu_clkdm", | ||
1051 | .recalc = &omap2_clksel_recalc, | 1052 | .recalc = &omap2_clksel_recalc, |
1052 | }; | 1053 | }; |
1053 | 1054 | ||
@@ -1075,6 +1076,8 @@ static struct clk arm_fck = { | |||
1075 | .recalc = &omap2_clksel_recalc, | 1076 | .recalc = &omap2_clksel_recalc, |
1076 | }; | 1077 | }; |
1077 | 1078 | ||
1079 | /* XXX What about neon_clkdm ? */ | ||
1080 | |||
1078 | /* | 1081 | /* |
1079 | * REVISIT: This clock is never specifically defined in the 3430 TRM, | 1082 | * REVISIT: This clock is never specifically defined in the 3430 TRM, |
1080 | * although it is referenced - so this is a guess | 1083 | * although it is referenced - so this is a guess |
@@ -1107,7 +1110,7 @@ static struct clk dpll2_fck = { | |||
1107 | */ | 1110 | */ |
1108 | 1111 | ||
1109 | static const struct clksel iva2_clksel[] = { | 1112 | static const struct clksel iva2_clksel[] = { |
1110 | { .parent = &dpll2_fck, .rates = dpll_bypass_rates }, | 1113 | { .parent = &dpll2_fck, .rates = dpll_bypass_rates }, |
1111 | { .parent = &dpll2_m2_ck, .rates = dpll_locked_rates }, | 1114 | { .parent = &dpll2_m2_ck, .rates = dpll_locked_rates }, |
1112 | { .parent = NULL } | 1115 | { .parent = NULL } |
1113 | }; | 1116 | }; |
@@ -1123,6 +1126,7 @@ static struct clk iva2_ck = { | |||
1123 | .clksel_mask = OMAP3430_ST_IVA2_CLK_MASK, | 1126 | .clksel_mask = OMAP3430_ST_IVA2_CLK_MASK, |
1124 | .clksel = iva2_clksel, | 1127 | .clksel = iva2_clksel, |
1125 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES, | 1128 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES, |
1129 | .clkdm_name = "iva2_clkdm", | ||
1126 | .recalc = &omap2_clksel_recalc, | 1130 | .recalc = &omap2_clksel_recalc, |
1127 | }; | 1131 | }; |
1128 | 1132 | ||
@@ -1137,6 +1141,7 @@ static struct clk l3_ick = { | |||
1137 | .clksel = div2_core_clksel, | 1141 | .clksel = div2_core_clksel, |
1138 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 1142 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
1139 | PARENT_CONTROLS_CLOCK, | 1143 | PARENT_CONTROLS_CLOCK, |
1144 | .clkdm_name = "core_l3_clkdm", | ||
1140 | .recalc = &omap2_clksel_recalc, | 1145 | .recalc = &omap2_clksel_recalc, |
1141 | }; | 1146 | }; |
1142 | 1147 | ||
@@ -1154,6 +1159,7 @@ static struct clk l4_ick = { | |||
1154 | .clksel = div2_l3_clksel, | 1159 | .clksel = div2_l3_clksel, |
1155 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 1160 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
1156 | PARENT_CONTROLS_CLOCK, | 1161 | PARENT_CONTROLS_CLOCK, |
1162 | .clkdm_name = "core_l4_clkdm", | ||
1157 | .recalc = &omap2_clksel_recalc, | 1163 | .recalc = &omap2_clksel_recalc, |
1158 | 1164 | ||
1159 | }; | 1165 | }; |
@@ -1183,43 +1189,57 @@ static const struct clksel gfx_l3_clksel[] = { | |||
1183 | { .parent = NULL } | 1189 | { .parent = NULL } |
1184 | }; | 1190 | }; |
1185 | 1191 | ||
1186 | static struct clk gfx_l3_fck = { | 1192 | /* Virtual parent clock for gfx_l3_ick and gfx_l3_fck */ |
1187 | .name = "gfx_l3_fck", | 1193 | static struct clk gfx_l3_ck = { |
1194 | .name = "gfx_l3_ck", | ||
1188 | .parent = &l3_ick, | 1195 | .parent = &l3_ick, |
1189 | .init = &omap2_init_clksel_parent, | 1196 | .init = &omap2_init_clksel_parent, |
1190 | .enable_reg = OMAP_CM_REGADDR(GFX_MOD, CM_ICLKEN), | 1197 | .enable_reg = OMAP_CM_REGADDR(GFX_MOD, CM_ICLKEN), |
1191 | .enable_bit = OMAP_EN_GFX_SHIFT, | 1198 | .enable_bit = OMAP_EN_GFX_SHIFT, |
1199 | .flags = CLOCK_IN_OMAP3430ES1, | ||
1200 | .recalc = &followparent_recalc, | ||
1201 | }; | ||
1202 | |||
1203 | static struct clk gfx_l3_fck = { | ||
1204 | .name = "gfx_l3_fck", | ||
1205 | .parent = &gfx_l3_ck, | ||
1206 | .init = &omap2_init_clksel_parent, | ||
1192 | .clksel_reg = OMAP_CM_REGADDR(GFX_MOD, CM_CLKSEL), | 1207 | .clksel_reg = OMAP_CM_REGADDR(GFX_MOD, CM_CLKSEL), |
1193 | .clksel_mask = OMAP_CLKSEL_GFX_MASK, | 1208 | .clksel_mask = OMAP_CLKSEL_GFX_MASK, |
1194 | .clksel = gfx_l3_clksel, | 1209 | .clksel = gfx_l3_clksel, |
1195 | .flags = CLOCK_IN_OMAP3430ES1 | RATE_PROPAGATES, | 1210 | .flags = CLOCK_IN_OMAP3430ES1 | RATE_PROPAGATES | |
1211 | PARENT_CONTROLS_CLOCK, | ||
1212 | .clkdm_name = "gfx_3430es1_clkdm", | ||
1196 | .recalc = &omap2_clksel_recalc, | 1213 | .recalc = &omap2_clksel_recalc, |
1197 | }; | 1214 | }; |
1198 | 1215 | ||
1199 | static struct clk gfx_l3_ick = { | 1216 | static struct clk gfx_l3_ick = { |
1200 | .name = "gfx_l3_ick", | 1217 | .name = "gfx_l3_ick", |
1201 | .parent = &l3_ick, | 1218 | .parent = &gfx_l3_ck, |
1202 | .enable_reg = OMAP_CM_REGADDR(GFX_MOD, CM_ICLKEN), | 1219 | .flags = CLOCK_IN_OMAP3430ES1 | PARENT_CONTROLS_CLOCK, |
1203 | .enable_bit = OMAP_EN_GFX_SHIFT, | 1220 | .clkdm_name = "gfx_3430es1_clkdm", |
1204 | .flags = CLOCK_IN_OMAP3430ES1, | ||
1205 | .recalc = &followparent_recalc, | 1221 | .recalc = &followparent_recalc, |
1206 | }; | 1222 | }; |
1207 | 1223 | ||
1208 | static struct clk gfx_cg1_ck = { | 1224 | static struct clk gfx_cg1_ck = { |
1209 | .name = "gfx_cg1_ck", | 1225 | .name = "gfx_cg1_ck", |
1210 | .parent = &gfx_l3_fck, /* REVISIT: correct? */ | 1226 | .parent = &gfx_l3_fck, /* REVISIT: correct? */ |
1227 | .init = &omap2_init_clk_clkdm, | ||
1211 | .enable_reg = OMAP_CM_REGADDR(GFX_MOD, CM_FCLKEN), | 1228 | .enable_reg = OMAP_CM_REGADDR(GFX_MOD, CM_FCLKEN), |
1212 | .enable_bit = OMAP3430ES1_EN_2D_SHIFT, | 1229 | .enable_bit = OMAP3430ES1_EN_2D_SHIFT, |
1213 | .flags = CLOCK_IN_OMAP3430ES1, | 1230 | .flags = CLOCK_IN_OMAP3430ES1, |
1231 | .clkdm_name = "gfx_3430es1_clkdm", | ||
1214 | .recalc = &followparent_recalc, | 1232 | .recalc = &followparent_recalc, |
1215 | }; | 1233 | }; |
1216 | 1234 | ||
1217 | static struct clk gfx_cg2_ck = { | 1235 | static struct clk gfx_cg2_ck = { |
1218 | .name = "gfx_cg2_ck", | 1236 | .name = "gfx_cg2_ck", |
1219 | .parent = &gfx_l3_fck, /* REVISIT: correct? */ | 1237 | .parent = &gfx_l3_fck, /* REVISIT: correct? */ |
1238 | .init = &omap2_init_clk_clkdm, | ||
1220 | .enable_reg = OMAP_CM_REGADDR(GFX_MOD, CM_FCLKEN), | 1239 | .enable_reg = OMAP_CM_REGADDR(GFX_MOD, CM_FCLKEN), |
1221 | .enable_bit = OMAP3430ES1_EN_3D_SHIFT, | 1240 | .enable_bit = OMAP3430ES1_EN_3D_SHIFT, |
1222 | .flags = CLOCK_IN_OMAP3430ES1, | 1241 | .flags = CLOCK_IN_OMAP3430ES1, |
1242 | .clkdm_name = "gfx_3430es1_clkdm", | ||
1223 | .recalc = &followparent_recalc, | 1243 | .recalc = &followparent_recalc, |
1224 | }; | 1244 | }; |
1225 | 1245 | ||
@@ -1252,15 +1272,18 @@ static struct clk sgx_fck = { | |||
1252 | .clksel_mask = OMAP3430ES2_CLKSEL_SGX_MASK, | 1272 | .clksel_mask = OMAP3430ES2_CLKSEL_SGX_MASK, |
1253 | .clksel = sgx_clksel, | 1273 | .clksel = sgx_clksel, |
1254 | .flags = CLOCK_IN_OMAP3430ES2, | 1274 | .flags = CLOCK_IN_OMAP3430ES2, |
1275 | .clkdm_name = "sgx_clkdm", | ||
1255 | .recalc = &omap2_clksel_recalc, | 1276 | .recalc = &omap2_clksel_recalc, |
1256 | }; | 1277 | }; |
1257 | 1278 | ||
1258 | static struct clk sgx_ick = { | 1279 | static struct clk sgx_ick = { |
1259 | .name = "sgx_ick", | 1280 | .name = "sgx_ick", |
1260 | .parent = &l3_ick, | 1281 | .parent = &l3_ick, |
1282 | .init = &omap2_init_clk_clkdm, | ||
1261 | .enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_SGX_MOD, CM_ICLKEN), | 1283 | .enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_SGX_MOD, CM_ICLKEN), |
1262 | .enable_bit = OMAP3430ES2_EN_SGX_SHIFT, | 1284 | .enable_bit = OMAP3430ES2_EN_SGX_SHIFT, |
1263 | .flags = CLOCK_IN_OMAP3430ES2, | 1285 | .flags = CLOCK_IN_OMAP3430ES2, |
1286 | .clkdm_name = "sgx_clkdm", | ||
1264 | .recalc = &followparent_recalc, | 1287 | .recalc = &followparent_recalc, |
1265 | }; | 1288 | }; |
1266 | 1289 | ||
@@ -1269,9 +1292,11 @@ static struct clk sgx_ick = { | |||
1269 | static struct clk d2d_26m_fck = { | 1292 | static struct clk d2d_26m_fck = { |
1270 | .name = "d2d_26m_fck", | 1293 | .name = "d2d_26m_fck", |
1271 | .parent = &sys_ck, | 1294 | .parent = &sys_ck, |
1295 | .init = &omap2_init_clk_clkdm, | ||
1272 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), | 1296 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), |
1273 | .enable_bit = OMAP3430ES1_EN_D2D_SHIFT, | 1297 | .enable_bit = OMAP3430ES1_EN_D2D_SHIFT, |
1274 | .flags = CLOCK_IN_OMAP3430ES1, | 1298 | .flags = CLOCK_IN_OMAP3430ES1, |
1299 | .clkdm_name = "d2d_clkdm", | ||
1275 | .recalc = &followparent_recalc, | 1300 | .recalc = &followparent_recalc, |
1276 | }; | 1301 | }; |
1277 | 1302 | ||
@@ -1291,6 +1316,7 @@ static struct clk gpt10_fck = { | |||
1291 | .clksel_mask = OMAP3430_CLKSEL_GPT10_MASK, | 1316 | .clksel_mask = OMAP3430_CLKSEL_GPT10_MASK, |
1292 | .clksel = omap343x_gpt_clksel, | 1317 | .clksel = omap343x_gpt_clksel, |
1293 | .flags = CLOCK_IN_OMAP343X, | 1318 | .flags = CLOCK_IN_OMAP343X, |
1319 | .clkdm_name = "core_l4_clkdm", | ||
1294 | .recalc = &omap2_clksel_recalc, | 1320 | .recalc = &omap2_clksel_recalc, |
1295 | }; | 1321 | }; |
1296 | 1322 | ||
@@ -1304,6 +1330,7 @@ static struct clk gpt11_fck = { | |||
1304 | .clksel_mask = OMAP3430_CLKSEL_GPT11_MASK, | 1330 | .clksel_mask = OMAP3430_CLKSEL_GPT11_MASK, |
1305 | .clksel = omap343x_gpt_clksel, | 1331 | .clksel = omap343x_gpt_clksel, |
1306 | .flags = CLOCK_IN_OMAP343X, | 1332 | .flags = CLOCK_IN_OMAP343X, |
1333 | .clkdm_name = "core_l4_clkdm", | ||
1307 | .recalc = &omap2_clksel_recalc, | 1334 | .recalc = &omap2_clksel_recalc, |
1308 | }; | 1335 | }; |
1309 | 1336 | ||
@@ -1341,6 +1368,7 @@ static struct clk core_96m_fck = { | |||
1341 | .parent = &omap_96m_fck, | 1368 | .parent = &omap_96m_fck, |
1342 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 1369 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
1343 | PARENT_CONTROLS_CLOCK, | 1370 | PARENT_CONTROLS_CLOCK, |
1371 | .clkdm_name = "core_l4_clkdm", | ||
1344 | .recalc = &followparent_recalc, | 1372 | .recalc = &followparent_recalc, |
1345 | }; | 1373 | }; |
1346 | 1374 | ||
@@ -1351,6 +1379,7 @@ static struct clk mmchs3_fck = { | |||
1351 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), | 1379 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), |
1352 | .enable_bit = OMAP3430ES2_EN_MMC3_SHIFT, | 1380 | .enable_bit = OMAP3430ES2_EN_MMC3_SHIFT, |
1353 | .flags = CLOCK_IN_OMAP3430ES2, | 1381 | .flags = CLOCK_IN_OMAP3430ES2, |
1382 | .clkdm_name = "core_l4_clkdm", | ||
1354 | .recalc = &followparent_recalc, | 1383 | .recalc = &followparent_recalc, |
1355 | }; | 1384 | }; |
1356 | 1385 | ||
@@ -1361,6 +1390,7 @@ static struct clk mmchs2_fck = { | |||
1361 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), | 1390 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), |
1362 | .enable_bit = OMAP3430_EN_MMC2_SHIFT, | 1391 | .enable_bit = OMAP3430_EN_MMC2_SHIFT, |
1363 | .flags = CLOCK_IN_OMAP343X, | 1392 | .flags = CLOCK_IN_OMAP343X, |
1393 | .clkdm_name = "core_l4_clkdm", | ||
1364 | .recalc = &followparent_recalc, | 1394 | .recalc = &followparent_recalc, |
1365 | }; | 1395 | }; |
1366 | 1396 | ||
@@ -1370,6 +1400,7 @@ static struct clk mspro_fck = { | |||
1370 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), | 1400 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), |
1371 | .enable_bit = OMAP3430_EN_MSPRO_SHIFT, | 1401 | .enable_bit = OMAP3430_EN_MSPRO_SHIFT, |
1372 | .flags = CLOCK_IN_OMAP343X, | 1402 | .flags = CLOCK_IN_OMAP343X, |
1403 | .clkdm_name = "core_l4_clkdm", | ||
1373 | .recalc = &followparent_recalc, | 1404 | .recalc = &followparent_recalc, |
1374 | }; | 1405 | }; |
1375 | 1406 | ||
@@ -1380,6 +1411,7 @@ static struct clk mmchs1_fck = { | |||
1380 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), | 1411 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), |
1381 | .enable_bit = OMAP3430_EN_MMC1_SHIFT, | 1412 | .enable_bit = OMAP3430_EN_MMC1_SHIFT, |
1382 | .flags = CLOCK_IN_OMAP343X, | 1413 | .flags = CLOCK_IN_OMAP343X, |
1414 | .clkdm_name = "core_l4_clkdm", | ||
1383 | .recalc = &followparent_recalc, | 1415 | .recalc = &followparent_recalc, |
1384 | }; | 1416 | }; |
1385 | 1417 | ||
@@ -1390,16 +1422,18 @@ static struct clk i2c3_fck = { | |||
1390 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), | 1422 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), |
1391 | .enable_bit = OMAP3430_EN_I2C3_SHIFT, | 1423 | .enable_bit = OMAP3430_EN_I2C3_SHIFT, |
1392 | .flags = CLOCK_IN_OMAP343X, | 1424 | .flags = CLOCK_IN_OMAP343X, |
1425 | .clkdm_name = "core_l4_clkdm", | ||
1393 | .recalc = &followparent_recalc, | 1426 | .recalc = &followparent_recalc, |
1394 | }; | 1427 | }; |
1395 | 1428 | ||
1396 | static struct clk i2c2_fck = { | 1429 | static struct clk i2c2_fck = { |
1397 | .name = "i2c_fck", | 1430 | .name = "i2c_fck", |
1398 | .id = 2, | 1431 | .id = 2, |
1399 | .parent = &core_96m_fck, | 1432 | .parent = &core_96m_fck, |
1400 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), | 1433 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), |
1401 | .enable_bit = OMAP3430_EN_I2C2_SHIFT, | 1434 | .enable_bit = OMAP3430_EN_I2C2_SHIFT, |
1402 | .flags = CLOCK_IN_OMAP343X, | 1435 | .flags = CLOCK_IN_OMAP343X, |
1436 | .clkdm_name = "core_l4_clkdm", | ||
1403 | .recalc = &followparent_recalc, | 1437 | .recalc = &followparent_recalc, |
1404 | }; | 1438 | }; |
1405 | 1439 | ||
@@ -1410,6 +1444,7 @@ static struct clk i2c1_fck = { | |||
1410 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), | 1444 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1), |
1411 | .enable_bit = OMAP3430_EN_I2C1_SHIFT, | 1445 | .enable_bit = OMAP3430_EN_I2C1_SHIFT, |
1412 | .flags = CLOCK_IN_OMAP343X, | 1446 | .flags = CLOCK_IN_OMAP343X, |
1447 | .clkdm_name = "core_l4_clkdm", | ||
1413 | .recalc = &followparent_recalc, | 1448 | .recalc = &followparent_recalc, |
1414 | }; | 1449 | }; |
1415 | 1450 | ||
@@ -1443,6 +1478,7 @@ static struct clk mcbsp5_fck = { | |||
1443 | .clksel_mask = OMAP2_MCBSP5_CLKS_MASK, | 1478 | .clksel_mask = OMAP2_MCBSP5_CLKS_MASK, |
1444 | .clksel = mcbsp_15_clksel, | 1479 | .clksel = mcbsp_15_clksel, |
1445 | .flags = CLOCK_IN_OMAP343X, | 1480 | .flags = CLOCK_IN_OMAP343X, |
1481 | .clkdm_name = "core_l4_clkdm", | ||
1446 | .recalc = &omap2_clksel_recalc, | 1482 | .recalc = &omap2_clksel_recalc, |
1447 | }; | 1483 | }; |
1448 | 1484 | ||
@@ -1456,6 +1492,7 @@ static struct clk mcbsp1_fck = { | |||
1456 | .clksel_mask = OMAP2_MCBSP1_CLKS_MASK, | 1492 | .clksel_mask = OMAP2_MCBSP1_CLKS_MASK, |
1457 | .clksel = mcbsp_15_clksel, | 1493 | .clksel = mcbsp_15_clksel, |
1458 | .flags = CLOCK_IN_OMAP343X, | 1494 | .flags = CLOCK_IN_OMAP343X, |
1495 | .clkdm_name = "core_l4_clkdm", | ||
1459 | .recalc = &omap2_clksel_recalc, | 1496 | .recalc = &omap2_clksel_recalc, |
1460 | }; | 1497 | }; |
1461 | 1498 | ||
@@ -1466,6 +1503,7 @@ static struct clk core_48m_fck = { | |||
1466 | .parent = &omap_48m_fck, | 1503 | .parent = &omap_48m_fck, |
1467 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 1504 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
1468 | PARENT_CONTROLS_CLOCK, | 1505 | PARENT_CONTROLS_CLOCK, |
1506 | .clkdm_name = "core_l4_clkdm", | ||
1469 | .recalc = &followparent_recalc, | 1507 | .recalc = &followparent_recalc, |
1470 | }; | 1508 | }; |
1471 | 1509 | ||
@@ -1543,6 +1581,7 @@ static struct clk core_12m_fck = { | |||
1543 | .parent = &omap_12m_fck, | 1581 | .parent = &omap_12m_fck, |
1544 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 1582 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
1545 | PARENT_CONTROLS_CLOCK, | 1583 | PARENT_CONTROLS_CLOCK, |
1584 | .clkdm_name = "core_l4_clkdm", | ||
1546 | .recalc = &followparent_recalc, | 1585 | .recalc = &followparent_recalc, |
1547 | }; | 1586 | }; |
1548 | 1587 | ||
@@ -1581,6 +1620,7 @@ static struct clk ssi_ssr_fck = { | |||
1581 | .clksel_mask = OMAP3430_CLKSEL_SSI_MASK, | 1620 | .clksel_mask = OMAP3430_CLKSEL_SSI_MASK, |
1582 | .clksel = ssi_ssr_clksel, | 1621 | .clksel = ssi_ssr_clksel, |
1583 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES, | 1622 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES, |
1623 | .clkdm_name = "core_l4_clkdm", | ||
1584 | .recalc = &omap2_clksel_recalc, | 1624 | .recalc = &omap2_clksel_recalc, |
1585 | }; | 1625 | }; |
1586 | 1626 | ||
@@ -1596,11 +1636,17 @@ static struct clk ssi_sst_fck = { | |||
1596 | 1636 | ||
1597 | /* CORE_L3_ICK based clocks */ | 1637 | /* CORE_L3_ICK based clocks */ |
1598 | 1638 | ||
1639 | /* | ||
1640 | * XXX must add clk_enable/clk_disable for these if standard code won't | ||
1641 | * handle it | ||
1642 | */ | ||
1599 | static struct clk core_l3_ick = { | 1643 | static struct clk core_l3_ick = { |
1600 | .name = "core_l3_ick", | 1644 | .name = "core_l3_ick", |
1601 | .parent = &l3_ick, | 1645 | .parent = &l3_ick, |
1646 | .init = &omap2_init_clk_clkdm, | ||
1602 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 1647 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
1603 | PARENT_CONTROLS_CLOCK, | 1648 | PARENT_CONTROLS_CLOCK, |
1649 | .clkdm_name = "core_l3_clkdm", | ||
1604 | .recalc = &followparent_recalc, | 1650 | .recalc = &followparent_recalc, |
1605 | }; | 1651 | }; |
1606 | 1652 | ||
@@ -1610,6 +1656,7 @@ static struct clk hsotgusb_ick = { | |||
1610 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1656 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1611 | .enable_bit = OMAP3430_EN_HSOTGUSB_SHIFT, | 1657 | .enable_bit = OMAP3430_EN_HSOTGUSB_SHIFT, |
1612 | .flags = CLOCK_IN_OMAP343X, | 1658 | .flags = CLOCK_IN_OMAP343X, |
1659 | .clkdm_name = "core_l3_clkdm", | ||
1613 | .recalc = &followparent_recalc, | 1660 | .recalc = &followparent_recalc, |
1614 | }; | 1661 | }; |
1615 | 1662 | ||
@@ -1619,6 +1666,7 @@ static struct clk sdrc_ick = { | |||
1619 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1666 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1620 | .enable_bit = OMAP3430_EN_SDRC_SHIFT, | 1667 | .enable_bit = OMAP3430_EN_SDRC_SHIFT, |
1621 | .flags = CLOCK_IN_OMAP343X | ENABLE_ON_INIT, | 1668 | .flags = CLOCK_IN_OMAP343X | ENABLE_ON_INIT, |
1669 | .clkdm_name = "core_l3_clkdm", | ||
1622 | .recalc = &followparent_recalc, | 1670 | .recalc = &followparent_recalc, |
1623 | }; | 1671 | }; |
1624 | 1672 | ||
@@ -1627,6 +1675,7 @@ static struct clk gpmc_fck = { | |||
1627 | .parent = &core_l3_ick, | 1675 | .parent = &core_l3_ick, |
1628 | .flags = CLOCK_IN_OMAP343X | PARENT_CONTROLS_CLOCK | | 1676 | .flags = CLOCK_IN_OMAP343X | PARENT_CONTROLS_CLOCK | |
1629 | ENABLE_ON_INIT, | 1677 | ENABLE_ON_INIT, |
1678 | .clkdm_name = "core_l3_clkdm", | ||
1630 | .recalc = &followparent_recalc, | 1679 | .recalc = &followparent_recalc, |
1631 | }; | 1680 | }; |
1632 | 1681 | ||
@@ -1654,8 +1703,10 @@ static struct clk pka_ick = { | |||
1654 | static struct clk core_l4_ick = { | 1703 | static struct clk core_l4_ick = { |
1655 | .name = "core_l4_ick", | 1704 | .name = "core_l4_ick", |
1656 | .parent = &l4_ick, | 1705 | .parent = &l4_ick, |
1706 | .init = &omap2_init_clk_clkdm, | ||
1657 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 1707 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
1658 | PARENT_CONTROLS_CLOCK, | 1708 | PARENT_CONTROLS_CLOCK, |
1709 | .clkdm_name = "core_l4_clkdm", | ||
1659 | .recalc = &followparent_recalc, | 1710 | .recalc = &followparent_recalc, |
1660 | }; | 1711 | }; |
1661 | 1712 | ||
@@ -1665,6 +1716,7 @@ static struct clk usbtll_ick = { | |||
1665 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN3), | 1716 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN3), |
1666 | .enable_bit = OMAP3430ES2_EN_USBTLL_SHIFT, | 1717 | .enable_bit = OMAP3430ES2_EN_USBTLL_SHIFT, |
1667 | .flags = CLOCK_IN_OMAP3430ES2, | 1718 | .flags = CLOCK_IN_OMAP3430ES2, |
1719 | .clkdm_name = "core_l4_clkdm", | ||
1668 | .recalc = &followparent_recalc, | 1720 | .recalc = &followparent_recalc, |
1669 | }; | 1721 | }; |
1670 | 1722 | ||
@@ -1675,6 +1727,7 @@ static struct clk mmchs3_ick = { | |||
1675 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1727 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1676 | .enable_bit = OMAP3430ES2_EN_MMC3_SHIFT, | 1728 | .enable_bit = OMAP3430ES2_EN_MMC3_SHIFT, |
1677 | .flags = CLOCK_IN_OMAP3430ES2, | 1729 | .flags = CLOCK_IN_OMAP3430ES2, |
1730 | .clkdm_name = "core_l4_clkdm", | ||
1678 | .recalc = &followparent_recalc, | 1731 | .recalc = &followparent_recalc, |
1679 | }; | 1732 | }; |
1680 | 1733 | ||
@@ -1685,6 +1738,7 @@ static struct clk icr_ick = { | |||
1685 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1738 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1686 | .enable_bit = OMAP3430_EN_ICR_SHIFT, | 1739 | .enable_bit = OMAP3430_EN_ICR_SHIFT, |
1687 | .flags = CLOCK_IN_OMAP343X, | 1740 | .flags = CLOCK_IN_OMAP343X, |
1741 | .clkdm_name = "core_l4_clkdm", | ||
1688 | .recalc = &followparent_recalc, | 1742 | .recalc = &followparent_recalc, |
1689 | }; | 1743 | }; |
1690 | 1744 | ||
@@ -1694,6 +1748,7 @@ static struct clk aes2_ick = { | |||
1694 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1748 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1695 | .enable_bit = OMAP3430_EN_AES2_SHIFT, | 1749 | .enable_bit = OMAP3430_EN_AES2_SHIFT, |
1696 | .flags = CLOCK_IN_OMAP343X, | 1750 | .flags = CLOCK_IN_OMAP343X, |
1751 | .clkdm_name = "core_l4_clkdm", | ||
1697 | .recalc = &followparent_recalc, | 1752 | .recalc = &followparent_recalc, |
1698 | }; | 1753 | }; |
1699 | 1754 | ||
@@ -1703,6 +1758,7 @@ static struct clk sha12_ick = { | |||
1703 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1758 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1704 | .enable_bit = OMAP3430_EN_SHA12_SHIFT, | 1759 | .enable_bit = OMAP3430_EN_SHA12_SHIFT, |
1705 | .flags = CLOCK_IN_OMAP343X, | 1760 | .flags = CLOCK_IN_OMAP343X, |
1761 | .clkdm_name = "core_l4_clkdm", | ||
1706 | .recalc = &followparent_recalc, | 1762 | .recalc = &followparent_recalc, |
1707 | }; | 1763 | }; |
1708 | 1764 | ||
@@ -1712,6 +1768,7 @@ static struct clk des2_ick = { | |||
1712 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1768 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1713 | .enable_bit = OMAP3430_EN_DES2_SHIFT, | 1769 | .enable_bit = OMAP3430_EN_DES2_SHIFT, |
1714 | .flags = CLOCK_IN_OMAP343X, | 1770 | .flags = CLOCK_IN_OMAP343X, |
1771 | .clkdm_name = "core_l4_clkdm", | ||
1715 | .recalc = &followparent_recalc, | 1772 | .recalc = &followparent_recalc, |
1716 | }; | 1773 | }; |
1717 | 1774 | ||
@@ -1722,6 +1779,7 @@ static struct clk mmchs2_ick = { | |||
1722 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1779 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1723 | .enable_bit = OMAP3430_EN_MMC2_SHIFT, | 1780 | .enable_bit = OMAP3430_EN_MMC2_SHIFT, |
1724 | .flags = CLOCK_IN_OMAP343X, | 1781 | .flags = CLOCK_IN_OMAP343X, |
1782 | .clkdm_name = "core_l4_clkdm", | ||
1725 | .recalc = &followparent_recalc, | 1783 | .recalc = &followparent_recalc, |
1726 | }; | 1784 | }; |
1727 | 1785 | ||
@@ -1732,6 +1790,7 @@ static struct clk mmchs1_ick = { | |||
1732 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1790 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1733 | .enable_bit = OMAP3430_EN_MMC1_SHIFT, | 1791 | .enable_bit = OMAP3430_EN_MMC1_SHIFT, |
1734 | .flags = CLOCK_IN_OMAP343X, | 1792 | .flags = CLOCK_IN_OMAP343X, |
1793 | .clkdm_name = "core_l4_clkdm", | ||
1735 | .recalc = &followparent_recalc, | 1794 | .recalc = &followparent_recalc, |
1736 | }; | 1795 | }; |
1737 | 1796 | ||
@@ -1741,6 +1800,7 @@ static struct clk mspro_ick = { | |||
1741 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1800 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1742 | .enable_bit = OMAP3430_EN_MSPRO_SHIFT, | 1801 | .enable_bit = OMAP3430_EN_MSPRO_SHIFT, |
1743 | .flags = CLOCK_IN_OMAP343X, | 1802 | .flags = CLOCK_IN_OMAP343X, |
1803 | .clkdm_name = "core_l4_clkdm", | ||
1744 | .recalc = &followparent_recalc, | 1804 | .recalc = &followparent_recalc, |
1745 | }; | 1805 | }; |
1746 | 1806 | ||
@@ -1750,6 +1810,7 @@ static struct clk hdq_ick = { | |||
1750 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1810 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1751 | .enable_bit = OMAP3430_EN_HDQ_SHIFT, | 1811 | .enable_bit = OMAP3430_EN_HDQ_SHIFT, |
1752 | .flags = CLOCK_IN_OMAP343X, | 1812 | .flags = CLOCK_IN_OMAP343X, |
1813 | .clkdm_name = "core_l4_clkdm", | ||
1753 | .recalc = &followparent_recalc, | 1814 | .recalc = &followparent_recalc, |
1754 | }; | 1815 | }; |
1755 | 1816 | ||
@@ -1760,6 +1821,7 @@ static struct clk mcspi4_ick = { | |||
1760 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1821 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1761 | .enable_bit = OMAP3430_EN_MCSPI4_SHIFT, | 1822 | .enable_bit = OMAP3430_EN_MCSPI4_SHIFT, |
1762 | .flags = CLOCK_IN_OMAP343X, | 1823 | .flags = CLOCK_IN_OMAP343X, |
1824 | .clkdm_name = "core_l4_clkdm", | ||
1763 | .recalc = &followparent_recalc, | 1825 | .recalc = &followparent_recalc, |
1764 | }; | 1826 | }; |
1765 | 1827 | ||
@@ -1770,6 +1832,7 @@ static struct clk mcspi3_ick = { | |||
1770 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1832 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1771 | .enable_bit = OMAP3430_EN_MCSPI3_SHIFT, | 1833 | .enable_bit = OMAP3430_EN_MCSPI3_SHIFT, |
1772 | .flags = CLOCK_IN_OMAP343X, | 1834 | .flags = CLOCK_IN_OMAP343X, |
1835 | .clkdm_name = "core_l4_clkdm", | ||
1773 | .recalc = &followparent_recalc, | 1836 | .recalc = &followparent_recalc, |
1774 | }; | 1837 | }; |
1775 | 1838 | ||
@@ -1780,6 +1843,7 @@ static struct clk mcspi2_ick = { | |||
1780 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1843 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1781 | .enable_bit = OMAP3430_EN_MCSPI2_SHIFT, | 1844 | .enable_bit = OMAP3430_EN_MCSPI2_SHIFT, |
1782 | .flags = CLOCK_IN_OMAP343X, | 1845 | .flags = CLOCK_IN_OMAP343X, |
1846 | .clkdm_name = "core_l4_clkdm", | ||
1783 | .recalc = &followparent_recalc, | 1847 | .recalc = &followparent_recalc, |
1784 | }; | 1848 | }; |
1785 | 1849 | ||
@@ -1790,6 +1854,7 @@ static struct clk mcspi1_ick = { | |||
1790 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1854 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1791 | .enable_bit = OMAP3430_EN_MCSPI1_SHIFT, | 1855 | .enable_bit = OMAP3430_EN_MCSPI1_SHIFT, |
1792 | .flags = CLOCK_IN_OMAP343X, | 1856 | .flags = CLOCK_IN_OMAP343X, |
1857 | .clkdm_name = "core_l4_clkdm", | ||
1793 | .recalc = &followparent_recalc, | 1858 | .recalc = &followparent_recalc, |
1794 | }; | 1859 | }; |
1795 | 1860 | ||
@@ -1800,6 +1865,7 @@ static struct clk i2c3_ick = { | |||
1800 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1865 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1801 | .enable_bit = OMAP3430_EN_I2C3_SHIFT, | 1866 | .enable_bit = OMAP3430_EN_I2C3_SHIFT, |
1802 | .flags = CLOCK_IN_OMAP343X, | 1867 | .flags = CLOCK_IN_OMAP343X, |
1868 | .clkdm_name = "core_l4_clkdm", | ||
1803 | .recalc = &followparent_recalc, | 1869 | .recalc = &followparent_recalc, |
1804 | }; | 1870 | }; |
1805 | 1871 | ||
@@ -1810,6 +1876,7 @@ static struct clk i2c2_ick = { | |||
1810 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1876 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1811 | .enable_bit = OMAP3430_EN_I2C2_SHIFT, | 1877 | .enable_bit = OMAP3430_EN_I2C2_SHIFT, |
1812 | .flags = CLOCK_IN_OMAP343X, | 1878 | .flags = CLOCK_IN_OMAP343X, |
1879 | .clkdm_name = "core_l4_clkdm", | ||
1813 | .recalc = &followparent_recalc, | 1880 | .recalc = &followparent_recalc, |
1814 | }; | 1881 | }; |
1815 | 1882 | ||
@@ -1820,6 +1887,7 @@ static struct clk i2c1_ick = { | |||
1820 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1887 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1821 | .enable_bit = OMAP3430_EN_I2C1_SHIFT, | 1888 | .enable_bit = OMAP3430_EN_I2C1_SHIFT, |
1822 | .flags = CLOCK_IN_OMAP343X, | 1889 | .flags = CLOCK_IN_OMAP343X, |
1890 | .clkdm_name = "core_l4_clkdm", | ||
1823 | .recalc = &followparent_recalc, | 1891 | .recalc = &followparent_recalc, |
1824 | }; | 1892 | }; |
1825 | 1893 | ||
@@ -1829,6 +1897,7 @@ static struct clk uart2_ick = { | |||
1829 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1897 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1830 | .enable_bit = OMAP3430_EN_UART2_SHIFT, | 1898 | .enable_bit = OMAP3430_EN_UART2_SHIFT, |
1831 | .flags = CLOCK_IN_OMAP343X, | 1899 | .flags = CLOCK_IN_OMAP343X, |
1900 | .clkdm_name = "core_l4_clkdm", | ||
1832 | .recalc = &followparent_recalc, | 1901 | .recalc = &followparent_recalc, |
1833 | }; | 1902 | }; |
1834 | 1903 | ||
@@ -1838,6 +1907,7 @@ static struct clk uart1_ick = { | |||
1838 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1907 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1839 | .enable_bit = OMAP3430_EN_UART1_SHIFT, | 1908 | .enable_bit = OMAP3430_EN_UART1_SHIFT, |
1840 | .flags = CLOCK_IN_OMAP343X, | 1909 | .flags = CLOCK_IN_OMAP343X, |
1910 | .clkdm_name = "core_l4_clkdm", | ||
1841 | .recalc = &followparent_recalc, | 1911 | .recalc = &followparent_recalc, |
1842 | }; | 1912 | }; |
1843 | 1913 | ||
@@ -1847,6 +1917,7 @@ static struct clk gpt11_ick = { | |||
1847 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1917 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1848 | .enable_bit = OMAP3430_EN_GPT11_SHIFT, | 1918 | .enable_bit = OMAP3430_EN_GPT11_SHIFT, |
1849 | .flags = CLOCK_IN_OMAP343X, | 1919 | .flags = CLOCK_IN_OMAP343X, |
1920 | .clkdm_name = "core_l4_clkdm", | ||
1850 | .recalc = &followparent_recalc, | 1921 | .recalc = &followparent_recalc, |
1851 | }; | 1922 | }; |
1852 | 1923 | ||
@@ -1856,6 +1927,7 @@ static struct clk gpt10_ick = { | |||
1856 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1927 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1857 | .enable_bit = OMAP3430_EN_GPT10_SHIFT, | 1928 | .enable_bit = OMAP3430_EN_GPT10_SHIFT, |
1858 | .flags = CLOCK_IN_OMAP343X, | 1929 | .flags = CLOCK_IN_OMAP343X, |
1930 | .clkdm_name = "core_l4_clkdm", | ||
1859 | .recalc = &followparent_recalc, | 1931 | .recalc = &followparent_recalc, |
1860 | }; | 1932 | }; |
1861 | 1933 | ||
@@ -1866,6 +1938,7 @@ static struct clk mcbsp5_ick = { | |||
1866 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1938 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1867 | .enable_bit = OMAP3430_EN_MCBSP5_SHIFT, | 1939 | .enable_bit = OMAP3430_EN_MCBSP5_SHIFT, |
1868 | .flags = CLOCK_IN_OMAP343X, | 1940 | .flags = CLOCK_IN_OMAP343X, |
1941 | .clkdm_name = "core_l4_clkdm", | ||
1869 | .recalc = &followparent_recalc, | 1942 | .recalc = &followparent_recalc, |
1870 | }; | 1943 | }; |
1871 | 1944 | ||
@@ -1876,6 +1949,7 @@ static struct clk mcbsp1_ick = { | |||
1876 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1949 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1877 | .enable_bit = OMAP3430_EN_MCBSP1_SHIFT, | 1950 | .enable_bit = OMAP3430_EN_MCBSP1_SHIFT, |
1878 | .flags = CLOCK_IN_OMAP343X, | 1951 | .flags = CLOCK_IN_OMAP343X, |
1952 | .clkdm_name = "core_l4_clkdm", | ||
1879 | .recalc = &followparent_recalc, | 1953 | .recalc = &followparent_recalc, |
1880 | }; | 1954 | }; |
1881 | 1955 | ||
@@ -1885,6 +1959,7 @@ static struct clk fac_ick = { | |||
1885 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1959 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1886 | .enable_bit = OMAP3430ES1_EN_FAC_SHIFT, | 1960 | .enable_bit = OMAP3430ES1_EN_FAC_SHIFT, |
1887 | .flags = CLOCK_IN_OMAP3430ES1, | 1961 | .flags = CLOCK_IN_OMAP3430ES1, |
1962 | .clkdm_name = "core_l4_clkdm", | ||
1888 | .recalc = &followparent_recalc, | 1963 | .recalc = &followparent_recalc, |
1889 | }; | 1964 | }; |
1890 | 1965 | ||
@@ -1894,6 +1969,7 @@ static struct clk mailboxes_ick = { | |||
1894 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1969 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1895 | .enable_bit = OMAP3430_EN_MAILBOXES_SHIFT, | 1970 | .enable_bit = OMAP3430_EN_MAILBOXES_SHIFT, |
1896 | .flags = CLOCK_IN_OMAP343X, | 1971 | .flags = CLOCK_IN_OMAP343X, |
1972 | .clkdm_name = "core_l4_clkdm", | ||
1897 | .recalc = &followparent_recalc, | 1973 | .recalc = &followparent_recalc, |
1898 | }; | 1974 | }; |
1899 | 1975 | ||
@@ -1913,6 +1989,7 @@ static struct clk ssi_l4_ick = { | |||
1913 | .parent = &l4_ick, | 1989 | .parent = &l4_ick, |
1914 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 1990 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
1915 | PARENT_CONTROLS_CLOCK, | 1991 | PARENT_CONTROLS_CLOCK, |
1992 | .clkdm_name = "core_l4_clkdm", | ||
1916 | .recalc = &followparent_recalc, | 1993 | .recalc = &followparent_recalc, |
1917 | }; | 1994 | }; |
1918 | 1995 | ||
@@ -1922,6 +1999,7 @@ static struct clk ssi_ick = { | |||
1922 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), | 1999 | .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN1), |
1923 | .enable_bit = OMAP3430_EN_SSI_SHIFT, | 2000 | .enable_bit = OMAP3430_EN_SSI_SHIFT, |
1924 | .flags = CLOCK_IN_OMAP343X, | 2001 | .flags = CLOCK_IN_OMAP343X, |
2002 | .clkdm_name = "core_l4_clkdm", | ||
1925 | .recalc = &followparent_recalc, | 2003 | .recalc = &followparent_recalc, |
1926 | }; | 2004 | }; |
1927 | 2005 | ||
@@ -1996,7 +2074,7 @@ static struct clk des1_ick = { | |||
1996 | 2074 | ||
1997 | /* DSS */ | 2075 | /* DSS */ |
1998 | static const struct clksel dss1_alwon_fck_clksel[] = { | 2076 | static const struct clksel dss1_alwon_fck_clksel[] = { |
1999 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, | 2077 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, |
2000 | { .parent = &dpll4_m4x2_ck, .rates = dpll_locked_rates }, | 2078 | { .parent = &dpll4_m4x2_ck, .rates = dpll_locked_rates }, |
2001 | { .parent = NULL } | 2079 | { .parent = NULL } |
2002 | }; | 2080 | }; |
@@ -2011,33 +2089,40 @@ static struct clk dss1_alwon_fck = { | |||
2011 | .clksel_mask = OMAP3430_ST_PERIPH_CLK_MASK, | 2089 | .clksel_mask = OMAP3430_ST_PERIPH_CLK_MASK, |
2012 | .clksel = dss1_alwon_fck_clksel, | 2090 | .clksel = dss1_alwon_fck_clksel, |
2013 | .flags = CLOCK_IN_OMAP343X, | 2091 | .flags = CLOCK_IN_OMAP343X, |
2092 | .clkdm_name = "dss_clkdm", | ||
2014 | .recalc = &omap2_clksel_recalc, | 2093 | .recalc = &omap2_clksel_recalc, |
2015 | }; | 2094 | }; |
2016 | 2095 | ||
2017 | static struct clk dss_tv_fck = { | 2096 | static struct clk dss_tv_fck = { |
2018 | .name = "dss_tv_fck", | 2097 | .name = "dss_tv_fck", |
2019 | .parent = &omap_54m_fck, | 2098 | .parent = &omap_54m_fck, |
2099 | .init = &omap2_init_clk_clkdm, | ||
2020 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_DSS_MOD, CM_FCLKEN), | 2100 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_DSS_MOD, CM_FCLKEN), |
2021 | .enable_bit = OMAP3430_EN_TV_SHIFT, | 2101 | .enable_bit = OMAP3430_EN_TV_SHIFT, |
2022 | .flags = CLOCK_IN_OMAP343X, | 2102 | .flags = CLOCK_IN_OMAP343X, |
2103 | .clkdm_name = "dss_clkdm", | ||
2023 | .recalc = &followparent_recalc, | 2104 | .recalc = &followparent_recalc, |
2024 | }; | 2105 | }; |
2025 | 2106 | ||
2026 | static struct clk dss_96m_fck = { | 2107 | static struct clk dss_96m_fck = { |
2027 | .name = "dss_96m_fck", | 2108 | .name = "dss_96m_fck", |
2028 | .parent = &omap_96m_fck, | 2109 | .parent = &omap_96m_fck, |
2110 | .init = &omap2_init_clk_clkdm, | ||
2029 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_DSS_MOD, CM_FCLKEN), | 2111 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_DSS_MOD, CM_FCLKEN), |
2030 | .enable_bit = OMAP3430_EN_TV_SHIFT, | 2112 | .enable_bit = OMAP3430_EN_TV_SHIFT, |
2031 | .flags = CLOCK_IN_OMAP343X, | 2113 | .flags = CLOCK_IN_OMAP343X, |
2114 | .clkdm_name = "dss_clkdm", | ||
2032 | .recalc = &followparent_recalc, | 2115 | .recalc = &followparent_recalc, |
2033 | }; | 2116 | }; |
2034 | 2117 | ||
2035 | static struct clk dss2_alwon_fck = { | 2118 | static struct clk dss2_alwon_fck = { |
2036 | .name = "dss2_alwon_fck", | 2119 | .name = "dss2_alwon_fck", |
2037 | .parent = &sys_ck, | 2120 | .parent = &sys_ck, |
2121 | .init = &omap2_init_clk_clkdm, | ||
2038 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_DSS_MOD, CM_FCLKEN), | 2122 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_DSS_MOD, CM_FCLKEN), |
2039 | .enable_bit = OMAP3430_EN_DSS2_SHIFT, | 2123 | .enable_bit = OMAP3430_EN_DSS2_SHIFT, |
2040 | .flags = CLOCK_IN_OMAP343X, | 2124 | .flags = CLOCK_IN_OMAP343X, |
2125 | .clkdm_name = "dss_clkdm", | ||
2041 | .recalc = &followparent_recalc, | 2126 | .recalc = &followparent_recalc, |
2042 | }; | 2127 | }; |
2043 | 2128 | ||
@@ -2045,16 +2130,18 @@ static struct clk dss_ick = { | |||
2045 | /* Handles both L3 and L4 clocks */ | 2130 | /* Handles both L3 and L4 clocks */ |
2046 | .name = "dss_ick", | 2131 | .name = "dss_ick", |
2047 | .parent = &l4_ick, | 2132 | .parent = &l4_ick, |
2133 | .init = &omap2_init_clk_clkdm, | ||
2048 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_DSS_MOD, CM_ICLKEN), | 2134 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_DSS_MOD, CM_ICLKEN), |
2049 | .enable_bit = OMAP3430_CM_ICLKEN_DSS_EN_DSS_SHIFT, | 2135 | .enable_bit = OMAP3430_CM_ICLKEN_DSS_EN_DSS_SHIFT, |
2050 | .flags = CLOCK_IN_OMAP343X, | 2136 | .flags = CLOCK_IN_OMAP343X, |
2137 | .clkdm_name = "dss_clkdm", | ||
2051 | .recalc = &followparent_recalc, | 2138 | .recalc = &followparent_recalc, |
2052 | }; | 2139 | }; |
2053 | 2140 | ||
2054 | /* CAM */ | 2141 | /* CAM */ |
2055 | 2142 | ||
2056 | static const struct clksel cam_mclk_clksel[] = { | 2143 | static const struct clksel cam_mclk_clksel[] = { |
2057 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, | 2144 | { .parent = &sys_ck, .rates = dpll_bypass_rates }, |
2058 | { .parent = &dpll4_m5x2_ck, .rates = dpll_locked_rates }, | 2145 | { .parent = &dpll4_m5x2_ck, .rates = dpll_locked_rates }, |
2059 | { .parent = NULL } | 2146 | { .parent = NULL } |
2060 | }; | 2147 | }; |
@@ -2069,24 +2156,19 @@ static struct clk cam_mclk = { | |||
2069 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_CAM_MOD, CM_FCLKEN), | 2156 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_CAM_MOD, CM_FCLKEN), |
2070 | .enable_bit = OMAP3430_EN_CAM_SHIFT, | 2157 | .enable_bit = OMAP3430_EN_CAM_SHIFT, |
2071 | .flags = CLOCK_IN_OMAP343X, | 2158 | .flags = CLOCK_IN_OMAP343X, |
2159 | .clkdm_name = "cam_clkdm", | ||
2072 | .recalc = &omap2_clksel_recalc, | 2160 | .recalc = &omap2_clksel_recalc, |
2073 | }; | 2161 | }; |
2074 | 2162 | ||
2075 | static struct clk cam_l3_ick = { | 2163 | static struct clk cam_ick = { |
2076 | .name = "cam_l3_ick", | 2164 | /* Handles both L3 and L4 clocks */ |
2077 | .parent = &l3_ick, | 2165 | .name = "cam_ick", |
2078 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_CAM_MOD, CM_ICLKEN), | ||
2079 | .enable_bit = OMAP3430_EN_CAM_SHIFT, | ||
2080 | .flags = CLOCK_IN_OMAP343X, | ||
2081 | .recalc = &followparent_recalc, | ||
2082 | }; | ||
2083 | |||
2084 | static struct clk cam_l4_ick = { | ||
2085 | .name = "cam_l4_ick", | ||
2086 | .parent = &l4_ick, | 2166 | .parent = &l4_ick, |
2167 | .init = &omap2_init_clk_clkdm, | ||
2087 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_CAM_MOD, CM_ICLKEN), | 2168 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_CAM_MOD, CM_ICLKEN), |
2088 | .enable_bit = OMAP3430_EN_CAM_SHIFT, | 2169 | .enable_bit = OMAP3430_EN_CAM_SHIFT, |
2089 | .flags = CLOCK_IN_OMAP343X, | 2170 | .flags = CLOCK_IN_OMAP343X, |
2171 | .clkdm_name = "cam_clkdm", | ||
2090 | .recalc = &followparent_recalc, | 2172 | .recalc = &followparent_recalc, |
2091 | }; | 2173 | }; |
2092 | 2174 | ||
@@ -2095,45 +2177,45 @@ static struct clk cam_l4_ick = { | |||
2095 | static struct clk usbhost_120m_fck = { | 2177 | static struct clk usbhost_120m_fck = { |
2096 | .name = "usbhost_120m_fck", | 2178 | .name = "usbhost_120m_fck", |
2097 | .parent = &omap_120m_fck, | 2179 | .parent = &omap_120m_fck, |
2180 | .init = &omap2_init_clk_clkdm, | ||
2098 | .enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_USBHOST_MOD, CM_FCLKEN), | 2181 | .enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_USBHOST_MOD, CM_FCLKEN), |
2099 | .enable_bit = OMAP3430ES2_EN_USBHOST2_SHIFT, | 2182 | .enable_bit = OMAP3430ES2_EN_USBHOST2_SHIFT, |
2100 | .flags = CLOCK_IN_OMAP3430ES2, | 2183 | .flags = CLOCK_IN_OMAP3430ES2, |
2184 | .clkdm_name = "usbhost_clkdm", | ||
2101 | .recalc = &followparent_recalc, | 2185 | .recalc = &followparent_recalc, |
2102 | }; | 2186 | }; |
2103 | 2187 | ||
2104 | static struct clk usbhost_48m_fck = { | 2188 | static struct clk usbhost_48m_fck = { |
2105 | .name = "usbhost_48m_fck", | 2189 | .name = "usbhost_48m_fck", |
2106 | .parent = &omap_48m_fck, | 2190 | .parent = &omap_48m_fck, |
2191 | .init = &omap2_init_clk_clkdm, | ||
2107 | .enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_USBHOST_MOD, CM_FCLKEN), | 2192 | .enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_USBHOST_MOD, CM_FCLKEN), |
2108 | .enable_bit = OMAP3430ES2_EN_USBHOST1_SHIFT, | 2193 | .enable_bit = OMAP3430ES2_EN_USBHOST1_SHIFT, |
2109 | .flags = CLOCK_IN_OMAP3430ES2, | 2194 | .flags = CLOCK_IN_OMAP3430ES2, |
2195 | .clkdm_name = "usbhost_clkdm", | ||
2110 | .recalc = &followparent_recalc, | 2196 | .recalc = &followparent_recalc, |
2111 | }; | 2197 | }; |
2112 | 2198 | ||
2113 | static struct clk usbhost_l3_ick = { | 2199 | static struct clk usbhost_ick = { |
2114 | .name = "usbhost_l3_ick", | 2200 | /* Handles both L3 and L4 clocks */ |
2115 | .parent = &l3_ick, | 2201 | .name = "usbhost_ick", |
2116 | .enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_USBHOST_MOD, CM_ICLKEN), | ||
2117 | .enable_bit = OMAP3430ES2_EN_USBHOST_SHIFT, | ||
2118 | .flags = CLOCK_IN_OMAP3430ES2, | ||
2119 | .recalc = &followparent_recalc, | ||
2120 | }; | ||
2121 | |||
2122 | static struct clk usbhost_l4_ick = { | ||
2123 | .name = "usbhost_l4_ick", | ||
2124 | .parent = &l4_ick, | 2202 | .parent = &l4_ick, |
2203 | .init = &omap2_init_clk_clkdm, | ||
2125 | .enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_USBHOST_MOD, CM_ICLKEN), | 2204 | .enable_reg = OMAP_CM_REGADDR(OMAP3430ES2_USBHOST_MOD, CM_ICLKEN), |
2126 | .enable_bit = OMAP3430ES2_EN_USBHOST_SHIFT, | 2205 | .enable_bit = OMAP3430ES2_EN_USBHOST_SHIFT, |
2127 | .flags = CLOCK_IN_OMAP3430ES2, | 2206 | .flags = CLOCK_IN_OMAP3430ES2, |
2207 | .clkdm_name = "usbhost_clkdm", | ||
2128 | .recalc = &followparent_recalc, | 2208 | .recalc = &followparent_recalc, |
2129 | }; | 2209 | }; |
2130 | 2210 | ||
2131 | static struct clk usbhost_sar_fck = { | 2211 | static struct clk usbhost_sar_fck = { |
2132 | .name = "usbhost_sar_fck", | 2212 | .name = "usbhost_sar_fck", |
2133 | .parent = &osc_sys_ck, | 2213 | .parent = &osc_sys_ck, |
2214 | .init = &omap2_init_clk_clkdm, | ||
2134 | .enable_reg = OMAP_PRM_REGADDR(OMAP3430ES2_USBHOST_MOD, PM_PWSTCTRL), | 2215 | .enable_reg = OMAP_PRM_REGADDR(OMAP3430ES2_USBHOST_MOD, PM_PWSTCTRL), |
2135 | .enable_bit = OMAP3430ES2_SAVEANDRESTORE_SHIFT, | 2216 | .enable_bit = OMAP3430ES2_SAVEANDRESTORE_SHIFT, |
2136 | .flags = CLOCK_IN_OMAP3430ES2, | 2217 | .flags = CLOCK_IN_OMAP3430ES2, |
2218 | .clkdm_name = "usbhost_clkdm", | ||
2137 | .recalc = &followparent_recalc, | 2219 | .recalc = &followparent_recalc, |
2138 | }; | 2220 | }; |
2139 | 2221 | ||
@@ -2175,6 +2257,7 @@ static struct clk usim_fck = { | |||
2175 | .recalc = &omap2_clksel_recalc, | 2257 | .recalc = &omap2_clksel_recalc, |
2176 | }; | 2258 | }; |
2177 | 2259 | ||
2260 | /* XXX should gpt1's clksel have wkup_32k_fck as the 32k opt? */ | ||
2178 | static struct clk gpt1_fck = { | 2261 | static struct clk gpt1_fck = { |
2179 | .name = "gpt1_fck", | 2262 | .name = "gpt1_fck", |
2180 | .init = &omap2_init_clksel_parent, | 2263 | .init = &omap2_init_clksel_parent, |
@@ -2184,13 +2267,16 @@ static struct clk gpt1_fck = { | |||
2184 | .clksel_mask = OMAP3430_CLKSEL_GPT1_MASK, | 2267 | .clksel_mask = OMAP3430_CLKSEL_GPT1_MASK, |
2185 | .clksel = omap343x_gpt_clksel, | 2268 | .clksel = omap343x_gpt_clksel, |
2186 | .flags = CLOCK_IN_OMAP343X, | 2269 | .flags = CLOCK_IN_OMAP343X, |
2270 | .clkdm_name = "wkup_clkdm", | ||
2187 | .recalc = &omap2_clksel_recalc, | 2271 | .recalc = &omap2_clksel_recalc, |
2188 | }; | 2272 | }; |
2189 | 2273 | ||
2190 | static struct clk wkup_32k_fck = { | 2274 | static struct clk wkup_32k_fck = { |
2191 | .name = "wkup_32k_fck", | 2275 | .name = "wkup_32k_fck", |
2276 | .init = &omap2_init_clk_clkdm, | ||
2192 | .parent = &omap_32k_fck, | 2277 | .parent = &omap_32k_fck, |
2193 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, | 2278 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, |
2279 | .clkdm_name = "wkup_clkdm", | ||
2194 | .recalc = &followparent_recalc, | 2280 | .recalc = &followparent_recalc, |
2195 | }; | 2281 | }; |
2196 | 2282 | ||
@@ -2200,6 +2286,7 @@ static struct clk gpio1_fck = { | |||
2200 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_FCLKEN), | 2286 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_FCLKEN), |
2201 | .enable_bit = OMAP3430_EN_GPIO1_SHIFT, | 2287 | .enable_bit = OMAP3430_EN_GPIO1_SHIFT, |
2202 | .flags = CLOCK_IN_OMAP343X, | 2288 | .flags = CLOCK_IN_OMAP343X, |
2289 | .clkdm_name = "wkup_clkdm", | ||
2203 | .recalc = &followparent_recalc, | 2290 | .recalc = &followparent_recalc, |
2204 | }; | 2291 | }; |
2205 | 2292 | ||
@@ -2209,6 +2296,7 @@ static struct clk wdt2_fck = { | |||
2209 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_FCLKEN), | 2296 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_FCLKEN), |
2210 | .enable_bit = OMAP3430_EN_WDT2_SHIFT, | 2297 | .enable_bit = OMAP3430_EN_WDT2_SHIFT, |
2211 | .flags = CLOCK_IN_OMAP343X, | 2298 | .flags = CLOCK_IN_OMAP343X, |
2299 | .clkdm_name = "wkup_clkdm", | ||
2212 | .recalc = &followparent_recalc, | 2300 | .recalc = &followparent_recalc, |
2213 | }; | 2301 | }; |
2214 | 2302 | ||
@@ -2216,6 +2304,7 @@ static struct clk wkup_l4_ick = { | |||
2216 | .name = "wkup_l4_ick", | 2304 | .name = "wkup_l4_ick", |
2217 | .parent = &sys_ck, | 2305 | .parent = &sys_ck, |
2218 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, | 2306 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, |
2307 | .clkdm_name = "wkup_clkdm", | ||
2219 | .recalc = &followparent_recalc, | 2308 | .recalc = &followparent_recalc, |
2220 | }; | 2309 | }; |
2221 | 2310 | ||
@@ -2227,6 +2316,7 @@ static struct clk usim_ick = { | |||
2227 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), | 2316 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), |
2228 | .enable_bit = OMAP3430ES2_EN_USIMOCP_SHIFT, | 2317 | .enable_bit = OMAP3430ES2_EN_USIMOCP_SHIFT, |
2229 | .flags = CLOCK_IN_OMAP3430ES2, | 2318 | .flags = CLOCK_IN_OMAP3430ES2, |
2319 | .clkdm_name = "wkup_clkdm", | ||
2230 | .recalc = &followparent_recalc, | 2320 | .recalc = &followparent_recalc, |
2231 | }; | 2321 | }; |
2232 | 2322 | ||
@@ -2236,6 +2326,7 @@ static struct clk wdt2_ick = { | |||
2236 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), | 2326 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), |
2237 | .enable_bit = OMAP3430_EN_WDT2_SHIFT, | 2327 | .enable_bit = OMAP3430_EN_WDT2_SHIFT, |
2238 | .flags = CLOCK_IN_OMAP343X, | 2328 | .flags = CLOCK_IN_OMAP343X, |
2329 | .clkdm_name = "wkup_clkdm", | ||
2239 | .recalc = &followparent_recalc, | 2330 | .recalc = &followparent_recalc, |
2240 | }; | 2331 | }; |
2241 | 2332 | ||
@@ -2245,6 +2336,7 @@ static struct clk wdt1_ick = { | |||
2245 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), | 2336 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), |
2246 | .enable_bit = OMAP3430_EN_WDT1_SHIFT, | 2337 | .enable_bit = OMAP3430_EN_WDT1_SHIFT, |
2247 | .flags = CLOCK_IN_OMAP343X, | 2338 | .flags = CLOCK_IN_OMAP343X, |
2339 | .clkdm_name = "wkup_clkdm", | ||
2248 | .recalc = &followparent_recalc, | 2340 | .recalc = &followparent_recalc, |
2249 | }; | 2341 | }; |
2250 | 2342 | ||
@@ -2254,6 +2346,7 @@ static struct clk gpio1_ick = { | |||
2254 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), | 2346 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), |
2255 | .enable_bit = OMAP3430_EN_GPIO1_SHIFT, | 2347 | .enable_bit = OMAP3430_EN_GPIO1_SHIFT, |
2256 | .flags = CLOCK_IN_OMAP343X, | 2348 | .flags = CLOCK_IN_OMAP343X, |
2349 | .clkdm_name = "wkup_clkdm", | ||
2257 | .recalc = &followparent_recalc, | 2350 | .recalc = &followparent_recalc, |
2258 | }; | 2351 | }; |
2259 | 2352 | ||
@@ -2263,15 +2356,18 @@ static struct clk omap_32ksync_ick = { | |||
2263 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), | 2356 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), |
2264 | .enable_bit = OMAP3430_EN_32KSYNC_SHIFT, | 2357 | .enable_bit = OMAP3430_EN_32KSYNC_SHIFT, |
2265 | .flags = CLOCK_IN_OMAP343X, | 2358 | .flags = CLOCK_IN_OMAP343X, |
2359 | .clkdm_name = "wkup_clkdm", | ||
2266 | .recalc = &followparent_recalc, | 2360 | .recalc = &followparent_recalc, |
2267 | }; | 2361 | }; |
2268 | 2362 | ||
2363 | /* XXX This clock no longer exists in 3430 TRM rev F */ | ||
2269 | static struct clk gpt12_ick = { | 2364 | static struct clk gpt12_ick = { |
2270 | .name = "gpt12_ick", | 2365 | .name = "gpt12_ick", |
2271 | .parent = &wkup_l4_ick, | 2366 | .parent = &wkup_l4_ick, |
2272 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), | 2367 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), |
2273 | .enable_bit = OMAP3430_EN_GPT12_SHIFT, | 2368 | .enable_bit = OMAP3430_EN_GPT12_SHIFT, |
2274 | .flags = CLOCK_IN_OMAP343X, | 2369 | .flags = CLOCK_IN_OMAP343X, |
2370 | .clkdm_name = "wkup_clkdm", | ||
2275 | .recalc = &followparent_recalc, | 2371 | .recalc = &followparent_recalc, |
2276 | }; | 2372 | }; |
2277 | 2373 | ||
@@ -2281,6 +2377,7 @@ static struct clk gpt1_ick = { | |||
2281 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), | 2377 | .enable_reg = OMAP_CM_REGADDR(WKUP_MOD, CM_ICLKEN), |
2282 | .enable_bit = OMAP3430_EN_GPT1_SHIFT, | 2378 | .enable_bit = OMAP3430_EN_GPT1_SHIFT, |
2283 | .flags = CLOCK_IN_OMAP343X, | 2379 | .flags = CLOCK_IN_OMAP343X, |
2380 | .clkdm_name = "wkup_clkdm", | ||
2284 | .recalc = &followparent_recalc, | 2381 | .recalc = &followparent_recalc, |
2285 | }; | 2382 | }; |
2286 | 2383 | ||
@@ -2291,16 +2388,20 @@ static struct clk gpt1_ick = { | |||
2291 | static struct clk per_96m_fck = { | 2388 | static struct clk per_96m_fck = { |
2292 | .name = "per_96m_fck", | 2389 | .name = "per_96m_fck", |
2293 | .parent = &omap_96m_alwon_fck, | 2390 | .parent = &omap_96m_alwon_fck, |
2391 | .init = &omap2_init_clk_clkdm, | ||
2294 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 2392 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
2295 | PARENT_CONTROLS_CLOCK, | 2393 | PARENT_CONTROLS_CLOCK, |
2394 | .clkdm_name = "per_clkdm", | ||
2296 | .recalc = &followparent_recalc, | 2395 | .recalc = &followparent_recalc, |
2297 | }; | 2396 | }; |
2298 | 2397 | ||
2299 | static struct clk per_48m_fck = { | 2398 | static struct clk per_48m_fck = { |
2300 | .name = "per_48m_fck", | 2399 | .name = "per_48m_fck", |
2301 | .parent = &omap_48m_fck, | 2400 | .parent = &omap_48m_fck, |
2401 | .init = &omap2_init_clk_clkdm, | ||
2302 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 2402 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
2303 | PARENT_CONTROLS_CLOCK, | 2403 | PARENT_CONTROLS_CLOCK, |
2404 | .clkdm_name = "per_clkdm", | ||
2304 | .recalc = &followparent_recalc, | 2405 | .recalc = &followparent_recalc, |
2305 | }; | 2406 | }; |
2306 | 2407 | ||
@@ -2310,6 +2411,7 @@ static struct clk uart3_fck = { | |||
2310 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), | 2411 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), |
2311 | .enable_bit = OMAP3430_EN_UART3_SHIFT, | 2412 | .enable_bit = OMAP3430_EN_UART3_SHIFT, |
2312 | .flags = CLOCK_IN_OMAP343X, | 2413 | .flags = CLOCK_IN_OMAP343X, |
2414 | .clkdm_name = "per_clkdm", | ||
2313 | .recalc = &followparent_recalc, | 2415 | .recalc = &followparent_recalc, |
2314 | }; | 2416 | }; |
2315 | 2417 | ||
@@ -2322,6 +2424,7 @@ static struct clk gpt2_fck = { | |||
2322 | .clksel_mask = OMAP3430_CLKSEL_GPT2_MASK, | 2424 | .clksel_mask = OMAP3430_CLKSEL_GPT2_MASK, |
2323 | .clksel = omap343x_gpt_clksel, | 2425 | .clksel = omap343x_gpt_clksel, |
2324 | .flags = CLOCK_IN_OMAP343X, | 2426 | .flags = CLOCK_IN_OMAP343X, |
2427 | .clkdm_name = "per_clkdm", | ||
2325 | .recalc = &omap2_clksel_recalc, | 2428 | .recalc = &omap2_clksel_recalc, |
2326 | }; | 2429 | }; |
2327 | 2430 | ||
@@ -2334,6 +2437,7 @@ static struct clk gpt3_fck = { | |||
2334 | .clksel_mask = OMAP3430_CLKSEL_GPT3_MASK, | 2437 | .clksel_mask = OMAP3430_CLKSEL_GPT3_MASK, |
2335 | .clksel = omap343x_gpt_clksel, | 2438 | .clksel = omap343x_gpt_clksel, |
2336 | .flags = CLOCK_IN_OMAP343X, | 2439 | .flags = CLOCK_IN_OMAP343X, |
2440 | .clkdm_name = "per_clkdm", | ||
2337 | .recalc = &omap2_clksel_recalc, | 2441 | .recalc = &omap2_clksel_recalc, |
2338 | }; | 2442 | }; |
2339 | 2443 | ||
@@ -2346,6 +2450,7 @@ static struct clk gpt4_fck = { | |||
2346 | .clksel_mask = OMAP3430_CLKSEL_GPT4_MASK, | 2450 | .clksel_mask = OMAP3430_CLKSEL_GPT4_MASK, |
2347 | .clksel = omap343x_gpt_clksel, | 2451 | .clksel = omap343x_gpt_clksel, |
2348 | .flags = CLOCK_IN_OMAP343X, | 2452 | .flags = CLOCK_IN_OMAP343X, |
2453 | .clkdm_name = "per_clkdm", | ||
2349 | .recalc = &omap2_clksel_recalc, | 2454 | .recalc = &omap2_clksel_recalc, |
2350 | }; | 2455 | }; |
2351 | 2456 | ||
@@ -2358,6 +2463,7 @@ static struct clk gpt5_fck = { | |||
2358 | .clksel_mask = OMAP3430_CLKSEL_GPT5_MASK, | 2463 | .clksel_mask = OMAP3430_CLKSEL_GPT5_MASK, |
2359 | .clksel = omap343x_gpt_clksel, | 2464 | .clksel = omap343x_gpt_clksel, |
2360 | .flags = CLOCK_IN_OMAP343X, | 2465 | .flags = CLOCK_IN_OMAP343X, |
2466 | .clkdm_name = "per_clkdm", | ||
2361 | .recalc = &omap2_clksel_recalc, | 2467 | .recalc = &omap2_clksel_recalc, |
2362 | }; | 2468 | }; |
2363 | 2469 | ||
@@ -2370,6 +2476,7 @@ static struct clk gpt6_fck = { | |||
2370 | .clksel_mask = OMAP3430_CLKSEL_GPT6_MASK, | 2476 | .clksel_mask = OMAP3430_CLKSEL_GPT6_MASK, |
2371 | .clksel = omap343x_gpt_clksel, | 2477 | .clksel = omap343x_gpt_clksel, |
2372 | .flags = CLOCK_IN_OMAP343X, | 2478 | .flags = CLOCK_IN_OMAP343X, |
2479 | .clkdm_name = "per_clkdm", | ||
2373 | .recalc = &omap2_clksel_recalc, | 2480 | .recalc = &omap2_clksel_recalc, |
2374 | }; | 2481 | }; |
2375 | 2482 | ||
@@ -2382,6 +2489,7 @@ static struct clk gpt7_fck = { | |||
2382 | .clksel_mask = OMAP3430_CLKSEL_GPT7_MASK, | 2489 | .clksel_mask = OMAP3430_CLKSEL_GPT7_MASK, |
2383 | .clksel = omap343x_gpt_clksel, | 2490 | .clksel = omap343x_gpt_clksel, |
2384 | .flags = CLOCK_IN_OMAP343X, | 2491 | .flags = CLOCK_IN_OMAP343X, |
2492 | .clkdm_name = "per_clkdm", | ||
2385 | .recalc = &omap2_clksel_recalc, | 2493 | .recalc = &omap2_clksel_recalc, |
2386 | }; | 2494 | }; |
2387 | 2495 | ||
@@ -2394,6 +2502,7 @@ static struct clk gpt8_fck = { | |||
2394 | .clksel_mask = OMAP3430_CLKSEL_GPT8_MASK, | 2502 | .clksel_mask = OMAP3430_CLKSEL_GPT8_MASK, |
2395 | .clksel = omap343x_gpt_clksel, | 2503 | .clksel = omap343x_gpt_clksel, |
2396 | .flags = CLOCK_IN_OMAP343X, | 2504 | .flags = CLOCK_IN_OMAP343X, |
2505 | .clkdm_name = "per_clkdm", | ||
2397 | .recalc = &omap2_clksel_recalc, | 2506 | .recalc = &omap2_clksel_recalc, |
2398 | }; | 2507 | }; |
2399 | 2508 | ||
@@ -2406,12 +2515,14 @@ static struct clk gpt9_fck = { | |||
2406 | .clksel_mask = OMAP3430_CLKSEL_GPT9_MASK, | 2515 | .clksel_mask = OMAP3430_CLKSEL_GPT9_MASK, |
2407 | .clksel = omap343x_gpt_clksel, | 2516 | .clksel = omap343x_gpt_clksel, |
2408 | .flags = CLOCK_IN_OMAP343X, | 2517 | .flags = CLOCK_IN_OMAP343X, |
2518 | .clkdm_name = "per_clkdm", | ||
2409 | .recalc = &omap2_clksel_recalc, | 2519 | .recalc = &omap2_clksel_recalc, |
2410 | }; | 2520 | }; |
2411 | 2521 | ||
2412 | static struct clk per_32k_alwon_fck = { | 2522 | static struct clk per_32k_alwon_fck = { |
2413 | .name = "per_32k_alwon_fck", | 2523 | .name = "per_32k_alwon_fck", |
2414 | .parent = &omap_32k_fck, | 2524 | .parent = &omap_32k_fck, |
2525 | .clkdm_name = "per_clkdm", | ||
2415 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, | 2526 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, |
2416 | .recalc = &followparent_recalc, | 2527 | .recalc = &followparent_recalc, |
2417 | }; | 2528 | }; |
@@ -2422,6 +2533,7 @@ static struct clk gpio6_fck = { | |||
2422 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), | 2533 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), |
2423 | .enable_bit = OMAP3430_EN_GPIO6_SHIFT, | 2534 | .enable_bit = OMAP3430_EN_GPIO6_SHIFT, |
2424 | .flags = CLOCK_IN_OMAP343X, | 2535 | .flags = CLOCK_IN_OMAP343X, |
2536 | .clkdm_name = "per_clkdm", | ||
2425 | .recalc = &followparent_recalc, | 2537 | .recalc = &followparent_recalc, |
2426 | }; | 2538 | }; |
2427 | 2539 | ||
@@ -2431,6 +2543,7 @@ static struct clk gpio5_fck = { | |||
2431 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), | 2543 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), |
2432 | .enable_bit = OMAP3430_EN_GPIO5_SHIFT, | 2544 | .enable_bit = OMAP3430_EN_GPIO5_SHIFT, |
2433 | .flags = CLOCK_IN_OMAP343X, | 2545 | .flags = CLOCK_IN_OMAP343X, |
2546 | .clkdm_name = "per_clkdm", | ||
2434 | .recalc = &followparent_recalc, | 2547 | .recalc = &followparent_recalc, |
2435 | }; | 2548 | }; |
2436 | 2549 | ||
@@ -2440,6 +2553,7 @@ static struct clk gpio4_fck = { | |||
2440 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), | 2553 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), |
2441 | .enable_bit = OMAP3430_EN_GPIO4_SHIFT, | 2554 | .enable_bit = OMAP3430_EN_GPIO4_SHIFT, |
2442 | .flags = CLOCK_IN_OMAP343X, | 2555 | .flags = CLOCK_IN_OMAP343X, |
2556 | .clkdm_name = "per_clkdm", | ||
2443 | .recalc = &followparent_recalc, | 2557 | .recalc = &followparent_recalc, |
2444 | }; | 2558 | }; |
2445 | 2559 | ||
@@ -2449,6 +2563,7 @@ static struct clk gpio3_fck = { | |||
2449 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), | 2563 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), |
2450 | .enable_bit = OMAP3430_EN_GPIO3_SHIFT, | 2564 | .enable_bit = OMAP3430_EN_GPIO3_SHIFT, |
2451 | .flags = CLOCK_IN_OMAP343X, | 2565 | .flags = CLOCK_IN_OMAP343X, |
2566 | .clkdm_name = "per_clkdm", | ||
2452 | .recalc = &followparent_recalc, | 2567 | .recalc = &followparent_recalc, |
2453 | }; | 2568 | }; |
2454 | 2569 | ||
@@ -2458,6 +2573,7 @@ static struct clk gpio2_fck = { | |||
2458 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), | 2573 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), |
2459 | .enable_bit = OMAP3430_EN_GPIO2_SHIFT, | 2574 | .enable_bit = OMAP3430_EN_GPIO2_SHIFT, |
2460 | .flags = CLOCK_IN_OMAP343X, | 2575 | .flags = CLOCK_IN_OMAP343X, |
2576 | .clkdm_name = "per_clkdm", | ||
2461 | .recalc = &followparent_recalc, | 2577 | .recalc = &followparent_recalc, |
2462 | }; | 2578 | }; |
2463 | 2579 | ||
@@ -2467,6 +2583,7 @@ static struct clk wdt3_fck = { | |||
2467 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), | 2583 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_FCLKEN), |
2468 | .enable_bit = OMAP3430_EN_WDT3_SHIFT, | 2584 | .enable_bit = OMAP3430_EN_WDT3_SHIFT, |
2469 | .flags = CLOCK_IN_OMAP343X, | 2585 | .flags = CLOCK_IN_OMAP343X, |
2586 | .clkdm_name = "per_clkdm", | ||
2470 | .recalc = &followparent_recalc, | 2587 | .recalc = &followparent_recalc, |
2471 | }; | 2588 | }; |
2472 | 2589 | ||
@@ -2475,6 +2592,7 @@ static struct clk per_l4_ick = { | |||
2475 | .parent = &l4_ick, | 2592 | .parent = &l4_ick, |
2476 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | | 2593 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | |
2477 | PARENT_CONTROLS_CLOCK, | 2594 | PARENT_CONTROLS_CLOCK, |
2595 | .clkdm_name = "per_clkdm", | ||
2478 | .recalc = &followparent_recalc, | 2596 | .recalc = &followparent_recalc, |
2479 | }; | 2597 | }; |
2480 | 2598 | ||
@@ -2484,6 +2602,7 @@ static struct clk gpio6_ick = { | |||
2484 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2602 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2485 | .enable_bit = OMAP3430_EN_GPIO6_SHIFT, | 2603 | .enable_bit = OMAP3430_EN_GPIO6_SHIFT, |
2486 | .flags = CLOCK_IN_OMAP343X, | 2604 | .flags = CLOCK_IN_OMAP343X, |
2605 | .clkdm_name = "per_clkdm", | ||
2487 | .recalc = &followparent_recalc, | 2606 | .recalc = &followparent_recalc, |
2488 | }; | 2607 | }; |
2489 | 2608 | ||
@@ -2493,6 +2612,7 @@ static struct clk gpio5_ick = { | |||
2493 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2612 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2494 | .enable_bit = OMAP3430_EN_GPIO5_SHIFT, | 2613 | .enable_bit = OMAP3430_EN_GPIO5_SHIFT, |
2495 | .flags = CLOCK_IN_OMAP343X, | 2614 | .flags = CLOCK_IN_OMAP343X, |
2615 | .clkdm_name = "per_clkdm", | ||
2496 | .recalc = &followparent_recalc, | 2616 | .recalc = &followparent_recalc, |
2497 | }; | 2617 | }; |
2498 | 2618 | ||
@@ -2502,6 +2622,7 @@ static struct clk gpio4_ick = { | |||
2502 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2622 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2503 | .enable_bit = OMAP3430_EN_GPIO4_SHIFT, | 2623 | .enable_bit = OMAP3430_EN_GPIO4_SHIFT, |
2504 | .flags = CLOCK_IN_OMAP343X, | 2624 | .flags = CLOCK_IN_OMAP343X, |
2625 | .clkdm_name = "per_clkdm", | ||
2505 | .recalc = &followparent_recalc, | 2626 | .recalc = &followparent_recalc, |
2506 | }; | 2627 | }; |
2507 | 2628 | ||
@@ -2511,6 +2632,7 @@ static struct clk gpio3_ick = { | |||
2511 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2632 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2512 | .enable_bit = OMAP3430_EN_GPIO3_SHIFT, | 2633 | .enable_bit = OMAP3430_EN_GPIO3_SHIFT, |
2513 | .flags = CLOCK_IN_OMAP343X, | 2634 | .flags = CLOCK_IN_OMAP343X, |
2635 | .clkdm_name = "per_clkdm", | ||
2514 | .recalc = &followparent_recalc, | 2636 | .recalc = &followparent_recalc, |
2515 | }; | 2637 | }; |
2516 | 2638 | ||
@@ -2520,6 +2642,7 @@ static struct clk gpio2_ick = { | |||
2520 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2642 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2521 | .enable_bit = OMAP3430_EN_GPIO2_SHIFT, | 2643 | .enable_bit = OMAP3430_EN_GPIO2_SHIFT, |
2522 | .flags = CLOCK_IN_OMAP343X, | 2644 | .flags = CLOCK_IN_OMAP343X, |
2645 | .clkdm_name = "per_clkdm", | ||
2523 | .recalc = &followparent_recalc, | 2646 | .recalc = &followparent_recalc, |
2524 | }; | 2647 | }; |
2525 | 2648 | ||
@@ -2529,6 +2652,7 @@ static struct clk wdt3_ick = { | |||
2529 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2652 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2530 | .enable_bit = OMAP3430_EN_WDT3_SHIFT, | 2653 | .enable_bit = OMAP3430_EN_WDT3_SHIFT, |
2531 | .flags = CLOCK_IN_OMAP343X, | 2654 | .flags = CLOCK_IN_OMAP343X, |
2655 | .clkdm_name = "per_clkdm", | ||
2532 | .recalc = &followparent_recalc, | 2656 | .recalc = &followparent_recalc, |
2533 | }; | 2657 | }; |
2534 | 2658 | ||
@@ -2538,6 +2662,7 @@ static struct clk uart3_ick = { | |||
2538 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2662 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2539 | .enable_bit = OMAP3430_EN_UART3_SHIFT, | 2663 | .enable_bit = OMAP3430_EN_UART3_SHIFT, |
2540 | .flags = CLOCK_IN_OMAP343X, | 2664 | .flags = CLOCK_IN_OMAP343X, |
2665 | .clkdm_name = "per_clkdm", | ||
2541 | .recalc = &followparent_recalc, | 2666 | .recalc = &followparent_recalc, |
2542 | }; | 2667 | }; |
2543 | 2668 | ||
@@ -2547,6 +2672,7 @@ static struct clk gpt9_ick = { | |||
2547 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2672 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2548 | .enable_bit = OMAP3430_EN_GPT9_SHIFT, | 2673 | .enable_bit = OMAP3430_EN_GPT9_SHIFT, |
2549 | .flags = CLOCK_IN_OMAP343X, | 2674 | .flags = CLOCK_IN_OMAP343X, |
2675 | .clkdm_name = "per_clkdm", | ||
2550 | .recalc = &followparent_recalc, | 2676 | .recalc = &followparent_recalc, |
2551 | }; | 2677 | }; |
2552 | 2678 | ||
@@ -2556,6 +2682,7 @@ static struct clk gpt8_ick = { | |||
2556 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2682 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2557 | .enable_bit = OMAP3430_EN_GPT8_SHIFT, | 2683 | .enable_bit = OMAP3430_EN_GPT8_SHIFT, |
2558 | .flags = CLOCK_IN_OMAP343X, | 2684 | .flags = CLOCK_IN_OMAP343X, |
2685 | .clkdm_name = "per_clkdm", | ||
2559 | .recalc = &followparent_recalc, | 2686 | .recalc = &followparent_recalc, |
2560 | }; | 2687 | }; |
2561 | 2688 | ||
@@ -2565,6 +2692,7 @@ static struct clk gpt7_ick = { | |||
2565 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2692 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2566 | .enable_bit = OMAP3430_EN_GPT7_SHIFT, | 2693 | .enable_bit = OMAP3430_EN_GPT7_SHIFT, |
2567 | .flags = CLOCK_IN_OMAP343X, | 2694 | .flags = CLOCK_IN_OMAP343X, |
2695 | .clkdm_name = "per_clkdm", | ||
2568 | .recalc = &followparent_recalc, | 2696 | .recalc = &followparent_recalc, |
2569 | }; | 2697 | }; |
2570 | 2698 | ||
@@ -2574,6 +2702,7 @@ static struct clk gpt6_ick = { | |||
2574 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2702 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2575 | .enable_bit = OMAP3430_EN_GPT6_SHIFT, | 2703 | .enable_bit = OMAP3430_EN_GPT6_SHIFT, |
2576 | .flags = CLOCK_IN_OMAP343X, | 2704 | .flags = CLOCK_IN_OMAP343X, |
2705 | .clkdm_name = "per_clkdm", | ||
2577 | .recalc = &followparent_recalc, | 2706 | .recalc = &followparent_recalc, |
2578 | }; | 2707 | }; |
2579 | 2708 | ||
@@ -2583,6 +2712,7 @@ static struct clk gpt5_ick = { | |||
2583 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2712 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2584 | .enable_bit = OMAP3430_EN_GPT5_SHIFT, | 2713 | .enable_bit = OMAP3430_EN_GPT5_SHIFT, |
2585 | .flags = CLOCK_IN_OMAP343X, | 2714 | .flags = CLOCK_IN_OMAP343X, |
2715 | .clkdm_name = "per_clkdm", | ||
2586 | .recalc = &followparent_recalc, | 2716 | .recalc = &followparent_recalc, |
2587 | }; | 2717 | }; |
2588 | 2718 | ||
@@ -2592,6 +2722,7 @@ static struct clk gpt4_ick = { | |||
2592 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2722 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2593 | .enable_bit = OMAP3430_EN_GPT4_SHIFT, | 2723 | .enable_bit = OMAP3430_EN_GPT4_SHIFT, |
2594 | .flags = CLOCK_IN_OMAP343X, | 2724 | .flags = CLOCK_IN_OMAP343X, |
2725 | .clkdm_name = "per_clkdm", | ||
2595 | .recalc = &followparent_recalc, | 2726 | .recalc = &followparent_recalc, |
2596 | }; | 2727 | }; |
2597 | 2728 | ||
@@ -2601,6 +2732,7 @@ static struct clk gpt3_ick = { | |||
2601 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2732 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2602 | .enable_bit = OMAP3430_EN_GPT3_SHIFT, | 2733 | .enable_bit = OMAP3430_EN_GPT3_SHIFT, |
2603 | .flags = CLOCK_IN_OMAP343X, | 2734 | .flags = CLOCK_IN_OMAP343X, |
2735 | .clkdm_name = "per_clkdm", | ||
2604 | .recalc = &followparent_recalc, | 2736 | .recalc = &followparent_recalc, |
2605 | }; | 2737 | }; |
2606 | 2738 | ||
@@ -2610,6 +2742,7 @@ static struct clk gpt2_ick = { | |||
2610 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2742 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2611 | .enable_bit = OMAP3430_EN_GPT2_SHIFT, | 2743 | .enable_bit = OMAP3430_EN_GPT2_SHIFT, |
2612 | .flags = CLOCK_IN_OMAP343X, | 2744 | .flags = CLOCK_IN_OMAP343X, |
2745 | .clkdm_name = "per_clkdm", | ||
2613 | .recalc = &followparent_recalc, | 2746 | .recalc = &followparent_recalc, |
2614 | }; | 2747 | }; |
2615 | 2748 | ||
@@ -2620,6 +2753,7 @@ static struct clk mcbsp2_ick = { | |||
2620 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2753 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2621 | .enable_bit = OMAP3430_EN_MCBSP2_SHIFT, | 2754 | .enable_bit = OMAP3430_EN_MCBSP2_SHIFT, |
2622 | .flags = CLOCK_IN_OMAP343X, | 2755 | .flags = CLOCK_IN_OMAP343X, |
2756 | .clkdm_name = "per_clkdm", | ||
2623 | .recalc = &followparent_recalc, | 2757 | .recalc = &followparent_recalc, |
2624 | }; | 2758 | }; |
2625 | 2759 | ||
@@ -2630,6 +2764,7 @@ static struct clk mcbsp3_ick = { | |||
2630 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2764 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2631 | .enable_bit = OMAP3430_EN_MCBSP3_SHIFT, | 2765 | .enable_bit = OMAP3430_EN_MCBSP3_SHIFT, |
2632 | .flags = CLOCK_IN_OMAP343X, | 2766 | .flags = CLOCK_IN_OMAP343X, |
2767 | .clkdm_name = "per_clkdm", | ||
2633 | .recalc = &followparent_recalc, | 2768 | .recalc = &followparent_recalc, |
2634 | }; | 2769 | }; |
2635 | 2770 | ||
@@ -2640,12 +2775,13 @@ static struct clk mcbsp4_ick = { | |||
2640 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), | 2775 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_PER_MOD, CM_ICLKEN), |
2641 | .enable_bit = OMAP3430_EN_MCBSP4_SHIFT, | 2776 | .enable_bit = OMAP3430_EN_MCBSP4_SHIFT, |
2642 | .flags = CLOCK_IN_OMAP343X, | 2777 | .flags = CLOCK_IN_OMAP343X, |
2778 | .clkdm_name = "per_clkdm", | ||
2643 | .recalc = &followparent_recalc, | 2779 | .recalc = &followparent_recalc, |
2644 | }; | 2780 | }; |
2645 | 2781 | ||
2646 | static const struct clksel mcbsp_234_clksel[] = { | 2782 | static const struct clksel mcbsp_234_clksel[] = { |
2647 | { .parent = &per_96m_fck, .rates = common_mcbsp_96m_rates }, | 2783 | { .parent = &per_96m_fck, .rates = common_mcbsp_96m_rates }, |
2648 | { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, | 2784 | { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, |
2649 | { .parent = NULL } | 2785 | { .parent = NULL } |
2650 | }; | 2786 | }; |
2651 | 2787 | ||
@@ -2659,6 +2795,7 @@ static struct clk mcbsp2_fck = { | |||
2659 | .clksel_mask = OMAP2_MCBSP2_CLKS_MASK, | 2795 | .clksel_mask = OMAP2_MCBSP2_CLKS_MASK, |
2660 | .clksel = mcbsp_234_clksel, | 2796 | .clksel = mcbsp_234_clksel, |
2661 | .flags = CLOCK_IN_OMAP343X, | 2797 | .flags = CLOCK_IN_OMAP343X, |
2798 | .clkdm_name = "per_clkdm", | ||
2662 | .recalc = &omap2_clksel_recalc, | 2799 | .recalc = &omap2_clksel_recalc, |
2663 | }; | 2800 | }; |
2664 | 2801 | ||
@@ -2672,6 +2809,7 @@ static struct clk mcbsp3_fck = { | |||
2672 | .clksel_mask = OMAP2_MCBSP3_CLKS_MASK, | 2809 | .clksel_mask = OMAP2_MCBSP3_CLKS_MASK, |
2673 | .clksel = mcbsp_234_clksel, | 2810 | .clksel = mcbsp_234_clksel, |
2674 | .flags = CLOCK_IN_OMAP343X, | 2811 | .flags = CLOCK_IN_OMAP343X, |
2812 | .clkdm_name = "per_clkdm", | ||
2675 | .recalc = &omap2_clksel_recalc, | 2813 | .recalc = &omap2_clksel_recalc, |
2676 | }; | 2814 | }; |
2677 | 2815 | ||
@@ -2685,6 +2823,7 @@ static struct clk mcbsp4_fck = { | |||
2685 | .clksel_mask = OMAP2_MCBSP4_CLKS_MASK, | 2823 | .clksel_mask = OMAP2_MCBSP4_CLKS_MASK, |
2686 | .clksel = mcbsp_234_clksel, | 2824 | .clksel = mcbsp_234_clksel, |
2687 | .flags = CLOCK_IN_OMAP343X, | 2825 | .flags = CLOCK_IN_OMAP343X, |
2826 | .clkdm_name = "per_clkdm", | ||
2688 | .recalc = &omap2_clksel_recalc, | 2827 | .recalc = &omap2_clksel_recalc, |
2689 | }; | 2828 | }; |
2690 | 2829 | ||
@@ -2732,6 +2871,7 @@ static struct clk emu_src_ck = { | |||
2732 | .clksel_mask = OMAP3430_MUX_CTRL_MASK, | 2871 | .clksel_mask = OMAP3430_MUX_CTRL_MASK, |
2733 | .clksel = emu_src_clksel, | 2872 | .clksel = emu_src_clksel, |
2734 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, | 2873 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, |
2874 | .clkdm_name = "emu_clkdm", | ||
2735 | .recalc = &omap2_clksel_recalc, | 2875 | .recalc = &omap2_clksel_recalc, |
2736 | }; | 2876 | }; |
2737 | 2877 | ||
@@ -2755,6 +2895,7 @@ static struct clk pclk_fck = { | |||
2755 | .clksel_mask = OMAP3430_CLKSEL_PCLK_MASK, | 2895 | .clksel_mask = OMAP3430_CLKSEL_PCLK_MASK, |
2756 | .clksel = pclk_emu_clksel, | 2896 | .clksel = pclk_emu_clksel, |
2757 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, | 2897 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, |
2898 | .clkdm_name = "emu_clkdm", | ||
2758 | .recalc = &omap2_clksel_recalc, | 2899 | .recalc = &omap2_clksel_recalc, |
2759 | }; | 2900 | }; |
2760 | 2901 | ||
@@ -2777,6 +2918,7 @@ static struct clk pclkx2_fck = { | |||
2777 | .clksel_mask = OMAP3430_CLKSEL_PCLKX2_MASK, | 2918 | .clksel_mask = OMAP3430_CLKSEL_PCLKX2_MASK, |
2778 | .clksel = pclkx2_emu_clksel, | 2919 | .clksel = pclkx2_emu_clksel, |
2779 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, | 2920 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, |
2921 | .clkdm_name = "emu_clkdm", | ||
2780 | .recalc = &omap2_clksel_recalc, | 2922 | .recalc = &omap2_clksel_recalc, |
2781 | }; | 2923 | }; |
2782 | 2924 | ||
@@ -2792,6 +2934,7 @@ static struct clk atclk_fck = { | |||
2792 | .clksel_mask = OMAP3430_CLKSEL_ATCLK_MASK, | 2934 | .clksel_mask = OMAP3430_CLKSEL_ATCLK_MASK, |
2793 | .clksel = atclk_emu_clksel, | 2935 | .clksel = atclk_emu_clksel, |
2794 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, | 2936 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, |
2937 | .clkdm_name = "emu_clkdm", | ||
2795 | .recalc = &omap2_clksel_recalc, | 2938 | .recalc = &omap2_clksel_recalc, |
2796 | }; | 2939 | }; |
2797 | 2940 | ||
@@ -2802,6 +2945,7 @@ static struct clk traceclk_src_fck = { | |||
2802 | .clksel_mask = OMAP3430_TRACE_MUX_CTRL_MASK, | 2945 | .clksel_mask = OMAP3430_TRACE_MUX_CTRL_MASK, |
2803 | .clksel = emu_src_clksel, | 2946 | .clksel = emu_src_clksel, |
2804 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, | 2947 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, |
2948 | .clkdm_name = "emu_clkdm", | ||
2805 | .recalc = &omap2_clksel_recalc, | 2949 | .recalc = &omap2_clksel_recalc, |
2806 | }; | 2950 | }; |
2807 | 2951 | ||
@@ -2824,6 +2968,7 @@ static struct clk traceclk_fck = { | |||
2824 | .clksel_mask = OMAP3430_CLKSEL_TRACECLK_MASK, | 2968 | .clksel_mask = OMAP3430_CLKSEL_TRACECLK_MASK, |
2825 | .clksel = traceclk_clksel, | 2969 | .clksel = traceclk_clksel, |
2826 | .flags = CLOCK_IN_OMAP343X | ALWAYS_ENABLED, | 2970 | .flags = CLOCK_IN_OMAP343X | ALWAYS_ENABLED, |
2971 | .clkdm_name = "emu_clkdm", | ||
2827 | .recalc = &omap2_clksel_recalc, | 2972 | .recalc = &omap2_clksel_recalc, |
2828 | }; | 2973 | }; |
2829 | 2974 | ||
@@ -2853,11 +2998,13 @@ static struct clk sr_l4_ick = { | |||
2853 | .name = "sr_l4_ick", | 2998 | .name = "sr_l4_ick", |
2854 | .parent = &l4_ick, | 2999 | .parent = &l4_ick, |
2855 | .flags = CLOCK_IN_OMAP343X, | 3000 | .flags = CLOCK_IN_OMAP343X, |
3001 | .clkdm_name = "core_l4_clkdm", | ||
2856 | .recalc = &followparent_recalc, | 3002 | .recalc = &followparent_recalc, |
2857 | }; | 3003 | }; |
2858 | 3004 | ||
2859 | /* SECURE_32K_FCK clocks */ | 3005 | /* SECURE_32K_FCK clocks */ |
2860 | 3006 | ||
3007 | /* XXX This clock no longer exists in 3430 TRM rev F */ | ||
2861 | static struct clk gpt12_fck = { | 3008 | static struct clk gpt12_fck = { |
2862 | .name = "gpt12_fck", | 3009 | .name = "gpt12_fck", |
2863 | .parent = &secure_32k_fck, | 3010 | .parent = &secure_32k_fck, |
@@ -2933,6 +3080,7 @@ static struct clk *onchip_34xx_clks[] __initdata = { | |||
2933 | &l3_ick, | 3080 | &l3_ick, |
2934 | &l4_ick, | 3081 | &l4_ick, |
2935 | &rm_ick, | 3082 | &rm_ick, |
3083 | &gfx_l3_ck, | ||
2936 | &gfx_l3_fck, | 3084 | &gfx_l3_fck, |
2937 | &gfx_l3_ick, | 3085 | &gfx_l3_ick, |
2938 | &gfx_cg1_ck, | 3086 | &gfx_cg1_ck, |
@@ -3014,12 +3162,10 @@ static struct clk *onchip_34xx_clks[] __initdata = { | |||
3014 | &dss2_alwon_fck, | 3162 | &dss2_alwon_fck, |
3015 | &dss_ick, | 3163 | &dss_ick, |
3016 | &cam_mclk, | 3164 | &cam_mclk, |
3017 | &cam_l3_ick, | 3165 | &cam_ick, |
3018 | &cam_l4_ick, | ||
3019 | &usbhost_120m_fck, | 3166 | &usbhost_120m_fck, |
3020 | &usbhost_48m_fck, | 3167 | &usbhost_48m_fck, |
3021 | &usbhost_l3_ick, | 3168 | &usbhost_ick, |
3022 | &usbhost_l4_ick, | ||
3023 | &usbhost_sar_fck, | 3169 | &usbhost_sar_fck, |
3024 | &usim_fck, | 3170 | &usim_fck, |
3025 | &gpt1_fck, | 3171 | &gpt1_fck, |