aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-ecovec24/setup.c
diff options
context:
space:
mode:
authorKuninori Morimoto <morimoto.kuninori@renesas.com>2009-08-26 07:04:22 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-26 22:36:09 -0400
commitb7056bc1943ec85084450e2f105650f837ae5cfc (patch)
treeb3d4903373b610d1a3c8827e4aae7d7e6486dfd4 /arch/sh/boards/mach-ecovec24/setup.c
parentb37c7c66f08df66ba7a8269b6d1af949ef8dbd95 (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/mach-ecovec24/setup.c')
-rw-r--r--arch/sh/boards/mach-ecovec24/setup.c33
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 @@
19#include <cpu/sh7724.h> 19#include <cpu/sh7724.h>
20 20
21/* 21/*
22 * Area Address Interface size BusWidth 22 * Address Interface BusWidth
23 * 0 0x0000_0000 ~ 0x03FF_FFFF FROM 64MB 16bit 23 *-----------------------------------------
24 * 1 0x0400_0000 ~ 0x07FF_FFFF Internal I/O 64MB 16/32bit 24 * 0x0000_0000 uboot 16bit
25 * 2 0x0800_0000 ~ 0x0BFF_FFFF DRAM 2 64MB 32bit 25 * 0x0004_0000 Linux romImage 16bit
26 * 3 0x0C00_0000 ~ 0x0FFF_FFFF DRAM 3 64MB 32bit 26 * 0x0014_0000 MTD for Linux 16bit
27 * 4 0x1000_0000 ~ 0x13FF_FFFF DRAM 4 64MB 32bit 27 * 0x0400_0000 Internal I/O 16/32bit
28 * 5 0x1400_0000 ~ 0x17FF_FFFF DRAM 5 64MB 32bit 28 * 0x0800_0000 DRAM 32bit
29 * 6 0x1800_0000 ~ 0x1BFF_FFFF MFI 64MB 16bit 29 * 0x1800_0000 MFI 16bit
30 */ 30 */
31 31
32/* Heartbeat */ 32/* Heartbeat */
@@ -58,15 +58,11 @@ static struct platform_device heartbeat_device = {
58/* MTD */ 58/* MTD */
59static struct mtd_partition nor_flash_partitions[] = { 59static struct mtd_partition nor_flash_partitions[] = {
60 { 60 {
61 .name = "uboot", 61 .name = "boot loader",
62 .offset = 0, 62 .offset = 0,
63 .size = (256 * 1024), 63 .size = (5 * 1024 * 1024),
64 .mask_flags = MTD_CAP_ROM, 64 .mask_flags = MTD_CAP_ROM,
65 }, { 65 }, {
66 .name = "kernel",
67 .offset = MTDPART_OFS_APPEND,
68 .size = (2 * 1024 * 1024),
69 }, {
70 .name = "free-area", 66 .name = "free-area",
71 .offset = MTDPART_OFS_APPEND, 67 .offset = MTDPART_OFS_APPEND,
72 .size = MTDPART_SIZ_FULL, 68 .size = MTDPART_SIZ_FULL,
@@ -107,17 +103,16 @@ static int __init devices_setup(void)
107 /* enable SCIFA0 */ 103 /* enable SCIFA0 */
108 gpio_request(GPIO_FN_SCIF0_TXD, NULL); 104 gpio_request(GPIO_FN_SCIF0_TXD, NULL);
109 gpio_request(GPIO_FN_SCIF0_RXD, NULL); 105 gpio_request(GPIO_FN_SCIF0_RXD, NULL);
110 gpio_request(GPIO_FN_SCIF0_SCK, NULL);
111 106
112 /* enable debug LED */ 107 /* enable debug LED */
113 gpio_request(GPIO_PTG0, NULL); 108 gpio_request(GPIO_PTG0, NULL);
114 gpio_request(GPIO_PTG1, NULL); 109 gpio_request(GPIO_PTG1, NULL);
115 gpio_request(GPIO_PTG2, NULL); 110 gpio_request(GPIO_PTG2, NULL);
116 gpio_request(GPIO_PTG3, NULL); 111 gpio_request(GPIO_PTG3, NULL);
117 gpio_direction_output(GPIO_PTT0, 0); 112 gpio_direction_output(GPIO_PTG0, 0);
118 gpio_direction_output(GPIO_PTT1, 0); 113 gpio_direction_output(GPIO_PTG1, 0);
119 gpio_direction_output(GPIO_PTT2, 0); 114 gpio_direction_output(GPIO_PTG2, 0);
120 gpio_direction_output(GPIO_PTT3, 0); 115 gpio_direction_output(GPIO_PTG3, 0);
121 116
122 return platform_add_devices(ecovec_devices, 117 return platform_add_devices(ecovec_devices,
123 ARRAY_SIZE(ecovec_devices)); 118 ARRAY_SIZE(ecovec_devices));