]> git.dujemihanovic.xyz Git - u-boot.git/commit
ram: stm32: get base address from DT
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 18 Jul 2017 15:37:25 +0000 (17:37 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 26 Jul 2017 15:29:14 +0000 (11:29 -0400)
commit1421e0a375334d8ff2f996a95dccbc5e9a1a02f0
treea4e3d4fb35b21827bee78f0fedaee9ab761aa556
parent9242ece12babc9964f35bec798c6c9e50357dde9
ram: stm32: get base address from DT

Retrieve RAM base address from DT instead of using STM32_SDRAM_FMC

For STM32F7, FMC block base address is 0xA0000000, but SDRAM
registers are located at offset 0x140 inside FMC block.
Update the stm32_fmc_regs fields with all FMC registers
to map SDRAM registers at the right address.

These additionals registers will be used later.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/ram/stm32_sdram.c