|
@@ -235,6 +235,42 @@ static struct omap_hwmod dra7xx_bb2d_hwmod = {
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+ * 'cal' class
|
|
|
|
|
+ *
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+static struct omap_hwmod_class_sysconfig dra7xx_cal_sysc = {
|
|
|
|
|
+ .rev_offs = 0x0000,
|
|
|
|
|
+ .sysc_offs = 0x0010,
|
|
|
|
|
+ .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_RESET_STATUS |
|
|
|
|
|
+ SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE),
|
|
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
|
|
|
|
|
+ MSTANDBY_FORCE | MSTANDBY_NO),
|
|
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type2,
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+static struct omap_hwmod_class dra7xx_cal_hwmod_class = {
|
|
|
|
|
+ .name = "cal",
|
|
|
|
|
+ .sysc = &dra7xx_cal_sysc,
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+/* cal */
|
|
|
|
|
+static struct omap_hwmod dra7xx_cal_hwmod = {
|
|
|
|
|
+ .name = "cal",
|
|
|
|
|
+ .class = &dra7xx_cal_hwmod_class,
|
|
|
|
|
+ .clkdm_name = "cam_clkdm",
|
|
|
|
|
+ .main_clk = "vip2_gclk_mux",
|
|
|
|
|
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
|
|
|
|
|
+ .prcm = {
|
|
|
|
|
+ .omap4 = {
|
|
|
|
|
+ .clkctrl_offs = DRA7XX_CM_CAM_VIP2_CLKCTRL_OFFSET,
|
|
|
|
|
+ .context_offs = DRA7XX_RM_CAM_VIP2_CONTEXT_OFFSET,
|
|
|
|
|
+ .modulemode = MODULEMODE_HWCTRL,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* 'counter' class
|
|
* 'counter' class
|
|
|
*
|
|
*
|
|
@@ -3792,6 +3828,14 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
|
|
|
.user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
.user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/* l4_per2 -> cal */
|
|
|
|
|
+static struct omap_hwmod_ocp_if dra7xx_l4_per2__cal = {
|
|
|
|
|
+ .master = &dra7xx_l4_per2_hwmod,
|
|
|
|
|
+ .slave = &dra7xx_cal_hwmod,
|
|
|
|
|
+ .clk = "l3_iclk_div",
|
|
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
/* l4_wkup -> wd_timer2 */
|
|
/* l4_wkup -> wd_timer2 */
|
|
|
static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
|
|
static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
|
|
|
.master = &dra7xx_l4_wkup_hwmod,
|
|
.master = &dra7xx_l4_wkup_hwmod,
|
|
@@ -3977,6 +4021,7 @@ static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
|
|
static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
|
|
|
|
|
+ &dra7xx_l4_per2__cal,
|
|
|
NULL,
|
|
NULL,
|
|
|
};
|
|
};
|
|
|
|
|
|