diff options
author | Vikas Manocha <vikas.manocha@st.com> | 2016-03-09 15:18:14 -0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-26 18:49:28 -0400 |
commit | adcc90b4014e683c06af95f48b247b755e9381d7 (patch) | |
tree | b3ccc219db106a843995d4d8b68a8ffc5a173746 /include/configs | |
parent | 9ecb0c416c68d3105bc9b6607bc8601cab2ecf35 (diff) |
stm32f746-disco: enable flash support
This patch enables embedded flash for stm32f746 discovery board.
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/stm32f746-disco.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h index e1b8bcb084..807ab6574e 100644 --- a/include/configs/stm32f746-disco.h +++ b/include/configs/stm32f746-disco.h @@ -9,7 +9,7 @@ #define __CONFIG_H #define CONFIG_SYS_THUMB_BUILD -#define CONFIG_SYS_NO_FLASH +/*#define CONFIG_SYS_NO_FLASH*/ #define CONFIG_OF_LIBFDT #define CONFIG_BOARD_EARLY_INIT_F @@ -33,17 +33,14 @@ #define CONFIG_SYS_LOAD_ADDR 0x20000000 #define CONFIG_LOADADDR 0x20000000 -#define CONFIG_SYS_MAX_FLASH_SECT 12 -#define CONFIG_SYS_MAX_FLASH_BANKS 2 +#define CONFIG_SYS_MAX_FLASH_SECT 8 +#define CONFIG_SYS_MAX_FLASH_BANKS 1 -#ifndef CONFIG_SYS_NO_FLASH -#define CONFIG_ENV_IS_IN_FLASH -#else #define CONFIG_ENV_IS_NOWHERE -#endif #define CONFIG_ENV_SIZE (8 << 10) #define CONFIG_STM32_GPIO +#define CONFIG_STM32_FLASH #define CONFIG_STM32X7_SERIAL #define CONFIG_SYS_CLK_FREQ 16*1000*1000 /* 180 MHz */ |