mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
ARM: OMAP4: hwmod: use MODULEMODE properly
Instead of using a hacky "dss_fck" clock (which toggles the MODULEMODE bit) as DSS L3 interface clock, set the .modulemode field in the omap44xx_dss_hwmod. This works now that the DSS core hwmod is enabled during DSS submodule resets. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Archit Taneja <archit.taneja@gmail.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
This commit is contained in:
parent
543b2847d4
commit
7ede856161
@ -589,6 +589,7 @@ static struct omap_hwmod omap44xx_dss_hwmod = {
|
||||
.omap4 = {
|
||||
.clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
|
||||
.context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
|
||||
.modulemode = MODULEMODE_SWCTRL,
|
||||
},
|
||||
},
|
||||
.opt_clks = dss_opt_clks,
|
||||
@ -3677,7 +3678,7 @@ static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
|
||||
static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
|
||||
.master = &omap44xx_l3_main_2_hwmod,
|
||||
.slave = &omap44xx_dss_hwmod,
|
||||
.clk = "dss_fck",
|
||||
.clk = "l3_div_ck",
|
||||
.addr = omap44xx_dss_dma_addrs,
|
||||
.user = OCP_USER_SDMA,
|
||||
};
|
||||
@ -3713,7 +3714,7 @@ static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
|
||||
static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
|
||||
.master = &omap44xx_l3_main_2_hwmod,
|
||||
.slave = &omap44xx_dss_dispc_hwmod,
|
||||
.clk = "dss_fck",
|
||||
.clk = "l3_div_ck",
|
||||
.addr = omap44xx_dss_dispc_dma_addrs,
|
||||
.user = OCP_USER_SDMA,
|
||||
};
|
||||
@ -3749,7 +3750,7 @@ static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
|
||||
static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
|
||||
.master = &omap44xx_l3_main_2_hwmod,
|
||||
.slave = &omap44xx_dss_dsi1_hwmod,
|
||||
.clk = "dss_fck",
|
||||
.clk = "l3_div_ck",
|
||||
.addr = omap44xx_dss_dsi1_dma_addrs,
|
||||
.user = OCP_USER_SDMA,
|
||||
};
|
||||
@ -3785,7 +3786,7 @@ static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
|
||||
static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
|
||||
.master = &omap44xx_l3_main_2_hwmod,
|
||||
.slave = &omap44xx_dss_dsi2_hwmod,
|
||||
.clk = "dss_fck",
|
||||
.clk = "l3_div_ck",
|
||||
.addr = omap44xx_dss_dsi2_dma_addrs,
|
||||
.user = OCP_USER_SDMA,
|
||||
};
|
||||
@ -3821,7 +3822,7 @@ static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
|
||||
static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
|
||||
.master = &omap44xx_l3_main_2_hwmod,
|
||||
.slave = &omap44xx_dss_hdmi_hwmod,
|
||||
.clk = "dss_fck",
|
||||
.clk = "l3_div_ck",
|
||||
.addr = omap44xx_dss_hdmi_dma_addrs,
|
||||
.user = OCP_USER_SDMA,
|
||||
};
|
||||
@ -3857,7 +3858,7 @@ static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
|
||||
static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
|
||||
.master = &omap44xx_l3_main_2_hwmod,
|
||||
.slave = &omap44xx_dss_rfbi_hwmod,
|
||||
.clk = "dss_fck",
|
||||
.clk = "l3_div_ck",
|
||||
.addr = omap44xx_dss_rfbi_dma_addrs,
|
||||
.user = OCP_USER_SDMA,
|
||||
};
|
||||
@ -3893,7 +3894,7 @@ static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
|
||||
static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
|
||||
.master = &omap44xx_l3_main_2_hwmod,
|
||||
.slave = &omap44xx_dss_venc_hwmod,
|
||||
.clk = "dss_fck",
|
||||
.clk = "l3_div_ck",
|
||||
.addr = omap44xx_dss_venc_dma_addrs,
|
||||
.user = OCP_USER_SDMA,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user