From b7056bc1943ec85084450e2f105650f837ae5cfc Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 26 Aug 2009 11:04:22 +0000 Subject: sh: modify to enable boot for EcoVec24 Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt --- arch/sh/boards/mach-ecovec24/setup.c | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'arch/sh/boards') diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index b634a72da1e..e555b928249 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c @@ -19,14 +19,14 @@ #include /* - * 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,14 +58,10 @@ 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, @@ -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)); -- cgit v1.2.3