summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubramaniam C.A <subramaniam.ca@ti.com>2012-02-02 03:16:52 +0100
committerAndy Green <andy.green@linaro.org>2012-03-13 11:20:20 +0800
commit17c843652f6c42d70a9c9aa2de749c121bc86a51 (patch)
tree2c8516d5f6c887695135aa7e5da930bd617d9c33
parent2a6fc035e0210abccf8e814ad91e9fbb4a1af563 (diff)
ARM: omap5: hwmod: add sl2if hwmod data
Added hwmod data for sl2if. Signed-off-by: Cris Jansson <cjansson@ti.com> Signed-off-by: Subramaniam C.A <subramaniam.ca@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com>
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_54xx_data.c58
1 files changed, 58 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_54xx_data.c b/arch/arm/mach-omap2/omap_hwmod_54xx_data.c
index 8793d647c8f..0c64035b9a5 100644
--- a/arch/arm/mach-omap2/omap_hwmod_54xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_54xx_data.c
@@ -76,6 +76,7 @@ static struct omap_hwmod omap54xx_sata_hwmod;
static struct omap_hwmod omap54xx_usb_otg_ss_hwmod;
static struct omap_hwmod omap54xx_usb_host_hs_hwmod;
static struct omap_hwmod omap54xx_usb_tll_hs_hwmod;
+static struct omap_hwmod omap54xx_sl2if_hwmod;
/*
* Interconnects omap_hwmod structures
@@ -1297,6 +1298,13 @@ static struct omap_hwmod omap54xx_dsp_hwmod = {
.masters_cnt = ARRAY_SIZE(omap54xx_dsp_masters),
};
+/* dsp -> sl2if */
+static struct omap_hwmod_ocp_if omap54xx_dsp__sl2if = {
+ .master = &omap54xx_dsp_hwmod,
+ .slave = &omap54xx_sl2if_hwmod,
+ .clk = "dpll_iva_h12x2_ck",
+};
+
/*
* 'dss' class
* display sub-system
@@ -3229,8 +3237,16 @@ static struct omap_hwmod_rst_info omap54xx_iva_resets[] = {
{ .name = "rst_logic", .rst_shift = 2 },
};
+/* iva -> sl2if */
+static struct omap_hwmod_ocp_if omap54xx_iva__sl2if = {
+ .master = &omap54xx_iva_hwmod,
+ .slave = &omap54xx_sl2if_hwmod,
+ .clk = "dpll_iva_h12x2_ck",
+};
+
/* iva master ports */
static struct omap_hwmod_ocp_if *omap54xx_iva_masters[] = {
+ &omap54xx_iva__sl2if,
&omap54xx_iva__l3_main_2,
&omap54xx_iva__l3_instr,
};
@@ -4333,6 +4349,46 @@ static struct omap_hwmod omap54xx_mmc5_hwmod = {
};
/*
+ * 'sl2if' class
+ * shared level 2 memory interface
+ */
+
+static struct omap_hwmod_class omap54xx_sl2if_hwmod_class = {
+ .name = "sl2if",
+};
+
+/* sl2if */
+/* l3_main_2 -> sl2if */
+static struct omap_hwmod_ocp_if omap54xx_l3_main_2__sl2if = {
+ .master = &omap54xx_l3_main_2_hwmod,
+ .slave = &omap54xx_sl2if_hwmod,
+ .clk = "l3_div_ck",
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+/* sl2if slave ports */
+static struct omap_hwmod_ocp_if *omap54xx_sl2if_slaves[] = {
+ &omap54xx_l3_main_2__sl2if,
+ &omap54xx_iva__sl2if,
+ &omap54xx_dsp__sl2if,
+};
+
+static struct omap_hwmod omap54xx_sl2if_hwmod = {
+ .name = "sl2if",
+ .class = &omap54xx_sl2if_hwmod_class,
+ .clkdm_name = "iva_clkdm",
+ .main_clk = "sl2if_ick",
+ .prcm = {
+ .omap4 = {
+ .clkctrl_offs = OMAP54XX_CM_IVA_SL2_CLKCTRL_OFFSET,
+ },
+ },
+ .slaves = omap54xx_sl2if_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap54xx_sl2if_slaves),
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP5430),
+};
+
+/*
* 'mpu' class
* mpu sub-system
*/
@@ -6378,6 +6434,8 @@ static __initdata struct omap_hwmod *omap54xx_hwmods[] = {
&omap54xx_sata_hwmod,
#endif
+ &omap54xx_sl2if_hwmod,
+
/* smartreflex class */
&omap54xx_smartreflex_core_hwmod,
&omap54xx_smartreflex_mm_hwmod,