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