]> git.baikalelectronics.ru Git - uboot.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)
commit685dfb011f42afa9ba5a2fcffcdc1487dc2a845d
treea4e3d4fb35b21827bee78f0fedaee9ab761aa556
parentece048ddc6e67e301d42666184184a5b28dc6c2b
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