Commit 124dcf79 authored by Tony Lindgren's avatar Tony Lindgren

Merge branch 'omap-for-v4.14/fixes' into omap-for-v4.15/fixes-v2

parents 2db57789 6301d584
...@@ -68,14 +68,17 @@ void __init omap2_set_globals_cm(void __iomem *cm, void __iomem *cm2) ...@@ -68,14 +68,17 @@ void __init omap2_set_globals_cm(void __iomem *cm, void __iomem *cm2)
int cm_split_idlest_reg(struct clk_omap_reg *idlest_reg, s16 *prcm_inst, int cm_split_idlest_reg(struct clk_omap_reg *idlest_reg, s16 *prcm_inst,
u8 *idlest_reg_id) u8 *idlest_reg_id)
{ {
int ret;
if (!cm_ll_data->split_idlest_reg) { if (!cm_ll_data->split_idlest_reg) {
WARN_ONCE(1, "cm: %s: no low-level function defined\n", WARN_ONCE(1, "cm: %s: no low-level function defined\n",
__func__); __func__);
return -EINVAL; return -EINVAL;
} }
return cm_ll_data->split_idlest_reg(idlest_reg, prcm_inst, ret = cm_ll_data->split_idlest_reg(idlest_reg, prcm_inst,
idlest_reg_id); idlest_reg_id);
*prcm_inst -= cm_base.offset;
return ret;
} }
/** /**
...@@ -337,6 +340,7 @@ int __init omap2_cm_base_init(void) ...@@ -337,6 +340,7 @@ int __init omap2_cm_base_init(void)
if (mem) { if (mem) {
mem->pa = res.start + data->offset; mem->pa = res.start + data->offset;
mem->va = data->mem + data->offset; mem->va = data->mem + data->offset;
mem->offset = data->offset;
} }
data->np = np; data->np = np;
......
...@@ -1646,6 +1646,7 @@ static struct omap_hwmod omap3xxx_mmc3_hwmod = { ...@@ -1646,6 +1646,7 @@ static struct omap_hwmod omap3xxx_mmc3_hwmod = {
.main_clk = "mmchs3_fck", .main_clk = "mmchs3_fck",
.prcm = { .prcm = {
.omap2 = { .omap2 = {
.module_offs = CORE_MOD,
.prcm_reg_id = 1, .prcm_reg_id = 1,
.module_bit = OMAP3430_EN_MMC3_SHIFT, .module_bit = OMAP3430_EN_MMC3_SHIFT,
.idlest_reg_id = 1, .idlest_reg_id = 1,
......
...@@ -528,6 +528,7 @@ struct omap_prcm_irq_setup { ...@@ -528,6 +528,7 @@ struct omap_prcm_irq_setup {
struct omap_domain_base { struct omap_domain_base {
u32 pa; u32 pa;
void __iomem *va; void __iomem *va;
s16 offset;
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment