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
@@ -119,8 +119,15 @@ int omap2_sdrc_get_params(unsigned long r,
|
||||
|
||||
void __init omap2_set_globals_sdrc(struct omap_globals *omap2_globals)
|
||||
{
|
||||
omap2_sdrc_base = omap2_globals->sdrc;
|
||||
omap2_sms_base = omap2_globals->sms;
|
||||
/* Static mapping, never released */
|
||||
if (omap2_globals->sdrc) {
|
||||
omap2_sdrc_base = ioremap(omap2_globals->sdrc, SZ_64K);
|
||||
WARN_ON(!omap2_sdrc_base);
|
||||
}
|
||||
if (omap2_globals->sms) {
|
||||
omap2_sms_base = ioremap(omap2_globals->sms, SZ_64K);
|
||||
WARN_ON(!omap2_sms_base);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user