diff options
author | Kuninori Morimoto | 2009-08-26 11:04:22 +0000 |
---|---|---|
committer | Paul Mundt | 2009-08-27 11:36:09 +0900 |
commit | b7056bc1943ec85084450e2f105650f837ae5cfc (patch) | |
tree | b3d4903373b610d1a3c8827e4aae7d7e6486dfd4 /arch/sh/boards | |
parent | b37c7c66f08df66ba7a8269b6d1af949ef8dbd95 (diff) |
sh: modify to enable boot for EcoVec24
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index b634a72da1e6..e555b9282498 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c @@ -19,14 +19,14 @@ #include <cpu/sh7724.h> /* - * Area Address Interface size BusWidth - * 0 0x0000_0000 ~ 0x03FF_FFFF FROM 64MB 16bit - * 1 0x0400_0000 ~ 0x07FF_FFFF Internal I/O 64MB 16/32bit - * 2 0x0800_0000 ~ 0x0BFF_FFFF DRAM 2 64MB 32bit - * 3 0x0C00_0000 ~ 0x0FFF_FFFF DRAM 3 64MB 32bit - * 4 0x1000_0000 ~ 0x13FF_FFFF DRAM 4 64MB 32bit - * 5 0x1400_0000 ~ 0x17FF_FFFF DRAM 5 64MB 32bit - * 6 0x1800_0000 ~ 0x1BFF_FFFF MFI 64MB 16bit + * Address Interface BusWidth + *----------------------------------------- + * 0x0000_0000 uboot 16bit + * 0x0004_0000 Linux romImage 16bit + * 0x0014_0000 MTD for Linux 16bit + * 0x0400_0000 Internal I/O 16/32bit + * 0x0800_0000 DRAM 32bit + * 0x1800_0000 MFI 16bit */ /* Heartbeat */ @@ -58,15 +58,11 @@ static struct platform_device heartbeat_device = { /* MTD */ static struct mtd_partition nor_flash_partitions[] = { { - .name = "uboot", + .name = "boot loader", .offset = 0, - .size = (256 * 1024), + .size = (5 * 1024 * 1024), .mask_flags = MTD_CAP_ROM, }, { - .name = "kernel", - .offset = MTDPART_OFS_APPEND, - .size = (2 * 1024 * 1024), - }, { .name = "free-area", .offset = MTDPART_OFS_APPEND, .size = MTDPART_SIZ_FULL, @@ -107,17 +103,16 @@ static int __init devices_setup(void) /* enable SCIFA0 */ gpio_request(GPIO_FN_SCIF0_TXD, NULL); gpio_request(GPIO_FN_SCIF0_RXD, NULL); - gpio_request(GPIO_FN_SCIF0_SCK, NULL); /* enable debug LED */ gpio_request(GPIO_PTG0, NULL); gpio_request(GPIO_PTG1, NULL); gpio_request(GPIO_PTG2, NULL); gpio_request(GPIO_PTG3, NULL); - gpio_direction_output(GPIO_PTT0, 0); - gpio_direction_output(GPIO_PTT1, 0); - gpio_direction_output(GPIO_PTT2, 0); - gpio_direction_output(GPIO_PTT3, 0); + gpio_direction_output(GPIO_PTG0, 0); + gpio_direction_output(GPIO_PTG1, 0); + gpio_direction_output(GPIO_PTG2, 0); + gpio_direction_output(GPIO_PTG3, 0); return platform_add_devices(ecovec_devices, ARRAY_SIZE(ecovec_devices)); |