xref: /rk3399_rockchip-uboot/include/configs/stm32f746-disco.h (revision 1a73bd842e5181ef82d59df0bf4770c6405deaa5)
1e66c49faSVikas Manocha /*
2e66c49faSVikas Manocha  * (C) Copyright 2016
3e66c49faSVikas Manocha  * Vikas Manocha, <vikas.manocha@st.com>
4e66c49faSVikas Manocha  *
5e66c49faSVikas Manocha  * SPDX-License-Identifier:	GPL-2.0+
6e66c49faSVikas Manocha  */
7e66c49faSVikas Manocha 
8e66c49faSVikas Manocha #ifndef __CONFIG_H
9e66c49faSVikas Manocha #define __CONFIG_H
10e66c49faSVikas Manocha 
11e66c49faSVikas Manocha #define CONFIG_SYS_FLASH_BASE		0x08000000
12e66c49faSVikas Manocha #define CONFIG_SYS_INIT_SP_ADDR		0x20050000
13b9747696SVikas Manocha 
14b9747696SVikas Manocha #ifdef CONFIG_SUPPORT_SPL
15*1a73bd84SVikas Manocha #define CONFIG_SYS_TEXT_BASE		0x08008000
16*1a73bd84SVikas Manocha #define CONFIG_SYS_LOAD_ADDR		0x08008000
17b9747696SVikas Manocha #else
18b9747696SVikas Manocha #define CONFIG_SYS_TEXT_BASE		CONFIG_SYS_FLASH_BASE
19*1a73bd84SVikas Manocha #define CONFIG_SYS_LOAD_ADDR		0xC0400000
20*1a73bd84SVikas Manocha #define CONFIG_LOADADDR			0xC0400000
21b9747696SVikas Manocha #endif
22e66c49faSVikas Manocha 
23e66c49faSVikas Manocha /*
24e66c49faSVikas Manocha  * Configuration of the external SDRAM memory
25e66c49faSVikas Manocha  */
26e66c49faSVikas Manocha #define CONFIG_NR_DRAM_BANKS		1
27e66c49faSVikas Manocha 
28adcc90b4SVikas Manocha #define CONFIG_SYS_MAX_FLASH_SECT	8
29adcc90b4SVikas Manocha #define CONFIG_SYS_MAX_FLASH_BANKS	1
30e66c49faSVikas Manocha 
31e66c49faSVikas Manocha #define CONFIG_ENV_IS_NOWHERE
32e66c49faSVikas Manocha #define CONFIG_ENV_SIZE			(8 << 10)
33e66c49faSVikas Manocha 
34adcc90b4SVikas Manocha #define CONFIG_STM32_FLASH
35e66c49faSVikas Manocha #define CONFIG_STM32X7_SERIAL
36e66c49faSVikas Manocha 
37b20b70fcSMichael Kurz #define CONFIG_DW_GMAC_DEFAULT_DMA_PBL	(8)
38b20b70fcSMichael Kurz #define CONFIG_DW_ALTDESCRIPTOR
39b20b70fcSMichael Kurz #define CONFIG_MII
40fc0d3dbcSMichael Kurz #define CONFIG_PHY_SMSC
41b20b70fcSMichael Kurz 
42ba0a3c16SToshifumi NISHINAGA #define CONFIG_STM32_HSE_HZ		25000000
43ba0a3c16SToshifumi NISHINAGA #define CONFIG_SYS_CLK_FREQ		200000000 /* 200 MHz */
44e66c49faSVikas Manocha #define CONFIG_SYS_HZ_CLOCK		1000000	/* Timer is clocked at 1MHz */
45e66c49faSVikas Manocha 
46e66c49faSVikas Manocha #define CONFIG_CMDLINE_TAG
47e66c49faSVikas Manocha #define CONFIG_SETUP_MEMORY_TAGS
48e66c49faSVikas Manocha #define CONFIG_INITRD_TAG
49e66c49faSVikas Manocha #define CONFIG_REVISION_TAG
50e66c49faSVikas Manocha 
51e66c49faSVikas Manocha #define CONFIG_SYS_CBSIZE		1024
52e66c49faSVikas Manocha #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE \
53e66c49faSVikas Manocha 					+ sizeof(CONFIG_SYS_PROMPT) + 16)
54e66c49faSVikas Manocha 
55e66c49faSVikas Manocha #define CONFIG_SYS_MAXARGS		16
56b20b70fcSMichael Kurz #define CONFIG_SYS_MALLOC_LEN		(1 * 1024 * 1024)
57e66c49faSVikas Manocha 
58e66c49faSVikas Manocha #define CONFIG_BOOTARGS							\
59e66c49faSVikas Manocha 	"console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
60e66c49faSVikas Manocha #define CONFIG_BOOTCOMMAND						\
61e66c49faSVikas Manocha 	"run bootcmd_romfs"
62e66c49faSVikas Manocha 
63e66c49faSVikas Manocha #define CONFIG_EXTRA_ENV_SETTINGS \
64e66c49faSVikas Manocha 	"bootargs_romfs=uclinux.physaddr=0x08180000 root=/dev/mtdblock0\0" \
65e66c49faSVikas Manocha 	"bootcmd_romfs=setenv bootargs ${bootargs} ${bootargs_romfs};" \
66e66c49faSVikas Manocha 	"bootm 0x08044000 - 0x08042000\0"
67e66c49faSVikas Manocha 
68e66c49faSVikas Manocha 
69e66c49faSVikas Manocha /*
70e66c49faSVikas Manocha  * Command line configuration.
71e66c49faSVikas Manocha  */
72e66c49faSVikas Manocha #define CONFIG_SYS_LONGHELP
73e66c49faSVikas Manocha #define CONFIG_AUTO_COMPLETE
74e66c49faSVikas Manocha #define CONFIG_CMDLINE_EDITING
75dc11d83aSVikas Manocha #define CONFIG_CMD_CACHE
762f80a9f7SVikas Manocha #define CONFIG_BOARD_LATE_INIT
77a241c241SVikas Manocha #define CONFIG_DISPLAY_BOARDINFO
78b9747696SVikas Manocha 
79b9747696SVikas Manocha /* For SPL */
80b9747696SVikas Manocha #ifdef CONFIG_SUPPORT_SPL
81b9747696SVikas Manocha #define CONFIG_SPL_STACK		CONFIG_SYS_INIT_SP_ADDR
82b9747696SVikas Manocha #define CONFIG_SPL_FRAMEWORK
83b9747696SVikas Manocha #define CONFIG_SPL_BOARD_INIT
84b9747696SVikas Manocha #define CONFIG_SPL_TEXT_BASE		CONFIG_SYS_FLASH_BASE
85b9747696SVikas Manocha #define CONFIG_SYS_MONITOR_LEN		(512 * 1024)
86b9747696SVikas Manocha #define CONFIG_SYS_SPL_LEN		0x00008000
87*1a73bd84SVikas Manocha #define CONFIG_SYS_UBOOT_START		0x080083FD
88b9747696SVikas Manocha #define CONFIG_SYS_UBOOT_BASE		(CONFIG_SYS_FLASH_BASE + \
89b9747696SVikas Manocha 					 CONFIG_SYS_SPL_LEN)
9055a3ef71SVikas Manocha 
9155a3ef71SVikas Manocha /* DT blob (fdt) address */
9255a3ef71SVikas Manocha #define CONFIG_SYS_FDT_BASE		(CONFIG_SYS_FLASH_BASE + \
9355a3ef71SVikas Manocha 					0x1C0000)
94b9747696SVikas Manocha #endif
95b9747696SVikas Manocha /* For SPL ends */
96b9747696SVikas Manocha 
97e66c49faSVikas Manocha #endif /* __CONFIG_H */
98