xref: /rk3399_rockchip-uboot/include/configs/stm32f746-disco.h (revision fc0d3dbc6e5e841309611bf900adc88c7d439b47)
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_THUMB_BUILD
12adcc90b4SVikas Manocha /*#define CONFIG_SYS_NO_FLASH*/
13e66c49faSVikas Manocha 
14e66c49faSVikas Manocha #define CONFIG_SYS_FLASH_BASE		0x08000000
15e66c49faSVikas Manocha #define CONFIG_SYS_INIT_SP_ADDR		0x20050000
16e66c49faSVikas Manocha #define CONFIG_SYS_TEXT_BASE		0x08000000
17e66c49faSVikas Manocha 
18e66c49faSVikas Manocha #define CONFIG_SYS_ICACHE_OFF
19e66c49faSVikas Manocha #define CONFIG_SYS_DCACHE_OFF
20e66c49faSVikas Manocha 
21e66c49faSVikas Manocha /*
22e66c49faSVikas Manocha  * Configuration of the external SDRAM memory
23e66c49faSVikas Manocha  */
24e66c49faSVikas Manocha #define CONFIG_NR_DRAM_BANKS		1
2525c1b135SToshifumi NISHINAGA #define CONFIG_SYS_RAM_SIZE		(8 * 1024 * 1024)
26e66c49faSVikas Manocha #define CONFIG_SYS_RAM_CS		1
27e66c49faSVikas Manocha #define CONFIG_SYS_RAM_FREQ_DIV		2
2825c1b135SToshifumi NISHINAGA #define CONFIG_SYS_RAM_BASE		0xC0000000
29e66c49faSVikas Manocha #define CONFIG_SYS_SDRAM_BASE		CONFIG_SYS_RAM_BASE
3025c1b135SToshifumi NISHINAGA #define CONFIG_SYS_LOAD_ADDR		0xC0400000
3125c1b135SToshifumi NISHINAGA #define CONFIG_LOADADDR			0xC0400000
32e66c49faSVikas Manocha 
33adcc90b4SVikas Manocha #define CONFIG_SYS_MAX_FLASH_SECT	8
34adcc90b4SVikas Manocha #define CONFIG_SYS_MAX_FLASH_BANKS	1
35e66c49faSVikas Manocha 
36e66c49faSVikas Manocha #define CONFIG_ENV_IS_NOWHERE
37e66c49faSVikas Manocha #define CONFIG_ENV_SIZE			(8 << 10)
38e66c49faSVikas Manocha 
39e66c49faSVikas Manocha #define CONFIG_STM32_GPIO
40adcc90b4SVikas Manocha #define CONFIG_STM32_FLASH
41e66c49faSVikas Manocha #define CONFIG_STM32X7_SERIAL
42e66c49faSVikas Manocha 
43b20b70fcSMichael Kurz #define CONFIG_DESIGNWARE_ETH
44b20b70fcSMichael Kurz #define CONFIG_DW_GMAC_DEFAULT_DMA_PBL	(8)
45b20b70fcSMichael Kurz #define CONFIG_DW_ALTDESCRIPTOR
46b20b70fcSMichael Kurz #define CONFIG_MII
47*fc0d3dbcSMichael Kurz #define CONFIG_PHY_SMSC
48b20b70fcSMichael Kurz 
49ba0a3c16SToshifumi NISHINAGA #define CONFIG_STM32_HSE_HZ		25000000
50ba0a3c16SToshifumi NISHINAGA #define CONFIG_SYS_CLK_FREQ		200000000 /* 200 MHz */
51e66c49faSVikas Manocha #define CONFIG_SYS_HZ_CLOCK		1000000	/* Timer is clocked at 1MHz */
52e66c49faSVikas Manocha 
53e66c49faSVikas Manocha #define CONFIG_CMDLINE_TAG
54e66c49faSVikas Manocha #define CONFIG_SETUP_MEMORY_TAGS
55e66c49faSVikas Manocha #define CONFIG_INITRD_TAG
56e66c49faSVikas Manocha #define CONFIG_REVISION_TAG
57e66c49faSVikas Manocha 
58e66c49faSVikas Manocha #define CONFIG_SYS_CBSIZE		1024
59e66c49faSVikas Manocha #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE \
60e66c49faSVikas Manocha 					+ sizeof(CONFIG_SYS_PROMPT) + 16)
61e66c49faSVikas Manocha 
62e66c49faSVikas Manocha #define CONFIG_SYS_MAXARGS		16
63b20b70fcSMichael Kurz #define CONFIG_SYS_MALLOC_LEN		(1 * 1024 * 1024)
64b20b70fcSMichael Kurz #define CONFIG_STACKSIZE		(256 * 1024)
65e66c49faSVikas Manocha 
66e66c49faSVikas Manocha #define CONFIG_BAUDRATE			115200
67e66c49faSVikas Manocha #define CONFIG_BOOTARGS							\
68e66c49faSVikas Manocha 	"console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
69e66c49faSVikas Manocha #define CONFIG_BOOTCOMMAND						\
70e66c49faSVikas Manocha 	"run bootcmd_romfs"
71e66c49faSVikas Manocha 
72e66c49faSVikas Manocha #define CONFIG_EXTRA_ENV_SETTINGS \
73e66c49faSVikas Manocha 	"bootargs_romfs=uclinux.physaddr=0x08180000 root=/dev/mtdblock0\0" \
74e66c49faSVikas Manocha 	"bootcmd_romfs=setenv bootargs ${bootargs} ${bootargs_romfs};" \
75e66c49faSVikas Manocha 	"bootm 0x08044000 - 0x08042000\0"
76e66c49faSVikas Manocha 
77e66c49faSVikas Manocha 
78e66c49faSVikas Manocha /*
79e66c49faSVikas Manocha  * Command line configuration.
80e66c49faSVikas Manocha  */
81e66c49faSVikas Manocha #define CONFIG_SYS_LONGHELP
82e66c49faSVikas Manocha #define CONFIG_AUTO_COMPLETE
83e66c49faSVikas Manocha #define CONFIG_CMDLINE_EDITING
84e66c49faSVikas Manocha 
85e66c49faSVikas Manocha #define CONFIG_CMD_MEM
86e66c49faSVikas Manocha #endif /* __CONFIG_H */
87