aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/realview_eb.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2008-04-18 17:43:10 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2008-04-18 17:43:10 -0400
commita44ddfd5bf5354281eebd0f0ae0d6dcf8818fc5c (patch)
tree9f377ae5af5ab2d1ec802dde4b3c2451b197b649 /arch/arm/mach-realview/realview_eb.c
parent073b6ff3b94c4737c91c45ed0f0c4d40cf1cb1c8 (diff)
RealView: Move the flash definitions out of platform.h
This patch moves the patch definitions into board-eb.h and realview_eb.c (from core.c) as they are different on the PB11MPCore and PB1176 platforms. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-realview/realview_eb.c')
-rw-r--r--arch/arm/mach-realview/realview_eb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c
index 6848e5182994..860e3ca833ed 100644
--- a/arch/arm/mach-realview/realview_eb.c
+++ b/arch/arm/mach-realview/realview_eb.c
@@ -223,6 +223,11 @@ static struct amba_device *amba_devs[] __initdata = {
223/* 223/*
224 * RealView EB platform devices 224 * RealView EB platform devices
225 */ 225 */
226static struct resource realview_eb_flash_resource = {
227 .start = REALVIEW_EB_FLASH_BASE,
228 .end = REALVIEW_EB_FLASH_BASE + REALVIEW_EB_FLASH_SIZE - 1,
229 .flags = IORESOURCE_MEM,
230};
226 231
227static struct resource realview_eb_eth_resources[] = { 232static struct resource realview_eb_eth_resources[] = {
228 [0] = { 233 [0] = {
@@ -362,7 +367,7 @@ static void __init realview_eb_init(void)
362 367
363 clk_register(&realview_clcd_clk); 368 clk_register(&realview_clcd_clk);
364 369
365 platform_device_register(&realview_flash_device); 370 realview_flash_register(&realview_eb_flash_resource, 1);
366 platform_device_register(&realview_i2c_device); 371 platform_device_register(&realview_i2c_device);
367 eth_device_register(); 372 eth_device_register();
368 373