|
|
@@ -1743,6 +1743,142 @@ static struct omap_hwmod dra7xx_mmc4_hwmod = {
|
|
|
.opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
|
|
|
};
|
|
|
|
|
|
+/*
|
|
|
+ * 'mmu' class
|
|
|
+ * The memory management unit performs virtual to physical address translation
|
|
|
+ * for its requestors.
|
|
|
+ */
|
|
|
+
|
|
|
+static struct omap_hwmod_class_sysconfig dra7xx_mmu_sysc = {
|
|
|
+ .rev_offs = 0x0000,
|
|
|
+ .sysc_offs = 0x0010,
|
|
|
+ .syss_offs = 0x0014,
|
|
|
+ .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
|
|
|
+ SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
|
|
|
+ SYSS_HAS_RESET_STATUS),
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class dra7xx_mmu_hwmod_class = {
|
|
|
+ .name = "mmu",
|
|
|
+ .sysc = &dra7xx_mmu_sysc,
|
|
|
+};
|
|
|
+
|
|
|
+/* DSP MMUs */
|
|
|
+static struct omap_hwmod_rst_info dra7xx_mmu_dsp_resets[] = {
|
|
|
+ { .name = "mmu_cache", .rst_shift = 1 },
|
|
|
+};
|
|
|
+
|
|
|
+/* mmu0 - dsp1 */
|
|
|
+static struct omap_hwmod dra7xx_mmu0_dsp1_hwmod = {
|
|
|
+ .name = "mmu0_dsp1",
|
|
|
+ .class = &dra7xx_mmu_hwmod_class,
|
|
|
+ .clkdm_name = "dsp1_clkdm",
|
|
|
+ .rst_lines = dra7xx_mmu_dsp_resets,
|
|
|
+ .rst_lines_cnt = ARRAY_SIZE(dra7xx_mmu_dsp_resets),
|
|
|
+ .main_clk = "dpll_dsp_m2_ck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = DRA7XX_CM_DSP1_DSP1_CLKCTRL_OFFSET,
|
|
|
+ .rstctrl_offs = DRA7XX_RM_DSP1_RSTCTRL_OFFSET,
|
|
|
+ .context_offs = DRA7XX_RM_DSP1_DSP1_CONTEXT_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_HWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* mmu1 - dsp1 */
|
|
|
+static struct omap_hwmod dra7xx_mmu1_dsp1_hwmod = {
|
|
|
+ .name = "mmu1_dsp1",
|
|
|
+ .class = &dra7xx_mmu_hwmod_class,
|
|
|
+ .clkdm_name = "dsp1_clkdm",
|
|
|
+ .rst_lines = dra7xx_mmu_dsp_resets,
|
|
|
+ .rst_lines_cnt = ARRAY_SIZE(dra7xx_mmu_dsp_resets),
|
|
|
+ .main_clk = "dpll_dsp_m2_ck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .rstctrl_offs = DRA7XX_RM_DSP1_RSTCTRL_OFFSET,
|
|
|
+ .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* mmu0 - dsp2 */
|
|
|
+static struct omap_hwmod dra7xx_mmu0_dsp2_hwmod = {
|
|
|
+ .name = "mmu0_dsp2",
|
|
|
+ .class = &dra7xx_mmu_hwmod_class,
|
|
|
+ .clkdm_name = "dsp2_clkdm",
|
|
|
+ .rst_lines = dra7xx_mmu_dsp_resets,
|
|
|
+ .rst_lines_cnt = ARRAY_SIZE(dra7xx_mmu_dsp_resets),
|
|
|
+ .main_clk = "dpll_dsp_m2_ck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = DRA7XX_CM_DSP2_DSP2_CLKCTRL_OFFSET,
|
|
|
+ .rstctrl_offs = DRA7XX_RM_DSP2_RSTCTRL_OFFSET,
|
|
|
+ .context_offs = DRA7XX_RM_DSP2_DSP2_CONTEXT_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_HWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* mmu1 - dsp2 */
|
|
|
+static struct omap_hwmod dra7xx_mmu1_dsp2_hwmod = {
|
|
|
+ .name = "mmu1_dsp2",
|
|
|
+ .class = &dra7xx_mmu_hwmod_class,
|
|
|
+ .clkdm_name = "dsp2_clkdm",
|
|
|
+ .rst_lines = dra7xx_mmu_dsp_resets,
|
|
|
+ .rst_lines_cnt = ARRAY_SIZE(dra7xx_mmu_dsp_resets),
|
|
|
+ .main_clk = "dpll_dsp_m2_ck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .rstctrl_offs = DRA7XX_RM_DSP2_RSTCTRL_OFFSET,
|
|
|
+ .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* IPU MMUs */
|
|
|
+static struct omap_hwmod_rst_info dra7xx_mmu_ipu_resets[] = {
|
|
|
+ { .name = "mmu_cache", .rst_shift = 2 },
|
|
|
+};
|
|
|
+
|
|
|
+/* mmu ipu1 */
|
|
|
+static struct omap_hwmod dra7xx_mmu_ipu1_hwmod = {
|
|
|
+ .name = "mmu_ipu1",
|
|
|
+ .class = &dra7xx_mmu_hwmod_class,
|
|
|
+ .clkdm_name = "ipu1_clkdm",
|
|
|
+ .rst_lines = dra7xx_mmu_ipu_resets,
|
|
|
+ .rst_lines_cnt = ARRAY_SIZE(dra7xx_mmu_ipu_resets),
|
|
|
+ .main_clk = "ipu1_gfclk_mux",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = DRA7XX_CM_IPU1_IPU1_CLKCTRL_OFFSET,
|
|
|
+ .rstctrl_offs = DRA7XX_RM_IPU1_RSTCTRL_OFFSET,
|
|
|
+ .context_offs = DRA7XX_RM_IPU1_IPU1_CONTEXT_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_HWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* mmu ipu2 */
|
|
|
+static struct omap_hwmod dra7xx_mmu_ipu2_hwmod = {
|
|
|
+ .name = "mmu_ipu2",
|
|
|
+ .class = &dra7xx_mmu_hwmod_class,
|
|
|
+ .clkdm_name = "ipu2_clkdm",
|
|
|
+ .rst_lines = dra7xx_mmu_ipu_resets,
|
|
|
+ .rst_lines_cnt = ARRAY_SIZE(dra7xx_mmu_ipu_resets),
|
|
|
+ .main_clk = "dpll_core_h22x2_ck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = DRA7XX_CM_IPU2_IPU2_CLKCTRL_OFFSET,
|
|
|
+ .rstctrl_offs = DRA7XX_RM_IPU2_RSTCTRL_OFFSET,
|
|
|
+ .context_offs = DRA7XX_RM_IPU2_IPU2_CONTEXT_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_HWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
/*
|
|
|
* 'mpu' class
|
|
|
*
|
|
|
@@ -2880,6 +3016,54 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
|
|
|
.user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
};
|
|
|
|
|
|
+/* l3_main_1 -> mmu0_dsp1 */
|
|
|
+static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu0_dsp1 = {
|
|
|
+ .master = &dra7xx_l3_main_1_hwmod,
|
|
|
+ .slave = &dra7xx_mmu0_dsp1_hwmod,
|
|
|
+ .clk = "l3_iclk_div",
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* l3_main_1 -> mmu1_dsp1 */
|
|
|
+static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu1_dsp1 = {
|
|
|
+ .master = &dra7xx_l3_main_1_hwmod,
|
|
|
+ .slave = &dra7xx_mmu1_dsp1_hwmod,
|
|
|
+ .clk = "l3_iclk_div",
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* l3_main_1 -> mmu0_dsp2 */
|
|
|
+static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu0_dsp2 = {
|
|
|
+ .master = &dra7xx_l3_main_1_hwmod,
|
|
|
+ .slave = &dra7xx_mmu0_dsp2_hwmod,
|
|
|
+ .clk = "l3_iclk_div",
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* l3_main_1 -> mmu1_dsp2 */
|
|
|
+static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu1_dsp2 = {
|
|
|
+ .master = &dra7xx_l3_main_1_hwmod,
|
|
|
+ .slave = &dra7xx_mmu1_dsp2_hwmod,
|
|
|
+ .clk = "l3_iclk_div",
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* l3_main_1 -> mmu_ipu1 */
|
|
|
+static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu_ipu1 = {
|
|
|
+ .master = &dra7xx_l3_main_1_hwmod,
|
|
|
+ .slave = &dra7xx_mmu_ipu1_hwmod,
|
|
|
+ .clk = "l3_iclk_div",
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* l3_main_1 -> mmu_ipu2 */
|
|
|
+static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mmu_ipu2 = {
|
|
|
+ .master = &dra7xx_l3_main_1_hwmod,
|
|
|
+ .slave = &dra7xx_mmu_ipu2_hwmod,
|
|
|
+ .clk = "l3_iclk_div",
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
/* l3_main_1 -> l4_per1 */
|
|
|
static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
|
|
|
.master = &dra7xx_l3_main_1_hwmod,
|
|
|
@@ -3954,6 +4138,10 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
|
|
|
&dra7xx_l4_per1__mmc2,
|
|
|
&dra7xx_l4_per1__mmc3,
|
|
|
&dra7xx_l4_per1__mmc4,
|
|
|
+ &dra7xx_l3_main_1__mmu0_dsp1,
|
|
|
+ &dra7xx_l3_main_1__mmu1_dsp1,
|
|
|
+ &dra7xx_l3_main_1__mmu_ipu1,
|
|
|
+ &dra7xx_l3_main_1__mmu_ipu2,
|
|
|
&dra7xx_l4_cfg__mpu,
|
|
|
&dra7xx_l4_cfg__ocp2scp1,
|
|
|
&dra7xx_l4_cfg__ocp2scp3,
|
|
|
@@ -4017,6 +4205,8 @@ static struct omap_hwmod_ocp_if *dra7xx_gp_hwmod_ocp_ifs[] __initdata = {
|
|
|
|
|
|
/* SoC variant specific hwmod links */
|
|
|
static struct omap_hwmod_ocp_if *dra76x_hwmod_ocp_ifs[] __initdata = {
|
|
|
+ &dra7xx_l3_main_1__mmu0_dsp2,
|
|
|
+ &dra7xx_l3_main_1__mmu1_dsp2,
|
|
|
&dra7xx_l4_per3__usb_otg_ss4,
|
|
|
NULL,
|
|
|
};
|
|
|
@@ -4026,6 +4216,8 @@ static struct omap_hwmod_ocp_if *acd_76x_hwmod_ocp_ifs[] __initdata = {
|
|
|
};
|
|
|
|
|
|
static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
|
|
|
+ &dra7xx_l3_main_1__mmu0_dsp2,
|
|
|
+ &dra7xx_l3_main_1__mmu1_dsp2,
|
|
|
&dra7xx_l4_per3__usb_otg_ss4,
|
|
|
NULL,
|
|
|
};
|