ARM: OMAP: Introduce omap_globals and prcm access functions for multi-omap
New struct omap_globals contains the omap processor specific module bases. Use omap_globals to set the various base addresses to make detecting omap chip type simpler. Also introduce OMAP1_IO_ADDRESS and OMAP2_IO_ADDRESS for future multi-omap patches. Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
@@ -18,13 +18,11 @@
|
||||
#include <asm/arch/sdrc.h>
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
extern unsigned long omap2_sdrc_base;
|
||||
extern unsigned long omap2_sms_base;
|
||||
extern void __iomem *omap2_sdrc_base;
|
||||
extern void __iomem *omap2_sms_base;
|
||||
|
||||
#define OMAP_SDRC_REGADDR(reg) \
|
||||
(void __iomem *)IO_ADDRESS(omap2_sdrc_base + (reg))
|
||||
#define OMAP_SMS_REGADDR(reg) \
|
||||
(void __iomem *)IO_ADDRESS(omap2_sms_base + (reg))
|
||||
#define OMAP_SDRC_REGADDR(reg) (omap2_sdrc_base + (reg))
|
||||
#define OMAP_SMS_REGADDR(reg) (omap2_sms_base + (reg))
|
||||
|
||||
/* SDRC global register get/set */
|
||||
|
||||
|
Reference in New Issue
Block a user