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