aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-06-18 18:18:43 -0400
committerPaul Walmsley <paul@pwsan.com>2012-06-18 18:18:43 -0400
commit7039154bb218e06cc876a008cdf57f3fbc00c25e (patch)
treefe1041f537571316b82cb194feb5f487c04974a4 /arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
parentdb382a869dfbc6f6ea298c9d8607404016cacbc0 (diff)
ARM: OMAP3: Move McBSP fck clock alias to hwmod data
Remove the existing alias for pad_fck, prcm_fck from the clock data and add them as opt_clks to the hwmod data. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_3xxx_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_3xxx_data.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index b26d3c9bca16..7ac051145219 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -1074,6 +1074,17 @@ static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class = {
1074 .rev = MCBSP_CONFIG_TYPE3, 1074 .rev = MCBSP_CONFIG_TYPE3,
1075}; 1075};
1076 1076
1077/* McBSP functional clock mapping */
1078static struct omap_hwmod_opt_clk mcbsp15_opt_clks[] = {
1079 { .role = "pad_fck", .clk = "mcbsp_clks" },
1080 { .role = "prcm_fck", .clk = "core_96m_fck" },
1081};
1082
1083static struct omap_hwmod_opt_clk mcbsp234_opt_clks[] = {
1084 { .role = "pad_fck", .clk = "mcbsp_clks" },
1085 { .role = "prcm_fck", .clk = "per_96m_fck" },
1086};
1087
1077/* mcbsp1 */ 1088/* mcbsp1 */
1078static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = { 1089static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = {
1079 { .name = "common", .irq = 16 }, 1090 { .name = "common", .irq = 16 },
@@ -1097,6 +1108,8 @@ static struct omap_hwmod omap3xxx_mcbsp1_hwmod = {
1097 .idlest_idle_bit = OMAP3430_ST_MCBSP1_SHIFT, 1108 .idlest_idle_bit = OMAP3430_ST_MCBSP1_SHIFT,
1098 }, 1109 },
1099 }, 1110 },
1111 .opt_clks = mcbsp15_opt_clks,
1112 .opt_clks_cnt = ARRAY_SIZE(mcbsp15_opt_clks),
1100}; 1113};
1101 1114
1102/* mcbsp2 */ 1115/* mcbsp2 */
@@ -1126,6 +1139,8 @@ static struct omap_hwmod omap3xxx_mcbsp2_hwmod = {
1126 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT, 1139 .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
1127 }, 1140 },
1128 }, 1141 },
1142 .opt_clks = mcbsp234_opt_clks,
1143 .opt_clks_cnt = ARRAY_SIZE(mcbsp234_opt_clks),
1129 .dev_attr = &omap34xx_mcbsp2_dev_attr, 1144 .dev_attr = &omap34xx_mcbsp2_dev_attr,
1130}; 1145};
1131 1146
@@ -1156,6 +1171,8 @@ static struct omap_hwmod omap3xxx_mcbsp3_hwmod = {
1156 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT, 1171 .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
1157 }, 1172 },
1158 }, 1173 },
1174 .opt_clks = mcbsp234_opt_clks,
1175 .opt_clks_cnt = ARRAY_SIZE(mcbsp234_opt_clks),
1159 .dev_attr = &omap34xx_mcbsp3_dev_attr, 1176 .dev_attr = &omap34xx_mcbsp3_dev_attr,
1160}; 1177};
1161 1178
@@ -1188,6 +1205,8 @@ static struct omap_hwmod omap3xxx_mcbsp4_hwmod = {
1188 .idlest_idle_bit = OMAP3430_ST_MCBSP4_SHIFT, 1205 .idlest_idle_bit = OMAP3430_ST_MCBSP4_SHIFT,
1189 }, 1206 },
1190 }, 1207 },
1208 .opt_clks = mcbsp234_opt_clks,
1209 .opt_clks_cnt = ARRAY_SIZE(mcbsp234_opt_clks),
1191}; 1210};
1192 1211
1193/* mcbsp5 */ 1212/* mcbsp5 */
@@ -1219,6 +1238,8 @@ static struct omap_hwmod omap3xxx_mcbsp5_hwmod = {
1219 .idlest_idle_bit = OMAP3430_ST_MCBSP5_SHIFT, 1238 .idlest_idle_bit = OMAP3430_ST_MCBSP5_SHIFT,
1220 }, 1239 },
1221 }, 1240 },
1241 .opt_clks = mcbsp15_opt_clks,
1242 .opt_clks_cnt = ARRAY_SIZE(mcbsp15_opt_clks),
1222}; 1243};
1223 1244
1224/* 'mcbsp sidetone' class */ 1245/* 'mcbsp sidetone' class */