omap2/3/4: ioremap omap_globals module
This is a clean-up patch towards dynamic allocation of IO space instead of using harcoded macros to calculate virtual addresses. Also update the sdrc, prcm and control module to allocate iospace dynamically Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com> Reviewed-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
committed by
Tony Lindgren
parent
e03d37d859
commit
b7ebb10b0a
@ -279,9 +279,19 @@ int omap2_cm_wait_idlest(void __iomem *reg, u32 mask, const char *name)
|
||||
|
||||
void __init omap2_set_globals_prcm(struct omap_globals *omap2_globals)
|
||||
{
|
||||
prm_base = omap2_globals->prm;
|
||||
cm_base = omap2_globals->cm;
|
||||
cm2_base = omap2_globals->cm2;
|
||||
/* Static mapping, never released */
|
||||
if (omap2_globals->prm) {
|
||||
prm_base = ioremap(omap2_globals->prm, SZ_8K);
|
||||
WARN_ON(!prm_base);
|
||||
}
|
||||
if (omap2_globals->cm) {
|
||||
cm_base = ioremap(omap2_globals->cm, SZ_8K);
|
||||
WARN_ON(!cm_base);
|
||||
}
|
||||
if (omap2_globals->cm2) {
|
||||
cm2_base = ioremap(omap2_globals->cm2, SZ_8K);
|
||||
WARN_ON(!cm2_base);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARCH_OMAP3
|
||||
|
Reference in New Issue
Block a user