|
@@ -311,3 +311,108 @@ static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
|
|
|
static struct omap_hwmod omap2430_mcbsp1_hwmod = {
|
|
|
.name = "mcbsp1",
|
|
|
.class = &omap2430_mcbsp_hwmod_class,
|
|
|
+ .mpu_irqs = omap2430_mcbsp1_irqs,
|
|
|
+ .sdma_reqs = omap2_mcbsp1_sdma_reqs,
|
|
|
+ .main_clk = "mcbsp1_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .opt_clks = mcbsp_opt_clks,
|
|
|
+ .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp2 */
|
|
|
+static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
|
|
|
+ { .name = "tx", .irq = 62 + OMAP_INTC_START, },
|
|
|
+ { .name = "rx", .irq = 63 + OMAP_INTC_START, },
|
|
|
+ { .name = "common", .irq = 16 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap2430_mcbsp2_hwmod = {
|
|
|
+ .name = "mcbsp2",
|
|
|
+ .class = &omap2430_mcbsp_hwmod_class,
|
|
|
+ .mpu_irqs = omap2430_mcbsp2_irqs,
|
|
|
+ .sdma_reqs = omap2_mcbsp2_sdma_reqs,
|
|
|
+ .main_clk = "mcbsp2_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .opt_clks = mcbsp_opt_clks,
|
|
|
+ .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp3 */
|
|
|
+static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
|
|
|
+ { .name = "tx", .irq = 89 + OMAP_INTC_START, },
|
|
|
+ { .name = "rx", .irq = 90 + OMAP_INTC_START, },
|
|
|
+ { .name = "common", .irq = 17 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap2430_mcbsp3_hwmod = {
|
|
|
+ .name = "mcbsp3",
|
|
|
+ .class = &omap2430_mcbsp_hwmod_class,
|
|
|
+ .mpu_irqs = omap2430_mcbsp3_irqs,
|
|
|
+ .sdma_reqs = omap2_mcbsp3_sdma_reqs,
|
|
|
+ .main_clk = "mcbsp3_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
+ .idlest_reg_id = 2,
|
|
|
+ .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .opt_clks = mcbsp_opt_clks,
|
|
|
+ .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp4 */
|
|
|
+static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
|
|
|
+ { .name = "tx", .irq = 54 + OMAP_INTC_START, },
|
|
|
+ { .name = "rx", .irq = 55 + OMAP_INTC_START, },
|
|
|
+ { .name = "common", .irq = 18 + OMAP_INTC_START, },
|
|
|
+ { .irq = -1 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
|
|
|
+ { .name = "rx", .dma_req = 20 },
|
|
|
+ { .name = "tx", .dma_req = 19 },
|
|
|
+ { .dma_req = -1 }
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap2430_mcbsp4_hwmod = {
|
|
|
+ .name = "mcbsp4",
|
|
|
+ .class = &omap2430_mcbsp_hwmod_class,
|
|
|
+ .mpu_irqs = omap2430_mcbsp4_irqs,
|
|
|
+ .sdma_reqs = omap2430_mcbsp4_sdma_chs,
|
|
|
+ .main_clk = "mcbsp4_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
+ .idlest_reg_id = 2,
|
|
|
+ .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .opt_clks = mcbsp_opt_clks,
|
|
|
+ .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp5 */
|
|
|
+static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
|