Commit f5d0b9b2c3b40f637913aec20b62eea2b8697ec3
1 parent
3201455d6a
Exists in
v2017.01-smarct4x
and in
37 other branches
ARM: UniPhier: merge UniPhier config headers into a single file
Some configurations have been moved to Kconfig and the difference among the config headers of UniPhier SoC variants is getting smaller and smaller. Now is a good time to merge them into a single file. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Showing 6 changed files with 298 additions and 369 deletions Side-by-side Diff
arch/arm/cpu/armv7/uniphier/Kconfig
include/configs/ph1_ld4.h
1 | -/* | |
2 | - * Copyright (C) 2012-2014 Panasonic Corporation | |
3 | - * Author: Masahiro Yamada <yamada.m@jp.panasonic.com> | |
4 | - * | |
5 | - * SPDX-License-Identifier: GPL-2.0+ | |
6 | - */ | |
7 | - | |
8 | -#ifndef __PH1_XXX_H | |
9 | -#define __PH1_XXX_H | |
10 | - | |
11 | -/* | |
12 | - * Serial Configuration | |
13 | - * SoC UART : enable CONFIG_UNIPHIER_SERIAL | |
14 | - * On-board UART: enable CONFIG_SYS_NS16550_SERIAL | |
15 | - */ | |
16 | -#if 0 | |
17 | -#define CONFIG_SYS_NS16550_SERIAL | |
18 | -#endif | |
19 | - | |
20 | -#define CONFIG_SMC911X | |
21 | - | |
22 | -#define CONFIG_DDR_NUM_CH0 1 | |
23 | -#define CONFIG_DDR_NUM_CH1 1 | |
24 | - | |
25 | -/* | |
26 | - * Memory Size & Mapping | |
27 | - */ | |
28 | -/* Physical start address of SDRAM */ | |
29 | -#define CONFIG_SDRAM0_BASE 0x80000000 | |
30 | -#define CONFIG_SDRAM0_SIZE 0x10000000 | |
31 | -#define CONFIG_SDRAM1_BASE 0x90000000 | |
32 | -#define CONFIG_SDRAM1_SIZE 0x10000000 | |
33 | - | |
34 | -#define CONFIG_SPL_TEXT_BASE 0x40000 | |
35 | - | |
36 | -#include "uniphier-common.h" | |
37 | - | |
38 | -#endif /* __PH1_XXX_H */ |
include/configs/ph1_pro4.h
1 | -/* | |
2 | - * Copyright (C) 2012-2014 Panasonic Corporation | |
3 | - * Author: Masahiro Yamada <yamada.m@jp.panasonic.com> | |
4 | - * | |
5 | - * SPDX-License-Identifier: GPL-2.0+ | |
6 | - */ | |
7 | - | |
8 | -#ifndef __PH1_XXX_H | |
9 | -#define __PH1_XXX_H | |
10 | - | |
11 | -/* | |
12 | - * Serial Configuration | |
13 | - * SoC UART : enable CONFIG_UNIPHIER_SERIAL | |
14 | - * On-board UART: enable CONFIG_SYS_NS16550_SERIAL | |
15 | - */ | |
16 | -#if 0 | |
17 | -#define CONFIG_SYS_NS16550_SERIAL | |
18 | -#endif | |
19 | - | |
20 | -#define CONFIG_SMC911X | |
21 | - | |
22 | -#define CONFIG_DDR_NUM_CH0 2 | |
23 | -#define CONFIG_DDR_NUM_CH1 2 | |
24 | - | |
25 | -/* | |
26 | - * Memory Size & Mapping | |
27 | - */ | |
28 | -/* Physical start address of SDRAM */ | |
29 | -#define CONFIG_SDRAM0_BASE 0x80000000 | |
30 | -#define CONFIG_SDRAM0_SIZE 0x20000000 | |
31 | -#define CONFIG_SDRAM1_BASE 0xa0000000 | |
32 | -#define CONFIG_SDRAM1_SIZE 0x20000000 | |
33 | - | |
34 | -#define CONFIG_SPL_TEXT_BASE 0x100000 | |
35 | - | |
36 | -#include "uniphier-common.h" | |
37 | - | |
38 | -#endif /* __PH1_XXX_H */ |
include/configs/ph1_sld8.h
1 | -/* | |
2 | - * Copyright (C) 2012-2014 Panasonic Corporation | |
3 | - * Author: Masahiro Yamada <yamada.m@jp.panasonic.com> | |
4 | - * | |
5 | - * SPDX-License-Identifier: GPL-2.0+ | |
6 | - */ | |
7 | - | |
8 | -#ifndef __PH1_XXX_H | |
9 | -#define __PH1_XXX_H | |
10 | - | |
11 | -/* | |
12 | - * Serial Configuration | |
13 | - * SoC UART : enable CONFIG_UNIPHIER_SERIAL | |
14 | - * On-board UART: enable CONFIG_SYS_NS16550_SERIAL | |
15 | - */ | |
16 | -#if 0 | |
17 | -#define CONFIG_SYS_NS16550_SERIAL | |
18 | -#endif | |
19 | - | |
20 | -#define CONFIG_SMC911X | |
21 | - | |
22 | -#define CONFIG_DDR_NUM_CH0 1 | |
23 | -#define CONFIG_DDR_NUM_CH1 1 | |
24 | - | |
25 | -/* #define CONFIG_DDR_STANDARD */ | |
26 | - | |
27 | -/* | |
28 | - * Memory Size & Mapping | |
29 | - */ | |
30 | -/* Physical start address of SDRAM */ | |
31 | -#define CONFIG_SDRAM0_BASE 0x80000000 | |
32 | -#define CONFIG_SDRAM0_SIZE 0x10000000 | |
33 | -#define CONFIG_SDRAM1_BASE 0x90000000 | |
34 | -#define CONFIG_SDRAM1_SIZE 0x10000000 | |
35 | - | |
36 | -#define CONFIG_SPL_TEXT_BASE 0x40000 | |
37 | - | |
38 | -#include "uniphier-common.h" | |
39 | - | |
40 | -#endif /* __PH1_XXX_H */ |
include/configs/uniphier-common.h
1 | -/* | |
2 | - * Copyright (C) 2012-2014 Panasonic Corporation | |
3 | - * Author: Masahiro Yamada <yamada.m@jp.panasonic.com> | |
4 | - * | |
5 | - * SPDX-License-Identifier: GPL-2.0+ | |
6 | - */ | |
7 | - | |
8 | -/* U-boot - Common settings for UniPhier Family */ | |
9 | - | |
10 | -#ifndef __CONFIG_UNIPHIER_COMMON_H__ | |
11 | -#define __CONFIG_UNIPHIER_COMMON_H__ | |
12 | - | |
13 | -/* | |
14 | - * Support card address map | |
15 | - */ | |
16 | -#if defined(CONFIG_PFC_MICRO_SUPPORT_CARD) | |
17 | -# define CONFIG_SUPPORT_CARD_BASE 0x03f00000 | |
18 | -# define CONFIG_SUPPORT_CARD_ETHER_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00000000) | |
19 | -# define CONFIG_SUPPORT_CARD_LED_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00090000) | |
20 | -# define CONFIG_SUPPORT_CARD_UART_BASE (CONFIG_SUPPORT_CARD_BASE + 0x000b0000) | |
21 | -#endif | |
22 | - | |
23 | -#if defined(CONFIG_DCC_MICRO_SUPPORT_CARD) | |
24 | -# define CONFIG_SUPPORT_CARD_BASE 0x08000000 | |
25 | -# define CONFIG_SUPPORT_CARD_ETHER_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00000000) | |
26 | -# define CONFIG_SUPPORT_CARD_LED_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00401630) | |
27 | -# define CONFIG_SUPPORT_CARD_UART_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00200000) | |
28 | -#endif | |
29 | - | |
30 | -#ifdef CONFIG_SYS_NS16550_SERIAL | |
31 | -#define CONFIG_SYS_NS16550 | |
32 | -#define CONFIG_SYS_NS16550_COM1 CONFIG_SUPPORT_CARD_UART_BASE | |
33 | -#define CONFIG_SYS_NS16550_CLK 12288000 | |
34 | -#define CONFIG_SYS_NS16550_REG_SIZE -2 | |
35 | -#endif | |
36 | - | |
37 | -#define CONFIG_SMC911X_BASE CONFIG_SUPPORT_CARD_ETHER_BASE | |
38 | -#define CONFIG_SMC911X_32_BIT | |
39 | - | |
40 | -#define CONFIG_SYS_MALLOC_F_LEN 0x2000 | |
41 | - | |
42 | -/*----------------------------------------------------------------------- | |
43 | - * MMU and Cache Setting | |
44 | - *----------------------------------------------------------------------*/ | |
45 | - | |
46 | -/* Comment out the following to enable L1 cache */ | |
47 | -/* #define CONFIG_SYS_ICACHE_OFF */ | |
48 | -/* #define CONFIG_SYS_DCACHE_OFF */ | |
49 | - | |
50 | -/* Comment out the following to enable L2 cache */ | |
51 | -#define CONFIG_UNIPHIER_L2CACHE_ON | |
52 | - | |
53 | -#define CONFIG_DISPLAY_CPUINFO | |
54 | -#define CONFIG_DISPLAY_BOARDINFO | |
55 | -#define CONFIG_BOARD_LATE_INIT | |
56 | - | |
57 | -#define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024) | |
58 | - | |
59 | -#define CONFIG_TIMESTAMP | |
60 | - | |
61 | -/* FLASH related */ | |
62 | -#define CONFIG_MTD_DEVICE | |
63 | - | |
64 | -/* | |
65 | - * uncomment the following to disable FLASH related code. | |
66 | - */ | |
67 | -/* #define CONFIG_SYS_NO_FLASH */ | |
68 | - | |
69 | -#define CONFIG_FLASH_CFI_DRIVER | |
70 | -#define CONFIG_SYS_FLASH_CFI | |
71 | - | |
72 | -#define CONFIG_SYS_MAX_FLASH_SECT 256 | |
73 | -#define CONFIG_SYS_MONITOR_BASE 0 | |
74 | -#define CONFIG_SYS_FLASH_BASE 0 | |
75 | - | |
76 | -/* | |
77 | - * flash_toggle does not work for out supoort card. | |
78 | - * We need to use flash_status_poll. | |
79 | - */ | |
80 | -#define CONFIG_SYS_CFI_FLASH_STATUS_POLL | |
81 | - | |
82 | -#define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ | |
83 | - | |
84 | -#if defined(CONFIG_PFC_MICRO_SUPPORT_CARD) | |
85 | -# define CONFIG_SYS_MAX_FLASH_BANKS 1 | |
86 | -# define CONFIG_SYS_FLASH_BANKS_LIST {0x00000000} | |
87 | -# define CONFIG_SYS_FLASH_BANKS_SIZES {0x02000000} | |
88 | -#endif | |
89 | - | |
90 | -#if defined(CONFIG_DCC_MICRO_SUPPORT_CARD) | |
91 | -# define CONFIG_SYS_MAX_FLASH_BANKS 1 | |
92 | -# define CONFIG_SYS_FLASH_BANKS_LIST {0x04000000} | |
93 | -# define CONFIG_SYS_FLASH_BANKS_SIZES {0x04000000} | |
94 | -#endif | |
95 | - | |
96 | -/* serial console configuration */ | |
97 | -#define CONFIG_BAUDRATE 115200 | |
98 | - | |
99 | -#define CONFIG_SYS_GENERIC_BOARD | |
100 | - | |
101 | -#if !defined(CONFIG_SPL_BUILD) | |
102 | -#define CONFIG_USE_ARCH_MEMSET | |
103 | -#define CONFIG_USE_ARCH_MEMCPY | |
104 | -#endif | |
105 | - | |
106 | -#define CONFIG_SYS_LONGHELP /* undef to save memory */ | |
107 | - | |
108 | -#define CONFIG_CMDLINE_EDITING /* add command line history */ | |
109 | -#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ | |
110 | -/* Print Buffer Size */ | |
111 | -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) | |
112 | -#define CONFIG_SYS_MAXARGS 16 /* max number of command */ | |
113 | -/* Boot Argument Buffer Size */ | |
114 | -#define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE) | |
115 | - | |
116 | -#define CONFIG_CONS_INDEX 1 | |
117 | - | |
118 | -/* | |
119 | - * For NAND booting the environment is embedded in the U-Boot image. Please take | |
120 | - * look at the file board/amcc/canyonlands/u-boot-nand.lds for details. | |
121 | - */ | |
122 | -/* #define CONFIG_ENV_IS_IN_NAND */ | |
123 | -#define CONFIG_ENV_IS_NOWHERE | |
124 | -#define CONFIG_ENV_SIZE 0x2000 | |
125 | -#define CONFIG_ENV_OFFSET 0x0 | |
126 | -/* #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) */ | |
127 | - | |
128 | -/* Time clock 1MHz */ | |
129 | -#define CONFIG_SYS_TIMER_RATE 1000000 | |
130 | - | |
131 | -/* | |
132 | - * By default, ARP timeout is 5 sec. | |
133 | - * The first ARP request does not seem to work. | |
134 | - * So we need to retry ARP request anyway. | |
135 | - * We want to shrink the interval until the second ARP request. | |
136 | - */ | |
137 | -#define CONFIG_ARP_TIMEOUT 500UL /* 0.5 msec */ | |
138 | - | |
139 | -#define CONFIG_SYS_MAX_NAND_DEVICE 1 | |
140 | -#define CONFIG_SYS_NAND_MAX_CHIPS 2 | |
141 | -#define CONFIG_SYS_NAND_ONFI_DETECTION | |
142 | - | |
143 | -#define CONFIG_NAND_DENALI_ECC_SIZE 1024 | |
144 | - | |
145 | -#define CONFIG_SYS_NAND_REGS_BASE 0x68100000 | |
146 | -#define CONFIG_SYS_NAND_DATA_BASE 0x68000000 | |
147 | - | |
148 | -#define CONFIG_SYS_NAND_BASE (CONFIG_SYS_NAND_DATA_BASE + 0x10) | |
149 | - | |
150 | -#define CONFIG_SYS_NAND_USE_FLASH_BBT | |
151 | -#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 | |
152 | - | |
153 | -/* USB */ | |
154 | -#define CONFIG_USB_MAX_CONTROLLER_COUNT 2 | |
155 | -#define CONFIG_CMD_FAT | |
156 | -#define CONFIG_FAT_WRITE | |
157 | -#define CONFIG_DOS_PARTITION | |
158 | - | |
159 | -/* memtest works on */ | |
160 | -#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE | |
161 | -#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x01000000) | |
162 | - | |
163 | -#define CONFIG_BOOTDELAY 3 | |
164 | -#define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */ | |
165 | -#define CONFIG_AUTOBOOT_KEYED 1 | |
166 | -#define CONFIG_AUTOBOOT_PROMPT \ | |
167 | - "Press SPACE to abort autoboot in %d seconds\n", bootdelay | |
168 | -#define CONFIG_AUTOBOOT_DELAY_STR "d" | |
169 | -#define CONFIG_AUTOBOOT_STOP_STR " " | |
170 | - | |
171 | -/* | |
172 | - * Network Configuration | |
173 | - */ | |
174 | -#define CONFIG_ETHADDR 00:21:83:24:00:00 | |
175 | -#define CONFIG_SERVERIP 192.168.11.1 | |
176 | -#define CONFIG_IPADDR 192.168.11.10 | |
177 | -#define CONFIG_GATEWAYIP 192.168.11.1 | |
178 | -#define CONFIG_NETMASK 255.255.255.0 | |
179 | - | |
180 | -#define CONFIG_LOADADDR 0x84000000 | |
181 | -#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR | |
182 | -#define CONFIG_BOOTFILE "fit.itb" | |
183 | - | |
184 | -#define CONFIG_CMDLINE_EDITING /* add command line history */ | |
185 | - | |
186 | -#define CONFIG_BOOTCOMMAND "run $bootmode" | |
187 | - | |
188 | -#define CONFIG_ROOTPATH "/nfs/root/path" | |
189 | -#define CONFIG_NFSBOOTCOMMAND \ | |
190 | - "setenv bootargs $bootargs root=/dev/nfs rw " \ | |
191 | - "nfsroot=$serverip:$rootpath " \ | |
192 | - "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off;" \ | |
193 | - "tftpboot; bootm;" | |
194 | - | |
195 | -#define CONFIG_BOOTARGS " user_debug=0x1f init=/sbin/init" | |
196 | - | |
197 | -#define CONFIG_EXTRA_ENV_SETTINGS \ | |
198 | - "netdev=eth0\0" \ | |
199 | - "image_offset=0x00080000\0" \ | |
200 | - "image_size=0x00f00000\0" \ | |
201 | - "verify=n\0" \ | |
202 | - "norboot=run add_default_bootargs;" \ | |
203 | - "bootm $image_offset\0" \ | |
204 | - "nandboot=run add_default_bootargs;" \ | |
205 | - "nand read $loadaddr $image_offset $image_size;" \ | |
206 | - "bootm\0" \ | |
207 | - "add_default_bootargs=setenv bootargs $bootargs" \ | |
208 | - " console=ttyS0,$baudrate\0" \ | |
209 | - | |
210 | -/* Open Firmware flat tree */ | |
211 | -#define CONFIG_OF_LIBFDT | |
212 | - | |
213 | -#define CONFIG_HAVE_ARM_SECURE | |
214 | - | |
215 | -/* Memory Size & Mapping */ | |
216 | -#define CONFIG_SYS_SDRAM_BASE CONFIG_SDRAM0_BASE | |
217 | - | |
218 | -#if CONFIG_SDRAM0_BASE + CONFIG_SDRAM0_SIZE >= CONFIG_SDRAM1_BASE | |
219 | -/* Thre is no memory hole */ | |
220 | -#define CONFIG_NR_DRAM_BANKS 1 | |
221 | -#define CONFIG_SYS_SDRAM_SIZE (CONFIG_SDRAM0_SIZE + CONFIG_SDRAM1_SIZE) | |
222 | -#else | |
223 | -#define CONFIG_NR_DRAM_BANKS 2 | |
224 | -#define CONFIG_SYS_SDRAM_SIZE (CONFIG_SDRAM0_SIZE) | |
225 | -#endif | |
226 | - | |
227 | -#define CONFIG_SYS_TEXT_BASE 0x84000000 | |
228 | - | |
229 | -#define CONFIG_BOARD_POSTCLK_INIT | |
230 | - | |
231 | -#ifndef CONFIG_SPL_BUILD | |
232 | -#define CONFIG_SKIP_LOWLEVEL_INIT | |
233 | -#endif | |
234 | - | |
235 | -#define CONFIG_SYS_SPL_MALLOC_START (0x0ff00000) | |
236 | -#define CONFIG_SYS_SPL_MALLOC_SIZE (0x00004000) | |
237 | - | |
238 | -#define CONFIG_SYS_INIT_SP_ADDR (0x0ff08000) | |
239 | - | |
240 | -#define CONFIG_SPL_FRAMEWORK | |
241 | -#define CONFIG_SPL_NAND_SUPPORT | |
242 | - | |
243 | -#define CONFIG_SPL_LIBCOMMON_SUPPORT /* for mem_malloc_init */ | |
244 | -#define CONFIG_SPL_LIBGENERIC_SUPPORT | |
245 | - | |
246 | -#define CONFIG_SPL_BOARD_INIT | |
247 | - | |
248 | -#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x10000 | |
249 | - | |
250 | -#endif /* __CONFIG_UNIPHIER_COMMON_H__ */ |
include/configs/uniphier.h
1 | +/* | |
2 | + * Copyright (C) 2012-2014 Panasonic Corporation | |
3 | + * Author: Masahiro Yamada <yamada.m@jp.panasonic.com> | |
4 | + * | |
5 | + * SPDX-License-Identifier: GPL-2.0+ | |
6 | + */ | |
7 | + | |
8 | +/* U-boot - Common settings for UniPhier Family */ | |
9 | + | |
10 | +#ifndef __CONFIG_UNIPHIER_COMMON_H__ | |
11 | +#define __CONFIG_UNIPHIER_COMMON_H__ | |
12 | + | |
13 | +#if defined(CONFIG_MACH_PH1_PRO4) | |
14 | +#define CONFIG_DDR_NUM_CH0 2 | |
15 | +#define CONFIG_DDR_NUM_CH1 2 | |
16 | + | |
17 | +/* Physical start address of SDRAM */ | |
18 | +#define CONFIG_SDRAM0_BASE 0x80000000 | |
19 | +#define CONFIG_SDRAM0_SIZE 0x20000000 | |
20 | +#define CONFIG_SDRAM1_BASE 0xa0000000 | |
21 | +#define CONFIG_SDRAM1_SIZE 0x20000000 | |
22 | +#endif | |
23 | + | |
24 | +#if defined(CONFIG_MACH_PH1_LD4) | |
25 | +#define CONFIG_DDR_NUM_CH0 1 | |
26 | +#define CONFIG_DDR_NUM_CH1 1 | |
27 | + | |
28 | +/* Physical start address of SDRAM */ | |
29 | +#define CONFIG_SDRAM0_BASE 0x80000000 | |
30 | +#define CONFIG_SDRAM0_SIZE 0x10000000 | |
31 | +#define CONFIG_SDRAM1_BASE 0x90000000 | |
32 | +#define CONFIG_SDRAM1_SIZE 0x10000000 | |
33 | +#endif | |
34 | + | |
35 | +#if defined(CONFIG_MACH_PH1_SLD8) | |
36 | +#define CONFIG_DDR_NUM_CH0 1 | |
37 | +#define CONFIG_DDR_NUM_CH1 1 | |
38 | + | |
39 | +/* Physical start address of SDRAM */ | |
40 | +#define CONFIG_SDRAM0_BASE 0x80000000 | |
41 | +#define CONFIG_SDRAM0_SIZE 0x10000000 | |
42 | +#define CONFIG_SDRAM1_BASE 0x90000000 | |
43 | +#define CONFIG_SDRAM1_SIZE 0x10000000 | |
44 | +#endif | |
45 | + | |
46 | +/* | |
47 | + * Support card address map | |
48 | + */ | |
49 | +#if defined(CONFIG_PFC_MICRO_SUPPORT_CARD) | |
50 | +# define CONFIG_SUPPORT_CARD_BASE 0x03f00000 | |
51 | +# define CONFIG_SUPPORT_CARD_ETHER_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00000000) | |
52 | +# define CONFIG_SUPPORT_CARD_LED_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00090000) | |
53 | +# define CONFIG_SUPPORT_CARD_UART_BASE (CONFIG_SUPPORT_CARD_BASE + 0x000b0000) | |
54 | +#endif | |
55 | + | |
56 | +#if defined(CONFIG_DCC_MICRO_SUPPORT_CARD) | |
57 | +# define CONFIG_SUPPORT_CARD_BASE 0x08000000 | |
58 | +# define CONFIG_SUPPORT_CARD_ETHER_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00000000) | |
59 | +# define CONFIG_SUPPORT_CARD_LED_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00401630) | |
60 | +# define CONFIG_SUPPORT_CARD_UART_BASE (CONFIG_SUPPORT_CARD_BASE + 0x00200000) | |
61 | +#endif | |
62 | + | |
63 | +#ifdef CONFIG_SYS_NS16550_SERIAL | |
64 | +#define CONFIG_SYS_NS16550 | |
65 | +#define CONFIG_SYS_NS16550_COM1 CONFIG_SUPPORT_CARD_UART_BASE | |
66 | +#define CONFIG_SYS_NS16550_CLK 12288000 | |
67 | +#define CONFIG_SYS_NS16550_REG_SIZE -2 | |
68 | +#endif | |
69 | + | |
70 | +/* TODO: move to Kconfig and device tree */ | |
71 | +#if 0 | |
72 | +#define CONFIG_SYS_NS16550_SERIAL | |
73 | +#endif | |
74 | + | |
75 | +#define CONFIG_SMC911X | |
76 | + | |
77 | +#define CONFIG_SMC911X_BASE CONFIG_SUPPORT_CARD_ETHER_BASE | |
78 | +#define CONFIG_SMC911X_32_BIT | |
79 | + | |
80 | +#define CONFIG_SYS_MALLOC_F_LEN 0x2000 | |
81 | + | |
82 | +/*----------------------------------------------------------------------- | |
83 | + * MMU and Cache Setting | |
84 | + *----------------------------------------------------------------------*/ | |
85 | + | |
86 | +/* Comment out the following to enable L1 cache */ | |
87 | +/* #define CONFIG_SYS_ICACHE_OFF */ | |
88 | +/* #define CONFIG_SYS_DCACHE_OFF */ | |
89 | + | |
90 | +/* Comment out the following to enable L2 cache */ | |
91 | +#define CONFIG_UNIPHIER_L2CACHE_ON | |
92 | + | |
93 | +#define CONFIG_DISPLAY_CPUINFO | |
94 | +#define CONFIG_DISPLAY_BOARDINFO | |
95 | +#define CONFIG_BOARD_LATE_INIT | |
96 | + | |
97 | +#define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024) | |
98 | + | |
99 | +#define CONFIG_TIMESTAMP | |
100 | + | |
101 | +/* FLASH related */ | |
102 | +#define CONFIG_MTD_DEVICE | |
103 | + | |
104 | +/* | |
105 | + * uncomment the following to disable FLASH related code. | |
106 | + */ | |
107 | +/* #define CONFIG_SYS_NO_FLASH */ | |
108 | + | |
109 | +#define CONFIG_FLASH_CFI_DRIVER | |
110 | +#define CONFIG_SYS_FLASH_CFI | |
111 | + | |
112 | +#define CONFIG_SYS_MAX_FLASH_SECT 256 | |
113 | +#define CONFIG_SYS_MONITOR_BASE 0 | |
114 | +#define CONFIG_SYS_FLASH_BASE 0 | |
115 | + | |
116 | +/* | |
117 | + * flash_toggle does not work for out supoort card. | |
118 | + * We need to use flash_status_poll. | |
119 | + */ | |
120 | +#define CONFIG_SYS_CFI_FLASH_STATUS_POLL | |
121 | + | |
122 | +#define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ | |
123 | + | |
124 | +#if defined(CONFIG_PFC_MICRO_SUPPORT_CARD) | |
125 | +# define CONFIG_SYS_MAX_FLASH_BANKS 1 | |
126 | +# define CONFIG_SYS_FLASH_BANKS_LIST {0x00000000} | |
127 | +# define CONFIG_SYS_FLASH_BANKS_SIZES {0x02000000} | |
128 | +#endif | |
129 | + | |
130 | +#if defined(CONFIG_DCC_MICRO_SUPPORT_CARD) | |
131 | +# define CONFIG_SYS_MAX_FLASH_BANKS 1 | |
132 | +# define CONFIG_SYS_FLASH_BANKS_LIST {0x04000000} | |
133 | +# define CONFIG_SYS_FLASH_BANKS_SIZES {0x04000000} | |
134 | +#endif | |
135 | + | |
136 | +/* serial console configuration */ | |
137 | +#define CONFIG_BAUDRATE 115200 | |
138 | + | |
139 | +#define CONFIG_SYS_GENERIC_BOARD | |
140 | + | |
141 | +#if !defined(CONFIG_SPL_BUILD) | |
142 | +#define CONFIG_USE_ARCH_MEMSET | |
143 | +#define CONFIG_USE_ARCH_MEMCPY | |
144 | +#endif | |
145 | + | |
146 | +#define CONFIG_SYS_LONGHELP /* undef to save memory */ | |
147 | + | |
148 | +#define CONFIG_CMDLINE_EDITING /* add command line history */ | |
149 | +#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ | |
150 | +/* Print Buffer Size */ | |
151 | +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) | |
152 | +#define CONFIG_SYS_MAXARGS 16 /* max number of command */ | |
153 | +/* Boot Argument Buffer Size */ | |
154 | +#define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE) | |
155 | + | |
156 | +#define CONFIG_CONS_INDEX 1 | |
157 | + | |
158 | +/* | |
159 | + * For NAND booting the environment is embedded in the U-Boot image. Please take | |
160 | + * look at the file board/amcc/canyonlands/u-boot-nand.lds for details. | |
161 | + */ | |
162 | +/* #define CONFIG_ENV_IS_IN_NAND */ | |
163 | +#define CONFIG_ENV_IS_NOWHERE | |
164 | +#define CONFIG_ENV_SIZE 0x2000 | |
165 | +#define CONFIG_ENV_OFFSET 0x0 | |
166 | +/* #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) */ | |
167 | + | |
168 | +/* Time clock 1MHz */ | |
169 | +#define CONFIG_SYS_TIMER_RATE 1000000 | |
170 | + | |
171 | +/* | |
172 | + * By default, ARP timeout is 5 sec. | |
173 | + * The first ARP request does not seem to work. | |
174 | + * So we need to retry ARP request anyway. | |
175 | + * We want to shrink the interval until the second ARP request. | |
176 | + */ | |
177 | +#define CONFIG_ARP_TIMEOUT 500UL /* 0.5 msec */ | |
178 | + | |
179 | +#define CONFIG_SYS_MAX_NAND_DEVICE 1 | |
180 | +#define CONFIG_SYS_NAND_MAX_CHIPS 2 | |
181 | +#define CONFIG_SYS_NAND_ONFI_DETECTION | |
182 | + | |
183 | +#define CONFIG_NAND_DENALI_ECC_SIZE 1024 | |
184 | + | |
185 | +#define CONFIG_SYS_NAND_REGS_BASE 0x68100000 | |
186 | +#define CONFIG_SYS_NAND_DATA_BASE 0x68000000 | |
187 | + | |
188 | +#define CONFIG_SYS_NAND_BASE (CONFIG_SYS_NAND_DATA_BASE + 0x10) | |
189 | + | |
190 | +#define CONFIG_SYS_NAND_USE_FLASH_BBT | |
191 | +#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 | |
192 | + | |
193 | +/* USB */ | |
194 | +#define CONFIG_USB_MAX_CONTROLLER_COUNT 2 | |
195 | +#define CONFIG_CMD_FAT | |
196 | +#define CONFIG_FAT_WRITE | |
197 | +#define CONFIG_DOS_PARTITION | |
198 | + | |
199 | +/* memtest works on */ | |
200 | +#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE | |
201 | +#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x01000000) | |
202 | + | |
203 | +#define CONFIG_BOOTDELAY 3 | |
204 | +#define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */ | |
205 | +#define CONFIG_AUTOBOOT_KEYED 1 | |
206 | +#define CONFIG_AUTOBOOT_PROMPT \ | |
207 | + "Press SPACE to abort autoboot in %d seconds\n", bootdelay | |
208 | +#define CONFIG_AUTOBOOT_DELAY_STR "d" | |
209 | +#define CONFIG_AUTOBOOT_STOP_STR " " | |
210 | + | |
211 | +/* | |
212 | + * Network Configuration | |
213 | + */ | |
214 | +#define CONFIG_ETHADDR 00:21:83:24:00:00 | |
215 | +#define CONFIG_SERVERIP 192.168.11.1 | |
216 | +#define CONFIG_IPADDR 192.168.11.10 | |
217 | +#define CONFIG_GATEWAYIP 192.168.11.1 | |
218 | +#define CONFIG_NETMASK 255.255.255.0 | |
219 | + | |
220 | +#define CONFIG_LOADADDR 0x84000000 | |
221 | +#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR | |
222 | +#define CONFIG_BOOTFILE "fit.itb" | |
223 | + | |
224 | +#define CONFIG_CMDLINE_EDITING /* add command line history */ | |
225 | + | |
226 | +#define CONFIG_BOOTCOMMAND "run $bootmode" | |
227 | + | |
228 | +#define CONFIG_ROOTPATH "/nfs/root/path" | |
229 | +#define CONFIG_NFSBOOTCOMMAND \ | |
230 | + "setenv bootargs $bootargs root=/dev/nfs rw " \ | |
231 | + "nfsroot=$serverip:$rootpath " \ | |
232 | + "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off;" \ | |
233 | + "tftpboot; bootm;" | |
234 | + | |
235 | +#define CONFIG_BOOTARGS " user_debug=0x1f init=/sbin/init" | |
236 | + | |
237 | +#define CONFIG_EXTRA_ENV_SETTINGS \ | |
238 | + "netdev=eth0\0" \ | |
239 | + "image_offset=0x00080000\0" \ | |
240 | + "image_size=0x00f00000\0" \ | |
241 | + "verify=n\0" \ | |
242 | + "norboot=run add_default_bootargs;" \ | |
243 | + "bootm $image_offset\0" \ | |
244 | + "nandboot=run add_default_bootargs;" \ | |
245 | + "nand read $loadaddr $image_offset $image_size;" \ | |
246 | + "bootm\0" \ | |
247 | + "add_default_bootargs=setenv bootargs $bootargs" \ | |
248 | + " console=ttyS0,$baudrate\0" \ | |
249 | + | |
250 | +/* Open Firmware flat tree */ | |
251 | +#define CONFIG_OF_LIBFDT | |
252 | + | |
253 | +#define CONFIG_HAVE_ARM_SECURE | |
254 | + | |
255 | +/* Memory Size & Mapping */ | |
256 | +#define CONFIG_SYS_SDRAM_BASE CONFIG_SDRAM0_BASE | |
257 | + | |
258 | +#if CONFIG_SDRAM0_BASE + CONFIG_SDRAM0_SIZE >= CONFIG_SDRAM1_BASE | |
259 | +/* Thre is no memory hole */ | |
260 | +#define CONFIG_NR_DRAM_BANKS 1 | |
261 | +#define CONFIG_SYS_SDRAM_SIZE (CONFIG_SDRAM0_SIZE + CONFIG_SDRAM1_SIZE) | |
262 | +#else | |
263 | +#define CONFIG_NR_DRAM_BANKS 2 | |
264 | +#define CONFIG_SYS_SDRAM_SIZE (CONFIG_SDRAM0_SIZE) | |
265 | +#endif | |
266 | + | |
267 | +#define CONFIG_SYS_TEXT_BASE 0x84000000 | |
268 | + | |
269 | +#if defined(CONFIG_MACH_PH1_LD4) || defined(CONFIG_MACH_PH1_SLD8) | |
270 | +#define CONFIG_SPL_TEXT_BASE 0x00040000 | |
271 | +#endif | |
272 | +#if defined(CONFIG_MACH_PH1_PRO4) | |
273 | +#define CONFIG_SPL_TEXT_BASE 0x00100000 | |
274 | +#endif | |
275 | + | |
276 | +#define CONFIG_BOARD_POSTCLK_INIT | |
277 | + | |
278 | +#ifndef CONFIG_SPL_BUILD | |
279 | +#define CONFIG_SKIP_LOWLEVEL_INIT | |
280 | +#endif | |
281 | + | |
282 | +#define CONFIG_SYS_SPL_MALLOC_START (0x0ff00000) | |
283 | +#define CONFIG_SYS_SPL_MALLOC_SIZE (0x00004000) | |
284 | + | |
285 | +#define CONFIG_SYS_INIT_SP_ADDR (0x0ff08000) | |
286 | + | |
287 | +#define CONFIG_SPL_FRAMEWORK | |
288 | +#define CONFIG_SPL_NAND_SUPPORT | |
289 | + | |
290 | +#define CONFIG_SPL_LIBCOMMON_SUPPORT /* for mem_malloc_init */ | |
291 | +#define CONFIG_SPL_LIBGENERIC_SUPPORT | |
292 | + | |
293 | +#define CONFIG_SPL_BOARD_INIT | |
294 | + | |
295 | +#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x10000 | |
296 | + | |
297 | +#endif /* __CONFIG_UNIPHIER_COMMON_H__ */ |