From: Patrick Delaunay Date: Wed, 10 Apr 2019 14:09:20 +0200 Subject: [U-Boot] [PATCH 0/9] stm32mp1: ram: driver update Message-ID: <1554898169-31323-1-git-send-email-patrick.delaunay@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Serie with some update on the DDR driver for stm32mp1 boards Warning: the serie need to be apply after 1) http://patchwork.ozlabs.org/project/uboot/list/?series=89855 => for STPMIC1 rename 2) http://patchwork.ozlabs.org/project/uboot/list/?series=91497 => for DK1/DK2, DDR configuration The serie also introduce the DDR interactive mode described in: https://wiki.st.com/stm32mpu/index.php/U-Boot_SPL:_DDR_interactive_mode This mode is used by the CubeMX: DDR tuning tool. https://wiki.st.com/stm32mpu/index.php/STM32CubeMX The DDR interactive mode is NOT activated by default because it increase the SPL size and slow down the boot time (200ms wait added). Patrick Delaunay (9): stm32mp1: ram: update mask for operating mode stm32mp1: ram: increase the delay after reset to 128 cycles stm32mp1: ram: change ddr speed to kHz ARM: dts: stm32mp1: DDR config v1.44 stm32mp1: ram: update parameter array initialization stm32mp1: ram: add support for LPDDR2/LPDDR3 stm32mp1: ram: add interactive mode for DDR configuration stm32mp1: ram: add tests in DDR interactive mode stm32mp1: ram: add tuning in DDR interactive mode arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binG.dtsi | 8 +- arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binG.dtsi | 24 +- arch/arm/mach-stm32mp/include/mach/ddr.h | 9 +- board/st/stm32mp1/board.c | 171 ++- common/Makefile | 1 + .../memory-controllers/st,stm32mp1-ddr.txt | 6 +- drivers/ram/stm32mp1/Kconfig | 37 + drivers/ram/stm32mp1/Makefile | 8 + drivers/ram/stm32mp1/stm32mp1_ddr.c | 368 ++++- drivers/ram/stm32mp1/stm32mp1_ddr.h | 4 +- drivers/ram/stm32mp1/stm32mp1_ddr_regs.h | 3 + drivers/ram/stm32mp1/stm32mp1_interactive.c | 483 +++++++ drivers/ram/stm32mp1/stm32mp1_ram.c | 18 +- drivers/ram/stm32mp1/stm32mp1_tests.c | 1426 ++++++++++++++++++++ drivers/ram/stm32mp1/stm32mp1_tests.h | 34 + drivers/ram/stm32mp1/stm32mp1_tuning.c | 1380 +++++++++++++++++++ 16 files changed, 3876 insertions(+), 104 deletions(-) create mode 100644 drivers/ram/stm32mp1/stm32mp1_interactive.c create mode 100644 drivers/ram/stm32mp1/stm32mp1_tests.c create mode 100644 drivers/ram/stm32mp1/stm32mp1_tests.h create mode 100644 drivers/ram/stm32mp1/stm32mp1_tuning.c -- 2.7.4