|
@@ -22,7 +22,9 @@
|
|
|
#include <plat/l4_3xxx.h>
|
|
|
#include <plat/i2c.h>
|
|
|
#include <plat/gpio.h>
|
|
|
+#include <plat/mmc.h>
|
|
|
#include <plat/smartreflex.h>
|
|
|
+#include <plat/mcbsp.h>
|
|
|
#include <plat/mcspi.h>
|
|
|
#include <plat/dmtimer.h>
|
|
|
|
|
@@ -69,10 +71,21 @@ static struct omap_hwmod omap34xx_mcspi1;
|
|
|
static struct omap_hwmod omap34xx_mcspi2;
|
|
|
static struct omap_hwmod omap34xx_mcspi3;
|
|
|
static struct omap_hwmod omap34xx_mcspi4;
|
|
|
+static struct omap_hwmod omap3xxx_mmc1_hwmod;
|
|
|
+static struct omap_hwmod omap3xxx_mmc2_hwmod;
|
|
|
+static struct omap_hwmod omap3xxx_mmc3_hwmod;
|
|
|
static struct omap_hwmod am35xx_usbhsotg_hwmod;
|
|
|
|
|
|
static struct omap_hwmod omap3xxx_dma_system_hwmod;
|
|
|
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp1_hwmod;
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp2_hwmod;
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp3_hwmod;
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp4_hwmod;
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp5_hwmod;
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod;
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod;
|
|
|
+
|
|
|
/* L3 -> L4_CORE interface */
|
|
|
static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core = {
|
|
|
.master = &omap3xxx_l3_main_hwmod,
|
|
@@ -159,6 +172,63 @@ static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
|
|
|
.user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
};
|
|
|
|
|
|
+/* L4 CORE -> MMC1 interface */
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mmc1_addr_space[] = {
|
|
|
+ {
|
|
|
+ .pa_start = 0x4809c000,
|
|
|
+ .pa_end = 0x4809c1ff,
|
|
|
+ .flags = ADDR_TYPE_RT,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc1 = {
|
|
|
+ .master = &omap3xxx_l4_core_hwmod,
|
|
|
+ .slave = &omap3xxx_mmc1_hwmod,
|
|
|
+ .clk = "mmchs1_ick",
|
|
|
+ .addr = omap3xxx_mmc1_addr_space,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mmc1_addr_space),
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+ .flags = OMAP_FIREWALL_L4
|
|
|
+};
|
|
|
+
|
|
|
+/* L4 CORE -> MMC2 interface */
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mmc2_addr_space[] = {
|
|
|
+ {
|
|
|
+ .pa_start = 0x480b4000,
|
|
|
+ .pa_end = 0x480b41ff,
|
|
|
+ .flags = ADDR_TYPE_RT,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc2 = {
|
|
|
+ .master = &omap3xxx_l4_core_hwmod,
|
|
|
+ .slave = &omap3xxx_mmc2_hwmod,
|
|
|
+ .clk = "mmchs2_ick",
|
|
|
+ .addr = omap3xxx_mmc2_addr_space,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mmc2_addr_space),
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+ .flags = OMAP_FIREWALL_L4
|
|
|
+};
|
|
|
+
|
|
|
+/* L4 CORE -> MMC3 interface */
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space[] = {
|
|
|
+ {
|
|
|
+ .pa_start = 0x480ad000,
|
|
|
+ .pa_end = 0x480ad1ff,
|
|
|
+ .flags = ADDR_TYPE_RT,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3 = {
|
|
|
+ .master = &omap3xxx_l4_core_hwmod,
|
|
|
+ .slave = &omap3xxx_mmc3_hwmod,
|
|
|
+ .clk = "mmchs3_ick",
|
|
|
+ .addr = omap3xxx_mmc3_addr_space,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mmc3_addr_space),
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+ .flags = OMAP_FIREWALL_L4
|
|
|
+};
|
|
|
+
|
|
|
/* L4 CORE -> UART1 interface */
|
|
|
static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space[] = {
|
|
|
{
|
|
@@ -2364,6 +2434,437 @@ static struct omap_hwmod omap3xxx_dma_system_hwmod = {
|
|
|
.flags = HWMOD_NO_IDLEST,
|
|
|
};
|
|
|
|
|
|
+/*
|
|
|
+ * 'mcbsp' class
|
|
|
+ * multi channel buffered serial port controller
|
|
|
+ */
|
|
|
+
|
|
|
+static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc = {
|
|
|
+ .sysc_offs = 0x008c,
|
|
|
+ .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
|
|
|
+ SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
+ .clockact = 0x2,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class = {
|
|
|
+ .name = "mcbsp",
|
|
|
+ .sysc = &omap3xxx_mcbsp_sysc,
|
|
|
+ .rev = MCBSP_CONFIG_TYPE3,
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp1 */
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = {
|
|
|
+ { .name = "irq", .irq = 16 },
|
|
|
+ { .name = "tx", .irq = 59 },
|
|
|
+ { .name = "rx", .irq = 60 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_dma_info omap3xxx_mcbsp1_sdma_chs[] = {
|
|
|
+ { .name = "rx", .dma_req = 32 },
|
|
|
+ { .name = "tx", .dma_req = 31 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs[] = {
|
|
|
+ {
|
|
|
+ .name = "mpu",
|
|
|
+ .pa_start = 0x48074000,
|
|
|
+ .pa_end = 0x480740ff,
|
|
|
+ .flags = ADDR_TYPE_RT
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* l4_core -> mcbsp1 */
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1 = {
|
|
|
+ .master = &omap3xxx_l4_core_hwmod,
|
|
|
+ .slave = &omap3xxx_mcbsp1_hwmod,
|
|
|
+ .clk = "mcbsp1_ick",
|
|
|
+ .addr = omap3xxx_mcbsp1_addrs,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mcbsp1_addrs),
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp1 slave ports */
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mcbsp1_slaves[] = {
|
|
|
+ &omap3xxx_l4_core__mcbsp1,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp1_hwmod = {
|
|
|
+ .name = "mcbsp1",
|
|
|
+ .class = &omap3xxx_mcbsp_hwmod_class,
|
|
|
+ .mpu_irqs = omap3xxx_mcbsp1_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp1_irqs),
|
|
|
+ .sdma_reqs = omap3xxx_mcbsp1_sdma_chs,
|
|
|
+ .sdma_reqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp1_sdma_chs),
|
|
|
+ .main_clk = "mcbsp1_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MCBSP1_SHIFT,
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MCBSP1_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mcbsp1_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp1_slaves),
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp2 */
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs[] = {
|
|
|
+ { .name = "irq", .irq = 17 },
|
|
|
+ { .name = "tx", .irq = 62 },
|
|
|
+ { .name = "rx", .irq = 63 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_dma_info omap3xxx_mcbsp2_sdma_chs[] = {
|
|
|
+ { .name = "rx", .dma_req = 34 },
|
|
|
+ { .name = "tx", .dma_req = 33 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs[] = {
|
|
|
+ {
|
|
|
+ .name = "mpu",
|
|
|
+ .pa_start = 0x49022000,
|
|
|
+ .pa_end = 0x490220ff,
|
|
|
+ .flags = ADDR_TYPE_RT
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* l4_per -> mcbsp2 */
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2 = {
|
|
|
+ .master = &omap3xxx_l4_per_hwmod,
|
|
|
+ .slave = &omap3xxx_mcbsp2_hwmod,
|
|
|
+ .clk = "mcbsp2_ick",
|
|
|
+ .addr = omap3xxx_mcbsp2_addrs,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_addrs),
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp2 slave ports */
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mcbsp2_slaves[] = {
|
|
|
+ &omap3xxx_l4_per__mcbsp2,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr = {
|
|
|
+ .sidetone = "mcbsp2_sidetone",
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp2_hwmod = {
|
|
|
+ .name = "mcbsp2",
|
|
|
+ .class = &omap3xxx_mcbsp_hwmod_class,
|
|
|
+ .mpu_irqs = omap3xxx_mcbsp2_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_irqs),
|
|
|
+ .sdma_reqs = omap3xxx_mcbsp2_sdma_chs,
|
|
|
+ .sdma_reqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_sdma_chs),
|
|
|
+ .main_clk = "mcbsp2_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
|
|
|
+ .module_offs = OMAP3430_PER_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mcbsp2_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_slaves),
|
|
|
+ .dev_attr = &omap34xx_mcbsp2_dev_attr,
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp3 */
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs[] = {
|
|
|
+ { .name = "irq", .irq = 22 },
|
|
|
+ { .name = "tx", .irq = 89 },
|
|
|
+ { .name = "rx", .irq = 90 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_dma_info omap3xxx_mcbsp3_sdma_chs[] = {
|
|
|
+ { .name = "rx", .dma_req = 18 },
|
|
|
+ { .name = "tx", .dma_req = 17 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs[] = {
|
|
|
+ {
|
|
|
+ .name = "mpu",
|
|
|
+ .pa_start = 0x49024000,
|
|
|
+ .pa_end = 0x490240ff,
|
|
|
+ .flags = ADDR_TYPE_RT
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* l4_per -> mcbsp3 */
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3 = {
|
|
|
+ .master = &omap3xxx_l4_per_hwmod,
|
|
|
+ .slave = &omap3xxx_mcbsp3_hwmod,
|
|
|
+ .clk = "mcbsp3_ick",
|
|
|
+ .addr = omap3xxx_mcbsp3_addrs,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_addrs),
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp3 slave ports */
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mcbsp3_slaves[] = {
|
|
|
+ &omap3xxx_l4_per__mcbsp3,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr = {
|
|
|
+ .sidetone = "mcbsp3_sidetone",
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp3_hwmod = {
|
|
|
+ .name = "mcbsp3",
|
|
|
+ .class = &omap3xxx_mcbsp_hwmod_class,
|
|
|
+ .mpu_irqs = omap3xxx_mcbsp3_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_irqs),
|
|
|
+ .sdma_reqs = omap3xxx_mcbsp3_sdma_chs,
|
|
|
+ .sdma_reqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_sdma_chs),
|
|
|
+ .main_clk = "mcbsp3_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
|
|
|
+ .module_offs = OMAP3430_PER_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mcbsp3_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_slaves),
|
|
|
+ .dev_attr = &omap34xx_mcbsp3_dev_attr,
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp4 */
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs[] = {
|
|
|
+ { .name = "irq", .irq = 23 },
|
|
|
+ { .name = "tx", .irq = 54 },
|
|
|
+ { .name = "rx", .irq = 55 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs[] = {
|
|
|
+ { .name = "rx", .dma_req = 20 },
|
|
|
+ { .name = "tx", .dma_req = 19 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs[] = {
|
|
|
+ {
|
|
|
+ .name = "mpu",
|
|
|
+ .pa_start = 0x49026000,
|
|
|
+ .pa_end = 0x490260ff,
|
|
|
+ .flags = ADDR_TYPE_RT
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* l4_per -> mcbsp4 */
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4 = {
|
|
|
+ .master = &omap3xxx_l4_per_hwmod,
|
|
|
+ .slave = &omap3xxx_mcbsp4_hwmod,
|
|
|
+ .clk = "mcbsp4_ick",
|
|
|
+ .addr = omap3xxx_mcbsp4_addrs,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mcbsp4_addrs),
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp4 slave ports */
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mcbsp4_slaves[] = {
|
|
|
+ &omap3xxx_l4_per__mcbsp4,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp4_hwmod = {
|
|
|
+ .name = "mcbsp4",
|
|
|
+ .class = &omap3xxx_mcbsp_hwmod_class,
|
|
|
+ .mpu_irqs = omap3xxx_mcbsp4_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp4_irqs),
|
|
|
+ .sdma_reqs = omap3xxx_mcbsp4_sdma_chs,
|
|
|
+ .sdma_reqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp4_sdma_chs),
|
|
|
+ .main_clk = "mcbsp4_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MCBSP4_SHIFT,
|
|
|
+ .module_offs = OMAP3430_PER_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MCBSP4_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mcbsp4_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp4_slaves),
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp5 */
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs[] = {
|
|
|
+ { .name = "irq", .irq = 27 },
|
|
|
+ { .name = "tx", .irq = 81 },
|
|
|
+ { .name = "rx", .irq = 82 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs[] = {
|
|
|
+ { .name = "rx", .dma_req = 22 },
|
|
|
+ { .name = "tx", .dma_req = 21 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs[] = {
|
|
|
+ {
|
|
|
+ .name = "mpu",
|
|
|
+ .pa_start = 0x48096000,
|
|
|
+ .pa_end = 0x480960ff,
|
|
|
+ .flags = ADDR_TYPE_RT
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* l4_core -> mcbsp5 */
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5 = {
|
|
|
+ .master = &omap3xxx_l4_core_hwmod,
|
|
|
+ .slave = &omap3xxx_mcbsp5_hwmod,
|
|
|
+ .clk = "mcbsp5_ick",
|
|
|
+ .addr = omap3xxx_mcbsp5_addrs,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mcbsp5_addrs),
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp5 slave ports */
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mcbsp5_slaves[] = {
|
|
|
+ &omap3xxx_l4_core__mcbsp5,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp5_hwmod = {
|
|
|
+ .name = "mcbsp5",
|
|
|
+ .class = &omap3xxx_mcbsp_hwmod_class,
|
|
|
+ .mpu_irqs = omap3xxx_mcbsp5_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp5_irqs),
|
|
|
+ .sdma_reqs = omap3xxx_mcbsp5_sdma_chs,
|
|
|
+ .sdma_reqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp5_sdma_chs),
|
|
|
+ .main_clk = "mcbsp5_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MCBSP5_SHIFT,
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MCBSP5_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mcbsp5_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp5_slaves),
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+/* 'mcbsp sidetone' class */
|
|
|
+
|
|
|
+static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc = {
|
|
|
+ .sysc_offs = 0x0010,
|
|
|
+ .sysc_flags = SYSC_HAS_AUTOIDLE,
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class = {
|
|
|
+ .name = "mcbsp_sidetone",
|
|
|
+ .sysc = &omap3xxx_mcbsp_sidetone_sysc,
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp2_sidetone */
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs[] = {
|
|
|
+ { .name = "irq", .irq = 4 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs[] = {
|
|
|
+ {
|
|
|
+ .name = "sidetone",
|
|
|
+ .pa_start = 0x49028000,
|
|
|
+ .pa_end = 0x490280ff,
|
|
|
+ .flags = ADDR_TYPE_RT
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* l4_per -> mcbsp2_sidetone */
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone = {
|
|
|
+ .master = &omap3xxx_l4_per_hwmod,
|
|
|
+ .slave = &omap3xxx_mcbsp2_sidetone_hwmod,
|
|
|
+ .clk = "mcbsp2_ick",
|
|
|
+ .addr = omap3xxx_mcbsp2_sidetone_addrs,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_sidetone_addrs),
|
|
|
+ .user = OCP_USER_MPU,
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp2_sidetone slave ports */
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mcbsp2_sidetone_slaves[] = {
|
|
|
+ &omap3xxx_l4_per__mcbsp2_sidetone,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod = {
|
|
|
+ .name = "mcbsp2_sidetone",
|
|
|
+ .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
|
|
|
+ .mpu_irqs = omap3xxx_mcbsp2_sidetone_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_sidetone_irqs),
|
|
|
+ .main_clk = "mcbsp2_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MCBSP2_SHIFT,
|
|
|
+ .module_offs = OMAP3430_PER_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mcbsp2_sidetone_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp2_sidetone_slaves),
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp3_sidetone */
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs[] = {
|
|
|
+ { .name = "irq", .irq = 5 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs[] = {
|
|
|
+ {
|
|
|
+ .name = "sidetone",
|
|
|
+ .pa_start = 0x4902A000,
|
|
|
+ .pa_end = 0x4902A0ff,
|
|
|
+ .flags = ADDR_TYPE_RT
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* l4_per -> mcbsp3_sidetone */
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone = {
|
|
|
+ .master = &omap3xxx_l4_per_hwmod,
|
|
|
+ .slave = &omap3xxx_mcbsp3_sidetone_hwmod,
|
|
|
+ .clk = "mcbsp3_ick",
|
|
|
+ .addr = omap3xxx_mcbsp3_sidetone_addrs,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_sidetone_addrs),
|
|
|
+ .user = OCP_USER_MPU,
|
|
|
+};
|
|
|
+
|
|
|
+/* mcbsp3_sidetone slave ports */
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mcbsp3_sidetone_slaves[] = {
|
|
|
+ &omap3xxx_l4_per__mcbsp3_sidetone,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod = {
|
|
|
+ .name = "mcbsp3_sidetone",
|
|
|
+ .class = &omap3xxx_mcbsp_sidetone_hwmod_class,
|
|
|
+ .mpu_irqs = omap3xxx_mcbsp3_sidetone_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_sidetone_irqs),
|
|
|
+ .main_clk = "mcbsp3_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MCBSP3_SHIFT,
|
|
|
+ .module_offs = OMAP3430_PER_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mcbsp3_sidetone_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mcbsp3_sidetone_slaves),
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
/* SR common */
|
|
|
static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields = {
|
|
|
.clkact_shift = 20,
|
|
@@ -2493,6 +2994,74 @@ static struct omap_hwmod omap36xx_sr2_hwmod = {
|
|
|
.omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3630ES1),
|
|
|
};
|
|
|
|
|
|
+/*
|
|
|
+ * 'mailbox' class
|
|
|
+ * mailbox module allowing communication between the on-chip processors
|
|
|
+ * using a queued mailbox-interrupt mechanism.
|
|
|
+ */
|
|
|
+
|
|
|
+static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc = {
|
|
|
+ .rev_offs = 0x000,
|
|
|
+ .sysc_offs = 0x010,
|
|
|
+ .syss_offs = 0x014,
|
|
|
+ .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
|
|
|
+ SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class = {
|
|
|
+ .name = "mailbox",
|
|
|
+ .sysc = &omap3xxx_mailbox_sysc,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mailbox_hwmod;
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs[] = {
|
|
|
+ { .irq = 26 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs[] = {
|
|
|
+ {
|
|
|
+ .pa_start = 0x48094000,
|
|
|
+ .pa_end = 0x480941ff,
|
|
|
+ .flags = ADDR_TYPE_RT,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* l4_core -> mailbox */
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox = {
|
|
|
+ .master = &omap3xxx_l4_core_hwmod,
|
|
|
+ .slave = &omap3xxx_mailbox_hwmod,
|
|
|
+ .addr = omap3xxx_mailbox_addrs,
|
|
|
+ .addr_cnt = ARRAY_SIZE(omap3xxx_mailbox_addrs),
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* mailbox slave ports */
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mailbox_slaves[] = {
|
|
|
+ &omap3xxx_l4_core__mailbox,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mailbox_hwmod = {
|
|
|
+ .name = "mailbox",
|
|
|
+ .class = &omap3xxx_mailbox_hwmod_class,
|
|
|
+ .mpu_irqs = omap3xxx_mailbox_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_mailbox_irqs),
|
|
|
+ .main_clk = "mailboxes_ick",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MAILBOXES_SHIFT,
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MAILBOXES_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mailbox_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mailbox_slaves),
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
/* l4 core -> mcspi1 interface */
|
|
|
static struct omap_hwmod_addr_space omap34xx_mcspi1_addr_space[] = {
|
|
|
{
|
|
@@ -2847,11 +3416,165 @@ static struct omap_hwmod am35xx_usbhsotg_hwmod = {
|
|
|
.omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430ES3_1)
|
|
|
};
|
|
|
|
|
|
+/* MMC/SD/SDIO common */
|
|
|
+
|
|
|
+static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc = {
|
|
|
+ .rev_offs = 0x1fc,
|
|
|
+ .sysc_offs = 0x10,
|
|
|
+ .syss_offs = 0x14,
|
|
|
+ .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
|
|
|
+ SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
|
|
|
+ SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class omap34xx_mmc_class = {
|
|
|
+ .name = "mmc",
|
|
|
+ .sysc = &omap34xx_mmc_sysc,
|
|
|
+};
|
|
|
+
|
|
|
+/* MMC/SD/SDIO1 */
|
|
|
+
|
|
|
+static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs[] = {
|
|
|
+ { .irq = 83, },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs[] = {
|
|
|
+ { .name = "tx", .dma_req = 61, },
|
|
|
+ { .name = "rx", .dma_req = 62, },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks[] = {
|
|
|
+ { .role = "dbck", .clk = "omap_32k_fck", },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mmc1_slaves[] = {
|
|
|
+ &omap3xxx_l4_core__mmc1,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_mmc_dev_attr mmc1_dev_attr = {
|
|
|
+ .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mmc1_hwmod = {
|
|
|
+ .name = "mmc1",
|
|
|
+ .mpu_irqs = omap34xx_mmc1_mpu_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap34xx_mmc1_mpu_irqs),
|
|
|
+ .sdma_reqs = omap34xx_mmc1_sdma_reqs,
|
|
|
+ .sdma_reqs_cnt = ARRAY_SIZE(omap34xx_mmc1_sdma_reqs),
|
|
|
+ .opt_clks = omap34xx_mmc1_opt_clks,
|
|
|
+ .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks),
|
|
|
+ .main_clk = "mmchs1_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MMC1_SHIFT,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .dev_attr = &mmc1_dev_attr,
|
|
|
+ .slaves = omap3xxx_mmc1_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc1_slaves),
|
|
|
+ .class = &omap34xx_mmc_class,
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
+/* MMC/SD/SDIO2 */
|
|
|
+
|
|
|
+static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs[] = {
|
|
|
+ { .irq = INT_24XX_MMC2_IRQ, },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs[] = {
|
|
|
+ { .name = "tx", .dma_req = 47, },
|
|
|
+ { .name = "rx", .dma_req = 48, },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks[] = {
|
|
|
+ { .role = "dbck", .clk = "omap_32k_fck", },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mmc2_slaves[] = {
|
|
|
+ &omap3xxx_l4_core__mmc2,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mmc2_hwmod = {
|
|
|
+ .name = "mmc2",
|
|
|
+ .mpu_irqs = omap34xx_mmc2_mpu_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap34xx_mmc2_mpu_irqs),
|
|
|
+ .sdma_reqs = omap34xx_mmc2_sdma_reqs,
|
|
|
+ .sdma_reqs_cnt = ARRAY_SIZE(omap34xx_mmc2_sdma_reqs),
|
|
|
+ .opt_clks = omap34xx_mmc2_opt_clks,
|
|
|
+ .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks),
|
|
|
+ .main_clk = "mmchs2_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MMC2_SHIFT,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mmc2_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc2_slaves),
|
|
|
+ .class = &omap34xx_mmc_class,
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
+/* MMC/SD/SDIO3 */
|
|
|
+
|
|
|
+static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs[] = {
|
|
|
+ { .irq = 94, },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs[] = {
|
|
|
+ { .name = "tx", .dma_req = 77, },
|
|
|
+ { .name = "rx", .dma_req = 78, },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks[] = {
|
|
|
+ { .role = "dbck", .clk = "omap_32k_fck", },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_ocp_if *omap3xxx_mmc3_slaves[] = {
|
|
|
+ &omap3xxx_l4_core__mmc3,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_mmc3_hwmod = {
|
|
|
+ .name = "mmc3",
|
|
|
+ .mpu_irqs = omap34xx_mmc3_mpu_irqs,
|
|
|
+ .mpu_irqs_cnt = ARRAY_SIZE(omap34xx_mmc3_mpu_irqs),
|
|
|
+ .sdma_reqs = omap34xx_mmc3_sdma_reqs,
|
|
|
+ .sdma_reqs_cnt = ARRAY_SIZE(omap34xx_mmc3_sdma_reqs),
|
|
|
+ .opt_clks = omap34xx_mmc3_opt_clks,
|
|
|
+ .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc3_opt_clks),
|
|
|
+ .main_clk = "mmchs3_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap2 = {
|
|
|
+ .prcm_reg_id = 1,
|
|
|
+ .module_bit = OMAP3430_EN_MMC3_SHIFT,
|
|
|
+ .idlest_reg_id = 1,
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_MMC3_SHIFT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .slaves = omap3xxx_mmc3_slaves,
|
|
|
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_mmc3_slaves),
|
|
|
+ .class = &omap34xx_mmc_class,
|
|
|
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
|
|
|
+};
|
|
|
+
|
|
|
static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
|
|
|
&omap3xxx_l3_main_hwmod,
|
|
|
&omap3xxx_l4_core_hwmod,
|
|
|
&omap3xxx_l4_per_hwmod,
|
|
|
&omap3xxx_l4_wkup_hwmod,
|
|
|
+ &omap3xxx_mmc1_hwmod,
|
|
|
+ &omap3xxx_mmc2_hwmod,
|
|
|
+ &omap3xxx_mmc3_hwmod,
|
|
|
&omap3xxx_mpu_hwmod,
|
|
|
&omap3xxx_iva_hwmod,
|
|
|
|
|
@@ -2902,6 +3625,18 @@ static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
|
|
|
/* dma_system class*/
|
|
|
&omap3xxx_dma_system_hwmod,
|
|
|
|
|
|
+ /* mcbsp class */
|
|
|
+ &omap3xxx_mcbsp1_hwmod,
|
|
|
+ &omap3xxx_mcbsp2_hwmod,
|
|
|
+ &omap3xxx_mcbsp3_hwmod,
|
|
|
+ &omap3xxx_mcbsp4_hwmod,
|
|
|
+ &omap3xxx_mcbsp5_hwmod,
|
|
|
+ &omap3xxx_mcbsp2_sidetone_hwmod,
|
|
|
+ &omap3xxx_mcbsp3_sidetone_hwmod,
|
|
|
+
|
|
|
+ /* mailbox class */
|
|
|
+ &omap3xxx_mailbox_hwmod,
|
|
|
+
|
|
|
/* mcspi class */
|
|
|
&omap34xx_mcspi1,
|
|
|
&omap34xx_mcspi2,
|