xref: /rk3399_rockchip-uboot/include/configs/stm32f746-disco.h (revision e66c49fa930ed002c507ae0217b4b274c25675fb)
1*e66c49faSVikas Manocha /*
2*e66c49faSVikas Manocha  * (C) Copyright 2016
3*e66c49faSVikas Manocha  * Vikas Manocha, <vikas.manocha@st.com>
4*e66c49faSVikas Manocha  *
5*e66c49faSVikas Manocha  * SPDX-License-Identifier:	GPL-2.0+
6*e66c49faSVikas Manocha  */
7*e66c49faSVikas Manocha 
8*e66c49faSVikas Manocha #ifndef __CONFIG_H
9*e66c49faSVikas Manocha #define __CONFIG_H
10*e66c49faSVikas Manocha 
11*e66c49faSVikas Manocha #define CONFIG_SYS_THUMB_BUILD
12*e66c49faSVikas Manocha #define CONFIG_SYS_NO_FLASH
13*e66c49faSVikas Manocha 
14*e66c49faSVikas Manocha #define CONFIG_OF_LIBFDT
15*e66c49faSVikas Manocha #define CONFIG_BOARD_EARLY_INIT_F
16*e66c49faSVikas Manocha 
17*e66c49faSVikas Manocha #define CONFIG_SYS_FLASH_BASE		0x08000000
18*e66c49faSVikas Manocha #define CONFIG_SYS_INIT_SP_ADDR		0x20050000
19*e66c49faSVikas Manocha #define CONFIG_SYS_TEXT_BASE		0x08000000
20*e66c49faSVikas Manocha 
21*e66c49faSVikas Manocha #define CONFIG_SYS_ICACHE_OFF
22*e66c49faSVikas Manocha #define CONFIG_SYS_DCACHE_OFF
23*e66c49faSVikas Manocha 
24*e66c49faSVikas Manocha /*
25*e66c49faSVikas Manocha  * Configuration of the external SDRAM memory
26*e66c49faSVikas Manocha  */
27*e66c49faSVikas Manocha #define CONFIG_NR_DRAM_BANKS		1
28*e66c49faSVikas Manocha #define CONFIG_SYS_RAM_SIZE		((64 + 192) << 10)
29*e66c49faSVikas Manocha #define CONFIG_SYS_RAM_CS		1
30*e66c49faSVikas Manocha #define CONFIG_SYS_RAM_FREQ_DIV		2
31*e66c49faSVikas Manocha #define CONFIG_SYS_RAM_BASE		0x20000000
32*e66c49faSVikas Manocha #define CONFIG_SYS_SDRAM_BASE		CONFIG_SYS_RAM_BASE
33*e66c49faSVikas Manocha #define CONFIG_SYS_LOAD_ADDR		0x20000000
34*e66c49faSVikas Manocha #define CONFIG_LOADADDR			0x20000000
35*e66c49faSVikas Manocha 
36*e66c49faSVikas Manocha #define CONFIG_SYS_MAX_FLASH_SECT	12
37*e66c49faSVikas Manocha #define CONFIG_SYS_MAX_FLASH_BANKS	2
38*e66c49faSVikas Manocha 
39*e66c49faSVikas Manocha #ifndef CONFIG_SYS_NO_FLASH
40*e66c49faSVikas Manocha #define CONFIG_ENV_IS_IN_FLASH
41*e66c49faSVikas Manocha #else
42*e66c49faSVikas Manocha #define CONFIG_ENV_IS_NOWHERE
43*e66c49faSVikas Manocha #endif
44*e66c49faSVikas Manocha #define CONFIG_ENV_SIZE			(8 << 10)
45*e66c49faSVikas Manocha 
46*e66c49faSVikas Manocha #define CONFIG_STM32_GPIO
47*e66c49faSVikas Manocha #define CONFIG_STM32X7_SERIAL
48*e66c49faSVikas Manocha 
49*e66c49faSVikas Manocha #define CONFIG_SYS_CLK_FREQ		16*1000*1000 /* 180 MHz */
50*e66c49faSVikas Manocha #define CONFIG_SYS_HZ_CLOCK		1000000	/* Timer is clocked at 1MHz */
51*e66c49faSVikas Manocha 
52*e66c49faSVikas Manocha #define CONFIG_CMDLINE_TAG
53*e66c49faSVikas Manocha #define CONFIG_SETUP_MEMORY_TAGS
54*e66c49faSVikas Manocha #define CONFIG_INITRD_TAG
55*e66c49faSVikas Manocha #define CONFIG_REVISION_TAG
56*e66c49faSVikas Manocha 
57*e66c49faSVikas Manocha #define CONFIG_SYS_CBSIZE		1024
58*e66c49faSVikas Manocha #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE \
59*e66c49faSVikas Manocha 					+ sizeof(CONFIG_SYS_PROMPT) + 16)
60*e66c49faSVikas Manocha 
61*e66c49faSVikas Manocha #define CONFIG_SYS_MAXARGS		16
62*e66c49faSVikas Manocha #define CONFIG_SYS_MALLOC_LEN		(16 * 1024)
63*e66c49faSVikas Manocha #define CONFIG_STACKSIZE		(64 << 10)
64*e66c49faSVikas Manocha 
65*e66c49faSVikas Manocha #define CONFIG_BAUDRATE			115200
66*e66c49faSVikas Manocha #define CONFIG_BOOTARGS							\
67*e66c49faSVikas Manocha 	"console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
68*e66c49faSVikas Manocha #define CONFIG_BOOTCOMMAND						\
69*e66c49faSVikas Manocha 	"run bootcmd_romfs"
70*e66c49faSVikas Manocha 
71*e66c49faSVikas Manocha #define CONFIG_EXTRA_ENV_SETTINGS \
72*e66c49faSVikas Manocha 	"bootargs_romfs=uclinux.physaddr=0x08180000 root=/dev/mtdblock0\0" \
73*e66c49faSVikas Manocha 	"bootcmd_romfs=setenv bootargs ${bootargs} ${bootargs_romfs};" \
74*e66c49faSVikas Manocha 	"bootm 0x08044000 - 0x08042000\0"
75*e66c49faSVikas Manocha 
76*e66c49faSVikas Manocha #define CONFIG_BOOTDELAY		3
77*e66c49faSVikas Manocha 
78*e66c49faSVikas Manocha /*
79*e66c49faSVikas Manocha  * Command line configuration.
80*e66c49faSVikas Manocha  */
81*e66c49faSVikas Manocha #define CONFIG_SYS_LONGHELP
82*e66c49faSVikas Manocha #define CONFIG_SYS_HUSH_PARSER
83*e66c49faSVikas Manocha #define CONFIG_AUTO_COMPLETE
84*e66c49faSVikas Manocha #define CONFIG_CMDLINE_EDITING
85*e66c49faSVikas Manocha 
86*e66c49faSVikas Manocha #define CONFIG_CMD_MEM
87*e66c49faSVikas Manocha #define CONFIG_CMD_TIMER
88*e66c49faSVikas Manocha #undef CONFIG_CMD_IMLS
89*e66c49faSVikas Manocha #endif /* __CONFIG_H */
90