diff options
author | Hemant Pedanekar <hemantp@ti.com> | 2011-12-13 13:46:44 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-12-13 13:46:44 -0500 |
commit | a920360f038e976e7a86b002e209402da20e9147 (patch) | |
tree | a48a1b7a2c7efaab8e585cafdf0268a468858cb3 /arch/arm/mach-omap2/board-ti8168evm.c | |
parent | ec023e46f7e86acb04fef5bdd1e9465f5fc39894 (diff) |
ARM: OMAP: TI81XX: Prepare for addition of TI814X support
This patch updates existing macros, functions used for TI816X, to enable
addition of other SoCs belonging to TI81XX family (e.g., TI814X).
The approach taken is to use TI81XX/ti81xx for code/data going to be common
across all TI81XX devices.
cpu_is_ti81xx() is introduced to handle code common across TI81XX devices.
In addition, ti8168_evm_map_io() is now replaced with ti81xx_map_io() and moved
in mach-omap2/common.c as same will be used for TI814X and is not board
specific.
Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-ti8168evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-ti8168evm.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c index 8402b39b2840..b236fcc023ac 100644 --- a/arch/arm/mach-omap2/board-ti8168evm.c +++ b/arch/arm/mach-omap2/board-ti8168evm.c | |||
@@ -35,17 +35,12 @@ static void __init ti8168_evm_init(void) | |||
35 | omap_board_config_size = ARRAY_SIZE(ti8168_evm_config); | 35 | omap_board_config_size = ARRAY_SIZE(ti8168_evm_config); |
36 | } | 36 | } |
37 | 37 | ||
38 | static void __init ti8168_evm_map_io(void) | ||
39 | { | ||
40 | omapti816x_map_common_io(); | ||
41 | } | ||
42 | |||
43 | MACHINE_START(TI8168EVM, "ti8168evm") | 38 | MACHINE_START(TI8168EVM, "ti8168evm") |
44 | /* Maintainer: Texas Instruments */ | 39 | /* Maintainer: Texas Instruments */ |
45 | .atag_offset = 0x100, | 40 | .atag_offset = 0x100, |
46 | .map_io = ti8168_evm_map_io, | 41 | .map_io = ti81xx_map_io, |
47 | .init_early = ti816x_init_early, | 42 | .init_early = ti81xx_init_early, |
48 | .init_irq = ti816x_init_irq, | 43 | .init_irq = ti81xx_init_irq, |
49 | .timer = &omap3_timer, | 44 | .timer = &omap3_timer, |
50 | .init_machine = ti8168_evm_init, | 45 | .init_machine = ti8168_evm_init, |
51 | MACHINE_END | 46 | MACHINE_END |