blob: d1a0b628f1a2248264685f42dbe6e4cfba4a23a8 [file] [log] [blame]
Hideyuki Sano1a31ca42012-06-27 10:35:35 +09001/*
2 * Configuation settings for the bonito board
3 *
4 * Copyright (C) 2012 Renesas Solutions Corp.
5 *
6 * See file CREDITS for list of people who contributed to this
7 * project.
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 * MA 02111-1307 USA
23 */
24
25#ifndef __ARMADILLO_800EVA_H
26#define __ARMADILLO_800EVA_H
27
28#undef DEBUG
29#define CONFIG_ARMV7
30#define CONFIG_R8A7740
31#define CONFIG_RMOBILE
32#define CONFIG_RMOBILE_BOARD_STRING "Armadillo-800EVA Board\n"
33#define CONFIG_SH_GPIO_PFC
34
35#include <asm/arch/rmobile.h>
36
37#define CONFIG_CMD_MEMORY
38#define CONFIG_CMD_DFL
39#define CONFIG_CMD_SDRAM
40#define CONFIG_CMD_RUN
41#define CONFIG_CMD_LOADS
42#define CONFIG_CMD_NET
43#define CONFIG_CMD_MII
44#define CONFIG_CMD_PING
45#define CONFIG_CMD_DHCP
Nobuhiro Iwamatsuca2fbea2012-08-09 15:39:33 +090046#define CONFIG_CMD_NFS
47#define CONFIG_CMD_BOOTZ
Nobuhiro Iwamatsu09a3be02012-08-09 15:38:47 +090048
49#define CONFIG_OF_LIBFDT
Hideyuki Sano1a31ca42012-06-27 10:35:35 +090050#define BOARD_LATE_INIT
51
52#define CONFIG_BAUDRATE 115200
53#define CONFIG_BOOTDELAY 3
54#define CONFIG_BOOTARGS ""
55
56#define CONFIG_VERSION_VARIABLE
57#undef CONFIG_SHOW_BOOT_PROGRESS
58
59#define CONFIG_ARCH_CPU_INIT
60#define CONFIG_DISPLAY_CPUINFO
61#define CONFIG_SYS_NO_L2CACHE
62#define CONFIG_DISPLAY_BOARDINFO
63#define CONFIG_BOARD_EARLY_INIT_F
64#define CONFIG_USE_ARCH_MEMSET
65#define CONFIG_USE_ARCH_MEMCPY
66#define CONFIG_TMU_TIMER
67#define CONFIG_SYS_DCACHE_OFF
68
69/* STACK */
70#define CONFIG_SYS_INIT_SP_ADDR 0xE8083000
71#define STACK_AREA_SIZE 0xC000
72#define LOW_LEVEL_MERAM_STACK \
73 (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)
74
75/* MEMORY */
76#define ARMADILLO_800EVA_SDRAM_BASE 0x40000000
77#define ARMADILLO_800EVA_SDRAM_SIZE (512 * 1024 * 1024)
78
79#define CONFIG_SYS_LONGHELP
80#define CONFIG_SYS_PROMPT "=> "
81#define CONFIG_SYS_CBSIZE 256
82#define CONFIG_SYS_PBSIZE 256
83#define CONFIG_SYS_MAXARGS 16
84#define CONFIG_SYS_BARGSIZE 512
85#define CONFIG_SYS_BAUDRATE_TABLE { 115200 }
86
87/* SCIF */
88#define CONFIG_SCIF_CONSOLE
89#define CONFIG_CONS_SCIF1
90#define SCIF0_BASE 0xe6c40000
91#define SCIF1_BASE 0xe6c50000
92#define SCIF2_BASE 0xe6c60000
93#define SCIF4_BASE 0xe6c80000
94#define CONFIG_SCIF_A
95#undef CONFIG_SYS_CONSOLE_INFO_QUIET
96#undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
97#undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
98
99#define CONFIG_SYS_MEMTEST_START (ARMADILLO_800EVA_SDRAM_BASE)
100#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \
101 504 * 1024 * 1024)
102#undef CONFIG_SYS_ALT_MEMTEST
103#undef CONFIG_SYS_MEMTEST_SCRATCH
104#undef CONFIG_SYS_LOADS_BAUD_CHANGE
105
106#define CONFIG_SYS_SDRAM_BASE (ARMADILLO_800EVA_SDRAM_BASE)
107#define CONFIG_SYS_SDRAM_SIZE (ARMADILLO_800EVA_SDRAM_SIZE)
108#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + \
109 64 * 1024 * 1024)
110#define CONFIG_NR_DRAM_BANKS 1
111
112#define CONFIG_SYS_MONITOR_BASE 0x00000000
113#define CONFIG_SYS_MONITOR_LEN (256 * 1024)
114#define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
115#define CONFIG_SYS_GBL_DATA_SIZE (256)
116#define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
117#define CONFIG_SYS_TEXT_BASE 0xE80C0000
118
119/* FLASH */
120#define CONFIG_SYS_NO_FLASH
121#define CONFIG_SYS_FLASH_CFI
122#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
123#define CONFIG_SYS_FLASH_BASE 0x00000000
124#define CONFIG_SYS_MAX_FLASH_SECT 512
125#define CONFIG_SYS_MAX_FLASH_BANKS 1
126#define CONFIG_SYS_FLASH_BANKS_LIST { (CONFIG_SYS_FLASH_BASE) }
127
128#define CONFIG_SYS_FLASH_ERASE_TOUT 3000
129#define CONFIG_SYS_FLASH_WRITE_TOUT 3000
130#define CONFIG_SYS_FLASH_LOCK_TOUT 3000
131#define CONFIG_SYS_FLASH_UNLOCK_TOUT 3000
132
133/* ENV setting */
134#define CONFIG_ENV_IS_IN_FLASH
135#define CONFIG_ENV_OVERWRITE 1
136#define CONFIG_ENV_SECT_SIZE (128 * 1024)
137#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + \
138 CONFIG_SYS_MONITOR_LEN)
139#define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR)
140#define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
141#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
142
143/* SH Ether */
144#define CONFIG_NET_MULTI
145#define CONFIG_SH_ETHER
146#define CONFIG_SH_ETHER_USE_PORT 0
147#define CONFIG_SH_ETHER_PHY_ADDR 0x0
148#define CONFIG_SH_ETHER_BASE_ADDR 0xe9a00000
149#define CONFIG_SH_ETHER_SH7734_MII (0x01)
150#define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
151#define CONFIG_PHYLIB
152#define CONFIG_PHY_SMSC
153#define CONFIG_BITBANGMII
154#define CONFIG_BITBANGMII_MULTI
155
156/* Board Clock */
157#define CONFIG_SYS_CLK_FREQ 50000000
158#define CONFIG_SYS_TMU_CLK_DIV 4
159#define CONFIG_SYS_HZ 1000
160
161#endif /* __ARMADILLO_800EVA_H */