1 /*
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
46 #define CONFIG_CMD_NFS
47 #define CONFIG_CMD_BOOTZ
48 
49 #define CONFIG_OF_LIBFDT
50 #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_DISPLAY_BOARDINFO
62 #define CONFIG_BOARD_EARLY_INIT_F
63 #define CONFIG_USE_ARCH_MEMSET
64 #define CONFIG_USE_ARCH_MEMCPY
65 #define CONFIG_TMU_TIMER
66 #define CONFIG_SYS_DCACHE_OFF
67 
68 /* STACK */
69 #define CONFIG_SYS_INIT_SP_ADDR		0xE8083000
70 #define STACK_AREA_SIZE				0xC000
71 #define LOW_LEVEL_MERAM_STACK	\
72 		(CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)
73 
74 /* MEMORY */
75 #define ARMADILLO_800EVA_SDRAM_BASE	0x40000000
76 #define ARMADILLO_800EVA_SDRAM_SIZE	(512 * 1024 * 1024)
77 
78 #define CONFIG_SYS_LONGHELP
79 #define CONFIG_SYS_PROMPT		"=> "
80 #define CONFIG_SYS_CBSIZE		256
81 #define CONFIG_SYS_PBSIZE		256
82 #define CONFIG_SYS_MAXARGS		16
83 #define CONFIG_SYS_BARGSIZE		512
84 #define CONFIG_SYS_BAUDRATE_TABLE	{ 115200 }
85 
86 /* SCIF */
87 #define CONFIG_SCIF_CONSOLE
88 #define CONFIG_CONS_SCIF1
89 #define SCIF0_BASE		0xe6c40000
90 #define SCIF1_BASE		0xe6c50000
91 #define SCIF2_BASE		0xe6c60000
92 #define SCIF4_BASE		0xe6c80000
93 #define	CONFIG_SCIF_A
94 #undef	CONFIG_SYS_CONSOLE_INFO_QUIET
95 #undef	CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
96 #undef	CONFIG_SYS_CONSOLE_ENV_OVERWRITE
97 
98 #define CONFIG_SYS_MEMTEST_START	(ARMADILLO_800EVA_SDRAM_BASE)
99 #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + \
100 					 504 * 1024 * 1024)
101 #undef	CONFIG_SYS_ALT_MEMTEST
102 #undef	CONFIG_SYS_MEMTEST_SCRATCH
103 #undef	CONFIG_SYS_LOADS_BAUD_CHANGE
104 
105 #define CONFIG_SYS_SDRAM_BASE		(ARMADILLO_800EVA_SDRAM_BASE)
106 #define CONFIG_SYS_SDRAM_SIZE		(ARMADILLO_800EVA_SDRAM_SIZE)
107 #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + \
108 					 64 * 1024 * 1024)
109 #define CONFIG_NR_DRAM_BANKS		1
110 
111 #define CONFIG_SYS_MONITOR_BASE		0x00000000
112 #define CONFIG_SYS_MONITOR_LEN		(256 * 1024)
113 #define CONFIG_SYS_MALLOC_LEN		(1 * 1024 * 1024)
114 #define CONFIG_SYS_GBL_DATA_SIZE	(256)
115 #define CONFIG_SYS_BOOTMAPSZ		(8 * 1024 * 1024)
116 #define CONFIG_SYS_TEXT_BASE	0xE80C0000
117 
118 /* FLASH */
119 #define CONFIG_SYS_NO_FLASH
120 #define CONFIG_SYS_FLASH_CFI
121 #define CONFIG_SYS_FLASH_CFI_WIDTH	FLASH_CFI_16BIT
122 #define CONFIG_SYS_FLASH_BASE		0x00000000
123 #define CONFIG_SYS_MAX_FLASH_SECT	512
124 #define CONFIG_SYS_MAX_FLASH_BANKS	1
125 #define CONFIG_SYS_FLASH_BANKS_LIST	{ (CONFIG_SYS_FLASH_BASE) }
126 
127 #define CONFIG_SYS_FLASH_ERASE_TOUT	3000
128 #define CONFIG_SYS_FLASH_WRITE_TOUT	3000
129 #define CONFIG_SYS_FLASH_LOCK_TOUT	3000
130 #define CONFIG_SYS_FLASH_UNLOCK_TOUT	3000
131 
132 /* ENV setting */
133 #define CONFIG_ENV_IS_IN_FLASH
134 #define CONFIG_ENV_OVERWRITE	1
135 #define CONFIG_ENV_SECT_SIZE	(128 * 1024)
136 #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + \
137 				 CONFIG_SYS_MONITOR_LEN)
138 #define CONFIG_ENV_OFFSET	(CONFIG_ENV_ADDR)
139 #define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE)
140 #define CONFIG_ENV_SIZE_REDUND	(CONFIG_ENV_SECT_SIZE)
141 
142 /* SH Ether */
143 #define	CONFIG_NET_MULTI
144 #define CONFIG_SH_ETHER
145 #define CONFIG_SH_ETHER_USE_PORT	0
146 #define CONFIG_SH_ETHER_PHY_ADDR	0x0
147 #define CONFIG_SH_ETHER_BASE_ADDR	0xe9a00000
148 #define CONFIG_SH_ETHER_SH7734_MII	(0x01)
149 #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
150 #define CONFIG_PHYLIB
151 #define CONFIG_PHY_SMSC
152 #define CONFIG_BITBANGMII
153 #define CONFIG_BITBANGMII_MULTI
154 
155 /* Board Clock */
156 #define CONFIG_SYS_CLK_FREQ	50000000
157 #define CONFIG_SYS_TMU_CLK_DIV	4
158 #define CONFIG_SYS_HZ		1000
159 
160 #endif	/* __ARMADILLO_800EVA_H */
161