xref: /rk3399_rockchip-uboot/include/configs/stm32f429-discovery.h (revision ed09a554be3ce7974cf61715a286a1b6b547fdbd)
1*ed09a554Srev13@wp.pl /*
2*ed09a554Srev13@wp.pl  * (C) Copyright 2015
3*ed09a554Srev13@wp.pl  * Kamil Lulko, <rev13@wp.pl>
4*ed09a554Srev13@wp.pl  *
5*ed09a554Srev13@wp.pl  * SPDX-License-Identifier:	GPL-2.0+
6*ed09a554Srev13@wp.pl  */
7*ed09a554Srev13@wp.pl 
8*ed09a554Srev13@wp.pl #ifndef __CONFIG_H
9*ed09a554Srev13@wp.pl #define __CONFIG_H
10*ed09a554Srev13@wp.pl 
11*ed09a554Srev13@wp.pl #define CONFIG_STM32F4
12*ed09a554Srev13@wp.pl #define CONFIG_STM32F4DISCOVERY
13*ed09a554Srev13@wp.pl #define CONFIG_SYS_GENERIC_BOARD
14*ed09a554Srev13@wp.pl 
15*ed09a554Srev13@wp.pl #define CONFIG_OF_LIBFDT
16*ed09a554Srev13@wp.pl 
17*ed09a554Srev13@wp.pl #define CONFIG_BOARD_EARLY_INIT_F
18*ed09a554Srev13@wp.pl 
19*ed09a554Srev13@wp.pl #define CONFIG_SYS_FLASH_BASE		0x08000000
20*ed09a554Srev13@wp.pl 
21*ed09a554Srev13@wp.pl #define CONFIG_SYS_INIT_SP_ADDR		0x10010000
22*ed09a554Srev13@wp.pl #define CONFIG_SYS_TEXT_BASE		0x08000000
23*ed09a554Srev13@wp.pl 
24*ed09a554Srev13@wp.pl #define CONFIG_SYS_ICACHE_OFF
25*ed09a554Srev13@wp.pl #define CONFIG_SYS_DCACHE_OFF
26*ed09a554Srev13@wp.pl 
27*ed09a554Srev13@wp.pl /*
28*ed09a554Srev13@wp.pl  * Configuration of the external SDRAM memory
29*ed09a554Srev13@wp.pl  */
30*ed09a554Srev13@wp.pl #define CONFIG_NR_DRAM_BANKS		1
31*ed09a554Srev13@wp.pl #define CONFIG_SYS_RAM_SIZE		(8 << 20)
32*ed09a554Srev13@wp.pl #define CONFIG_SYS_RAM_CS		1
33*ed09a554Srev13@wp.pl #define CONFIG_SYS_RAM_FREQ_DIV		2
34*ed09a554Srev13@wp.pl #define CONFIG_SYS_RAM_BASE		0xD0000000
35*ed09a554Srev13@wp.pl #define CONFIG_SYS_SDRAM_BASE		CONFIG_SYS_RAM_BASE
36*ed09a554Srev13@wp.pl #define CONFIG_SYS_LOAD_ADDR		0xD0400000
37*ed09a554Srev13@wp.pl #define CONFIG_LOADADDR			0xD0400000
38*ed09a554Srev13@wp.pl 
39*ed09a554Srev13@wp.pl #define CONFIG_SYS_MAX_FLASH_SECT	12
40*ed09a554Srev13@wp.pl #define CONFIG_SYS_MAX_FLASH_BANKS	2
41*ed09a554Srev13@wp.pl 
42*ed09a554Srev13@wp.pl #define CONFIG_ENV_IS_IN_FLASH
43*ed09a554Srev13@wp.pl #define CONFIG_ENV_OFFSET		(256 << 10)
44*ed09a554Srev13@wp.pl #define CONFIG_ENV_SECT_SIZE		(128 << 10)
45*ed09a554Srev13@wp.pl #define CONFIG_ENV_SIZE			(8 << 10)
46*ed09a554Srev13@wp.pl 
47*ed09a554Srev13@wp.pl #define CONFIG_BOARD_SPECIFIC_LED
48*ed09a554Srev13@wp.pl #define CONFIG_RED_LED			110
49*ed09a554Srev13@wp.pl #define CONFIG_GREEN_LED		109
50*ed09a554Srev13@wp.pl 
51*ed09a554Srev13@wp.pl #define CONFIG_STM32_GPIO
52*ed09a554Srev13@wp.pl #define CONFIG_STM32_SERIAL
53*ed09a554Srev13@wp.pl 
54*ed09a554Srev13@wp.pl #define CONFIG_STM32_USART1
55*ed09a554Srev13@wp.pl 
56*ed09a554Srev13@wp.pl #define CONFIG_STM32_HSE_HZ		8000000
57*ed09a554Srev13@wp.pl 
58*ed09a554Srev13@wp.pl #define CONFIG_SYS_HZ_CLOCK		1000000	/* Timer is clocked at 1MHz */
59*ed09a554Srev13@wp.pl 
60*ed09a554Srev13@wp.pl #define CONFIG_CMDLINE_TAG
61*ed09a554Srev13@wp.pl #define CONFIG_SETUP_MEMORY_TAGS
62*ed09a554Srev13@wp.pl #define CONFIG_INITRD_TAG
63*ed09a554Srev13@wp.pl #define CONFIG_REVISION_TAG
64*ed09a554Srev13@wp.pl 
65*ed09a554Srev13@wp.pl #define CONFIG_SYS_CBSIZE		1024
66*ed09a554Srev13@wp.pl #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE \
67*ed09a554Srev13@wp.pl 					+ sizeof(CONFIG_SYS_PROMPT) + 16)
68*ed09a554Srev13@wp.pl 
69*ed09a554Srev13@wp.pl #define CONFIG_SYS_MAXARGS		16
70*ed09a554Srev13@wp.pl 
71*ed09a554Srev13@wp.pl #define CONFIG_SYS_MALLOC_LEN		(2 << 20)
72*ed09a554Srev13@wp.pl 
73*ed09a554Srev13@wp.pl #define CONFIG_STACKSIZE		(64 << 10)
74*ed09a554Srev13@wp.pl 
75*ed09a554Srev13@wp.pl #define CONFIG_BAUDRATE			115200
76*ed09a554Srev13@wp.pl #define CONFIG_BOOTARGS							\
77*ed09a554Srev13@wp.pl 	"console=ttystm0,115200 earlyprintk consoleblank=0 ignore_loglevel"
78*ed09a554Srev13@wp.pl #define CONFIG_BOOTCOMMAND						\
79*ed09a554Srev13@wp.pl 	"run bootcmd_romfs"
80*ed09a554Srev13@wp.pl 
81*ed09a554Srev13@wp.pl #define CONFIG_EXTRA_ENV_SETTINGS \
82*ed09a554Srev13@wp.pl 	"bootargs_romfs=uclinux.physaddr=0x08180000 root=/dev/mtdblock0\0" \
83*ed09a554Srev13@wp.pl 	"bootcmd_romfs=setenv bootargs ${bootargs} ${bootargs_romfs};" \
84*ed09a554Srev13@wp.pl 	"bootm 0x08044000 - 0x08042000\0"
85*ed09a554Srev13@wp.pl 
86*ed09a554Srev13@wp.pl #define CONFIG_BOOTDELAY		3
87*ed09a554Srev13@wp.pl #define CONFIG_AUTOBOOT
88*ed09a554Srev13@wp.pl 
89*ed09a554Srev13@wp.pl /*
90*ed09a554Srev13@wp.pl  * Command line configuration.
91*ed09a554Srev13@wp.pl  */
92*ed09a554Srev13@wp.pl #include <config_cmd_default.h>
93*ed09a554Srev13@wp.pl 
94*ed09a554Srev13@wp.pl #define CONFIG_SYS_LONGHELP
95*ed09a554Srev13@wp.pl #define CONFIG_SYS_HUSH_PARSER
96*ed09a554Srev13@wp.pl #define CONFIG_SYS_PROMPT	       "U-Boot > "
97*ed09a554Srev13@wp.pl #define CONFIG_AUTO_COMPLETE
98*ed09a554Srev13@wp.pl #define CONFIG_CMDLINE_EDITING
99*ed09a554Srev13@wp.pl 
100*ed09a554Srev13@wp.pl #define CONFIG_CMD_FLASH
101*ed09a554Srev13@wp.pl #define CONFIG_CMD_SAVEENV
102*ed09a554Srev13@wp.pl #define CONFIG_CMD_MEM
103*ed09a554Srev13@wp.pl #define CONFIG_CMD_MISC
104*ed09a554Srev13@wp.pl #define CONFIG_CMD_TIMER
105*ed09a554Srev13@wp.pl 
106*ed09a554Srev13@wp.pl #endif /* __CONFIG_H */
107