blob: 2e2a9a7a99a32b3e4dd33cbc7462517d81438913 [file] [log] [blame]
Nobuhiro Iwamatsu45befad2011-11-15 12:29:06 +09001/*
2 * Configuation settings for the Renesas Solutions ECOVEC board
3 *
4 * Copyright (C) 2009 - 2011 Renesas Solutions Corp.
5 * Copyright (C) 2009 Kuninori Morimoto <morimoto.kuninori@renesas.com>
6 * Copyright (C) 2010, 2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
7 *
8 * See file CREDITS for list of people who contributed to this
9 * project.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 * MA 02111-1307 USA
25 */
26
27#ifndef __ECOVEC_H
28#define __ECOVEC_H
29
30/*
31 * Address Interface BusWidth
32 *-----------------------------------------
33 * 0x0000_0000 U-Boot 16bit
34 * 0x0004_0000 Linux romImage 16bit
35 * 0x0014_0000 MTD for Linux 16bit
36 * 0x0400_0000 Internal I/O 16/32bit
37 * 0x0800_0000 DRAM 32bit
38 * 0x1800_0000 MFI 16bit
39 */
40
41#undef DEBUG
42#define CONFIG_SH 1
43#define CONFIG_SH4 1
44#define CONFIG_SH4A 1
45#define CONFIG_CPU_SH7724 1
46#define BOARD_LATE_INIT 1
47#define CONFIG_ECOVEC 1
48
49#define CONFIG_ECOVEC_ROMIMAGE_ADDR 0xA0040000
50#define CONFIG_SYS_TEXT_BASE 0x8FFC0000
51
52#define CONFIG_CMD_FLASH
53#define CONFIG_CMD_MEMORY
54#define CONFIG_CMD_NET
55#define CONFIG_CMD_PING
56#define CONFIG_CMD_MII
57#define CONFIG_CMD_NFS
58#define CONFIG_CMD_SDRAM
59#define CONFIG_CMD_ENV
60#define CONFIG_CMD_USB
61#define CONFIG_CMD_FAT
62#define CONFIG_CMD_EXT2
63#define CONFIG_CMD_SAVEENV
64
65#define CONFIG_USB_STORAGE
66#define CONFIG_DOS_PARTITION
67
68#define CONFIG_BAUDRATE 115200
69#define CONFIG_BOOTDELAY 3
70#define CONFIG_BOOTARGS "console=ttySC0,115200"
71
72#define CONFIG_VERSION_VARIABLE
73#undef CONFIG_SHOW_BOOT_PROGRESS
74
75/* I2C */
76#define CONFIG_CMD_I2C
77#define CONFIG_SH_I2C 1
78#define CONFIG_HARD_I2C 1
79#define CONFIG_I2C_MULTI_BUS 1
80#define CONFIG_SYS_MAX_I2C_BUS 2
81#define CONFIG_SYS_I2C_MODULE 1
82#define CONFIG_SYS_I2C_SPEED 100000 /* 100 kHz */
83#define CONFIG_SYS_I2C_SLAVE 0x7F
84#define CONFIG_SH_I2C_DATA_HIGH 4
85#define CONFIG_SH_I2C_DATA_LOW 5
86#define CONFIG_SH_I2C_CLOCK 41666666
87#define CONFIG_SH_I2C_BASE0 0xA4470000
88#define CONFIG_SH_I2C_BASE1 0xA4750000
89
90/* Ether */
91#define CONFIG_NET_MULTI 1
92#define CONFIG_SH_ETHER 1
93#define CONFIG_SH_ETHER_USE_PORT (0)
94#define CONFIG_SH_ETHER_PHY_ADDR (0x1f)
95#define CONFIG_PHYLIB
96#define CONFIG_BITBANGMII
97#define CONFIG_BITBANGMII_MULTI
98
99/* USB / R8A66597 */
100#define CONFIG_USB_R8A66597_HCD
101#define CONFIG_R8A66597_BASE_ADDR 0xA4D80000
102#define CONFIG_R8A66597_XTAL 0x0000 /* 12MHz */
103#define CONFIG_R8A66597_LDRV 0x8000 /* 3.3V */
104#define CONFIG_R8A66597_ENDIAN 0x0000 /* little */
105#define CONFIG_SUPERH_ON_CHIP_R8A66597
106
107/* undef to save memory */
108#define CONFIG_SYS_LONGHELP
109/* Monitor Command Prompt */
110#define CONFIG_SYS_PROMPT "=> "
111/* Buffer size for input from the Console */
112#define CONFIG_SYS_CBSIZE 256
113/* Buffer size for Console output */
114#define CONFIG_SYS_PBSIZE 256
115/* max args accepted for monitor commands */
116#define CONFIG_SYS_MAXARGS 16
117/* Buffer size for Boot Arguments passed to kernel */
118#define CONFIG_SYS_BARGSIZE 512
119/* List of legal baudrate settings for this board */
120#define CONFIG_SYS_BAUDRATE_TABLE { 115200 }
121
122/* SCIF */
123#define CONFIG_SCIF_CONSOLE 1
124#define CONFIG_SCIF 1
125#define CONFIG_CONS_SCIF0 1
126
127/* Suppress display of console information at boot */
128#undef CONFIG_SYS_CONSOLE_INFO_QUIET
129#undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
130#undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
131
132/* SDRAM */
133#define CONFIG_SYS_SDRAM_BASE (0x88000000)
134#define CONFIG_SYS_SDRAM_SIZE (256 * 1024 * 1024)
135#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 16 * 1024 * 1024)
136
137#define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE)
138#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 200 * 1024 * 1024)
139/* Enable alternate, more extensive, memory test */
140#undef CONFIG_SYS_ALT_MEMTEST
141/* Scratch address used by the alternate memory test */
142#undef CONFIG_SYS_MEMTEST_SCRATCH
143
144/* Enable temporary baudrate change while serial download */
145#undef CONFIG_SYS_LOADS_BAUD_CHANGE
146
147/* FLASH */
148#define CONFIG_FLASH_CFI_DRIVER 1
149#define CONFIG_SYS_FLASH_CFI
150#undef CONFIG_SYS_FLASH_QUIET_TEST
151#define CONFIG_SYS_FLASH_EMPTY_INFO
152#define CONFIG_SYS_FLASH_BASE (0xA0000000)
153#define CONFIG_SYS_MAX_FLASH_SECT 512
154
155/* if you use all NOR Flash , you change dip-switch. Please see Manual. */
156#define CONFIG_SYS_MAX_FLASH_BANKS 1
157#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
158
159/* Timeout for Flash erase operations (in ms) */
160#define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000)
161/* Timeout for Flash write operations (in ms) */
162#define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000)
163/* Timeout for Flash set sector lock bit operations (in ms) */
164#define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000)
165/* Timeout for Flash clear lock bit operations (in ms) */
166#define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000)
167
168/*
169 * Use hardware flash sectors protection instead
170 * of U-Boot software protection
171 */
172#undef CONFIG_SYS_FLASH_PROTECTION
173#undef CONFIG_SYS_DIRECT_FLASH_TFTP
174
175/* Address of u-boot image in Flash (NOT run time address in SDRAM) ?!? */
176#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE)
177/* Monitor size */
178#define CONFIG_SYS_MONITOR_LEN (256 * 1024)
179/* Size of DRAM reserved for malloc() use */
180#define CONFIG_SYS_MALLOC_LEN (256 * 1024)
181/* size in bytes reserved for initial data */
182#define CONFIG_SYS_GBL_DATA_SIZE (256)
183#define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
184
185/* ENV setting */
186#define CONFIG_ENV_IS_IN_FLASH
187#define CONFIG_ENV_OVERWRITE 1
188#define CONFIG_ENV_SECT_SIZE (128 * 1024)
189#define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
190#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
191/* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
192#define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
193#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
194
195/* Board Clock */
196#define CONFIG_SYS_CLK_FREQ 41666666
197#define CONFIG_SYS_TMU_CLK_DIV 4
198#define CONFIG_SYS_HZ 1000
199
200#endif /* __ECOVEC_H */