diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-11-12 10:19:54 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-13 15:20:40 +0100 |
commit | 2905fb431af7962c8fe7107326c051df7f4503f3 (patch) | |
tree | b1312660faf431848aba615d520babdc3f122e13 /arch/arm/mach-stm32mp/include/mach/entry.h | |
parent | f0f07ea7dc50847be5f775fedf926a1c6a8b6852 (diff) | |
download | barebox-2905fb431af7962c8fe7107326c051df7f4503f3.tar.gz barebox-2905fb431af7962c8fe7107326c051df7f4503f3.tar.xz |
ARM: stm32mp: add basic DDR controller driver
The STM32MP DDR Controller has a very flexible way of mapping address
bits to columns/rows/banks. This is so far configured by the ARM TF-A
as part of the SDRAM setup, so we don't need to do this in barebox.
Nevertheless reading it out in barebox, allows us to determine unused
address bits and thus the total size of SDRAM configured.
Add a simple driver that parses the ddrctrl node and adds an appropriate
memory bank. This can later be used to remove explicit calls to
arm_add_mem_device in board code.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-stm32mp/include/mach/entry.h')
0 files changed, 0 insertions, 0 deletions