xref: /openbmc/u-boot/include/configs/devkit3250.h (revision 463ec1ca)
1*463ec1caSVladimir Zapolskiy /*
2*463ec1caSVladimir Zapolskiy  * Embest/Timll DevKit3250 board configuration file
3*463ec1caSVladimir Zapolskiy  *
4*463ec1caSVladimir Zapolskiy  * Copyright (C) 2011 Vladimir Zapolskiy <vz@mleia.com>
5*463ec1caSVladimir Zapolskiy  *
6*463ec1caSVladimir Zapolskiy  * This program is free software; you can redistribute it and/or
7*463ec1caSVladimir Zapolskiy  * modify it under the terms of the GNU General Public License
8*463ec1caSVladimir Zapolskiy  * as published by the Free Software Foundation; either version 2
9*463ec1caSVladimir Zapolskiy  * of the License, or (at your option) any later version.
10*463ec1caSVladimir Zapolskiy  *
11*463ec1caSVladimir Zapolskiy  * This program is distributed in the hope that it will be useful,
12*463ec1caSVladimir Zapolskiy  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13*463ec1caSVladimir Zapolskiy  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*463ec1caSVladimir Zapolskiy  * GNU General Public License for more details.
15*463ec1caSVladimir Zapolskiy  *
16*463ec1caSVladimir Zapolskiy  * You should have received a copy of the GNU General Public License
17*463ec1caSVladimir Zapolskiy  * along with this program; if not, write to the Free Software
18*463ec1caSVladimir Zapolskiy  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19*463ec1caSVladimir Zapolskiy  * MA 02110-1301, USA.
20*463ec1caSVladimir Zapolskiy  */
21*463ec1caSVladimir Zapolskiy 
22*463ec1caSVladimir Zapolskiy #ifndef __CONFIG_DEVKIT3250_H__
23*463ec1caSVladimir Zapolskiy #define __CONFIG_DEVKIT3250_H__
24*463ec1caSVladimir Zapolskiy 
25*463ec1caSVladimir Zapolskiy /* SoC and board defines */
26*463ec1caSVladimir Zapolskiy #include <asm/sizes.h>
27*463ec1caSVladimir Zapolskiy #include <asm/arch/cpu.h>
28*463ec1caSVladimir Zapolskiy 
29*463ec1caSVladimir Zapolskiy /*
30*463ec1caSVladimir Zapolskiy  * Define DevKit3250 machine type by hand until it lands in mach-types
31*463ec1caSVladimir Zapolskiy  */
32*463ec1caSVladimir Zapolskiy #define MACH_TYPE_DEVKIT3250		3697
33*463ec1caSVladimir Zapolskiy #define CONFIG_MACH_TYPE		MACH_TYPE_DEVKIT3250
34*463ec1caSVladimir Zapolskiy 
35*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_ICACHE_OFF
36*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_DCACHE_OFF
37*463ec1caSVladimir Zapolskiy #define CONFIG_SKIP_LOWLEVEL_INIT
38*463ec1caSVladimir Zapolskiy #define CONFIG_BOARD_EARLY_INIT_F
39*463ec1caSVladimir Zapolskiy 
40*463ec1caSVladimir Zapolskiy /*
41*463ec1caSVladimir Zapolskiy  * Memory configurations
42*463ec1caSVladimir Zapolskiy  */
43*463ec1caSVladimir Zapolskiy #define CONFIG_NR_DRAM_BANKS		1
44*463ec1caSVladimir Zapolskiy #define CONFIG_STACKSIZE		SZ_32K
45*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_MALLOC_LEN		SZ_1M
46*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_GBL_DATA_SIZE	128
47*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_SDRAM_BASE		EMC_DYCS0_BASE
48*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_SDRAM_SIZE		SZ_64M
49*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_TEXT_BASE		0x83FA0000
50*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_MEMTEST_START	(CONFIG_SYS_SDRAM_BASE + SZ_32K)
51*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_TEXT_BASE - SZ_1M)
52*463ec1caSVladimir Zapolskiy 
53*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + SZ_32K)
54*463ec1caSVladimir Zapolskiy 
55*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_SDRAM_BASE + SZ_4K \
56*463ec1caSVladimir Zapolskiy 					 - GENERATED_GBL_DATA_SIZE)
57*463ec1caSVladimir Zapolskiy 
58*463ec1caSVladimir Zapolskiy /*
59*463ec1caSVladimir Zapolskiy  * Serial Driver
60*463ec1caSVladimir Zapolskiy  */
61*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_LPC32XX_UART		2   /* UART2 */
62*463ec1caSVladimir Zapolskiy #define CONFIG_BAUDRATE			115200
63*463ec1caSVladimir Zapolskiy 
64*463ec1caSVladimir Zapolskiy /*
65*463ec1caSVladimir Zapolskiy  * NOR Flash
66*463ec1caSVladimir Zapolskiy  */
67*463ec1caSVladimir Zapolskiy #define CONFIG_CMD_FLASH
68*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_MAX_FLASH_BANKS	1
69*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_MAX_FLASH_SECT	71
70*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_FLASH_BASE		EMC_CS0_BASE
71*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_FLASH_SIZE		SZ_4M
72*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_FLASH_CFI
73*463ec1caSVladimir Zapolskiy 
74*463ec1caSVladimir Zapolskiy /*
75*463ec1caSVladimir Zapolskiy  * U-Boot General Configurations
76*463ec1caSVladimir Zapolskiy  */
77*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_LONGHELP
78*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_PROMPT		"=> "
79*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_CBSIZE		1024
80*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_PBSIZE		\
81*463ec1caSVladimir Zapolskiy 	(CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
82*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_MAXARGS		16
83*463ec1caSVladimir Zapolskiy #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE
84*463ec1caSVladimir Zapolskiy 
85*463ec1caSVladimir Zapolskiy #define CONFIG_AUTO_COMPLETE
86*463ec1caSVladimir Zapolskiy #define CONFIG_CMDLINE_EDITING
87*463ec1caSVladimir Zapolskiy #define CONFIG_VERSION_VARIABLE
88*463ec1caSVladimir Zapolskiy #define CONFIG_DISPLAY_CPUINFO
89*463ec1caSVladimir Zapolskiy #define CONFIG_DOS_PARTITION
90*463ec1caSVladimir Zapolskiy 
91*463ec1caSVladimir Zapolskiy #define CONFIG_ENV_IS_NOWHERE
92*463ec1caSVladimir Zapolskiy #define CONFIG_ENV_SIZE			SZ_128K
93*463ec1caSVladimir Zapolskiy 
94*463ec1caSVladimir Zapolskiy /*
95*463ec1caSVladimir Zapolskiy  * U-Boot Commands
96*463ec1caSVladimir Zapolskiy  */
97*463ec1caSVladimir Zapolskiy #include <config_cmd_default.h>
98*463ec1caSVladimir Zapolskiy #define CONFIG_CMD_CACHE
99*463ec1caSVladimir Zapolskiy 
100*463ec1caSVladimir Zapolskiy /*
101*463ec1caSVladimir Zapolskiy  * Boot Linux
102*463ec1caSVladimir Zapolskiy  */
103*463ec1caSVladimir Zapolskiy #define CONFIG_CMDLINE_TAG
104*463ec1caSVladimir Zapolskiy #define CONFIG_SETUP_MEMORY_TAGS
105*463ec1caSVladimir Zapolskiy #define CONFIG_ZERO_BOOTDELAY_CHECK
106*463ec1caSVladimir Zapolskiy #define CONFIG_BOOTDELAY		3
107*463ec1caSVladimir Zapolskiy 
108*463ec1caSVladimir Zapolskiy #define CONFIG_BOOTFILE			"uImage"
109*463ec1caSVladimir Zapolskiy #define CONFIG_BOOTARGS			"console=ttyS2,115200n8"
110*463ec1caSVladimir Zapolskiy #define CONFIG_LOADADDR			0x80008000
111*463ec1caSVladimir Zapolskiy 
112*463ec1caSVladimir Zapolskiy /*
113*463ec1caSVladimir Zapolskiy  * Include SoC specific configuration
114*463ec1caSVladimir Zapolskiy  */
115*463ec1caSVladimir Zapolskiy #include <asm/arch/config.h>
116*463ec1caSVladimir Zapolskiy 
117*463ec1caSVladimir Zapolskiy #endif  /* __CONFIG_DEVKIT3250_H__*/
118