diff options
| author | Hemant Pedanekar <hemantp@ti.com> | 2011-02-16 08:31:39 -0800 | 
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2011-02-16 08:31:39 -0800 | 
| commit | 01001712c96f82e6317b1e09729d8fc4bcc66957 (patch) | |
| tree | b75376536771c5dd5398733b82a509bcacba8bc8 /arch/arm/mach-omap2/common.c | |
| parent | 4bd7be22f4b25fc87e236a29da3a625621699074 (diff) | |
| download | olio-linux-3.10-01001712c96f82e6317b1e09729d8fc4bcc66957.tar.xz olio-linux-3.10-01001712c96f82e6317b1e09729d8fc4bcc66957.zip  | |
TI816X: Update common OMAP machine specific sources
This patch updates the common machine specific source files with support for
TI816X.
Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/common.c')
| -rw-r--r-- | arch/arm/mach-omap2/common.c | 21 | 
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c index 778929f7e92..79fb948f814 100644 --- a/arch/arm/mach-omap2/common.c +++ b/arch/arm/mach-omap2/common.c @@ -108,6 +108,27 @@ void __init omap3_map_io(void)  	omap2_set_globals_3xxx();  	omap34xx_map_common_io();  } + +/* + * Adjust TAP register base such that omap3_check_revision accesses the correct + * TI816X register for checking device ID (it adds 0x204 to tap base while + * TI816X DEVICE ID register is at offset 0x600 from control base). + */ +#define TI816X_TAP_BASE		(TI816X_CTRL_BASE + \ +				TI816X_CONTROL_DEVICE_ID - 0x204) + +static struct omap_globals ti816x_globals = { +	.class  = OMAP343X_CLASS, +	.tap    = OMAP2_L4_IO_ADDRESS(TI816X_TAP_BASE), +	.ctrl   = TI816X_CTRL_BASE, +	.prm    = TI816X_PRCM_BASE, +	.cm     = TI816X_PRCM_BASE, +}; + +void __init omap2_set_globals_ti816x(void) +{ +	__omap2_set_globals(&ti816x_globals); +}  #endif  #if defined(CONFIG_ARCH_OMAP4)  |