diff options
author | Vikas Manocha <vikas.manocha@st.com> | 2016-03-09 23:18:14 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-26 22:49:28 (GMT) |
commit | adcc90b4014e683c06af95f48b247b755e9381d7 (patch) | |
tree | b3ccc219db106a843995d4d8b68a8ffc5a173746 /arch/arm/include | |
parent | 9ecb0c416c68d3105bc9b6607bc8601cab2ecf35 (diff) | |
download | u-boot-adcc90b4014e683c06af95f48b247b755e9381d7.tar.xz |
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 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-stm32f7/stm32.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-stm32f7/stm32.h b/arch/arm/include/asm/arch-stm32f7/stm32.h index 713eb2e..68bdab0 100644 --- a/arch/arm/include/asm/arch-stm32f7/stm32.h +++ b/arch/arm/include/asm/arch-stm32f7/stm32.h @@ -50,6 +50,12 @@ #define SDRAM_FMC_BASE (AHB3_PERIPH_BASE + 0x4A0000140) +static const u32 sect_sz_kb[CONFIG_SYS_MAX_FLASH_SECT] = { + [0 ... 3] = 32 * 1024, + [4] = 128 * 1024, + [5 ... 7] = 256 * 1024 +}; + enum clock { CLOCK_CORE, CLOCK_AHB, |