aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--arch/sh/boards/mach-ecovec24/setup.c33
-rw-r--r--arch/sh/configs/ecovec24_defconfig20
2 files changed, 28 insertions, 25 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));
diff --git a/arch/sh/configs/ecovec24_defconfig b/arch/sh/configs/ecovec24_defconfig
index 6d983f6864ca..2050a76683c3 100644
--- a/arch/sh/configs/ecovec24_defconfig
+++ b/arch/sh/configs/ecovec24_defconfig
@@ -1,7 +1,7 @@
1# 1#
2# Automatically generated make config: don't edit 2# Automatically generated make config: don't edit
3# Linux kernel version: 2.6.31-rc6 3# Linux kernel version: 2.6.31-rc7
4# Tue Aug 18 11:32:44 2009 4# Wed Aug 26 09:09:07 2009
5# 5#
6CONFIG_SUPERH=y 6CONFIG_SUPERH=y
7CONFIG_SUPERH32=y 7CONFIG_SUPERH32=y
@@ -151,7 +151,7 @@ CONFIG_IOSCHED_CFQ=y
151CONFIG_DEFAULT_CFQ=y 151CONFIG_DEFAULT_CFQ=y
152# CONFIG_DEFAULT_NOOP is not set 152# CONFIG_DEFAULT_NOOP is not set
153CONFIG_DEFAULT_IOSCHED="cfq" 153CONFIG_DEFAULT_IOSCHED="cfq"
154# CONFIG_FREEZER is not set 154CONFIG_FREEZER=y
155 155
156# 156#
157# System type 157# System type
@@ -185,6 +185,7 @@ CONFIG_ARCH_SHMOBILE=y
185# CONFIG_CPU_SUBTYPE_SH4_202 is not set 185# CONFIG_CPU_SUBTYPE_SH4_202 is not set
186# CONFIG_CPU_SUBTYPE_SH7723 is not set 186# CONFIG_CPU_SUBTYPE_SH7723 is not set
187CONFIG_CPU_SUBTYPE_SH7724=y 187CONFIG_CPU_SUBTYPE_SH7724=y
188# CONFIG_CPU_SUBTYPE_SH7757 is not set
188# CONFIG_CPU_SUBTYPE_SH7763 is not set 189# CONFIG_CPU_SUBTYPE_SH7763 is not set
189# CONFIG_CPU_SUBTYPE_SH7770 is not set 190# CONFIG_CPU_SUBTYPE_SH7770 is not set
190# CONFIG_CPU_SUBTYPE_SH7780 is not set 191# CONFIG_CPU_SUBTYPE_SH7780 is not set
@@ -314,7 +315,7 @@ CONFIG_ZERO_PAGE_OFFSET=0x00001000
314CONFIG_BOOT_LINK_OFFSET=0x00800000 315CONFIG_BOOT_LINK_OFFSET=0x00800000
315CONFIG_ENTRY_OFFSET=0x00001000 316CONFIG_ENTRY_OFFSET=0x00001000
316CONFIG_CMDLINE_BOOL=y 317CONFIG_CMDLINE_BOOL=y
317CONFIG_CMDLINE="console=tty0, console=ttySC3,115200 root=/dev/nfs ip=dhcp mem=120M memchunk.vpu=4m" 318CONFIG_CMDLINE="console=tty0, console=ttySC0,115200 root=/dev/nfs ip=dhcp mem=120M memchunk.vpu=4m"
318 319
319# 320#
320# Bus options 321# Bus options
@@ -333,7 +334,13 @@ CONFIG_BINFMT_ELF=y
333# 334#
334# Power management options (EXPERIMENTAL) 335# Power management options (EXPERIMENTAL)
335# 336#
336# CONFIG_PM is not set 337CONFIG_PM=y
338# CONFIG_PM_DEBUG is not set
339CONFIG_PM_SLEEP=y
340CONFIG_SUSPEND=y
341CONFIG_SUSPEND_FREEZER=y
342# CONFIG_HIBERNATION is not set
343CONFIG_PM_RUNTIME=y
337# CONFIG_CPU_IDLE is not set 344# CONFIG_CPU_IDLE is not set
338CONFIG_NET=y 345CONFIG_NET=y
339 346
@@ -641,7 +648,7 @@ CONFIG_MII=y
641# CONFIG_AX88796 is not set 648# CONFIG_AX88796 is not set
642# CONFIG_STNIC is not set 649# CONFIG_STNIC is not set
643CONFIG_SH_ETH=y 650CONFIG_SH_ETH=y
644CONFIG_SMC91X=y 651# CONFIG_SMC91X is not set
645# CONFIG_ENC28J60 is not set 652# CONFIG_ENC28J60 is not set
646# CONFIG_ETHOC is not set 653# CONFIG_ETHOC is not set
647# CONFIG_SMC911X is not set 654# CONFIG_SMC911X is not set
@@ -1048,6 +1055,7 @@ CONFIG_USB=y
1048CONFIG_USB_DEVICEFS=y 1055CONFIG_USB_DEVICEFS=y
1049CONFIG_USB_DEVICE_CLASS=y 1056CONFIG_USB_DEVICE_CLASS=y
1050# CONFIG_USB_DYNAMIC_MINORS is not set 1057# CONFIG_USB_DYNAMIC_MINORS is not set
1058# CONFIG_USB_SUSPEND is not set
1051# CONFIG_USB_OTG is not set 1059# CONFIG_USB_OTG is not set
1052# CONFIG_USB_OTG_WHITELIST is not set 1060# CONFIG_USB_OTG_WHITELIST is not set
1053# CONFIG_USB_OTG_BLACKLIST_HUB is not set 1061# CONFIG_USB_OTG_BLACKLIST_HUB is not set