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