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>
This commit is contained in:
Kuninori Morimoto
2009-08-26 11:04:22 +00:00
committed by Paul Mundt
parent b37c7c66f0
commit b7056bc194
2 changed files with 28 additions and 25 deletions

View File

@ -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,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));