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