]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: H616: add LPDDR4 DRAM support
authorMikhail Kalashnikov <iuncuim@gmail.com>
Sat, 11 Nov 2023 09:10:00 +0000 (12:10 +0300)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 12 Nov 2023 18:04:32 +0000 (18:04 +0000)
commit4b02f0120a4bb2a5d7081aef8cef6a4ca57e9db2
treef7c5cfc88b43a7597d7be30d7651322d65ae0be2
parentb71129ca3b469ccb22182c34d8cc05a742795582
sunxi: H616: add LPDDR4 DRAM support

The H616 SoC family has support for several types of DRAM: DDR3,
LPDDR3, DDR4 and LPDDR4.
At the moment, the driver only supports DDR3 and LPDDR3 memory.
Let's extend the driver to support the LPDDR4 memory. This type
of memory widely used in device with T507(-H) SoC and new orangepi
zero3 with H618.
The compatibility with T507 is not yet complete, because there
is difference in the phy_init array.
The LPDDR4-2133 timings correspond to DRAM Rayson RS1G32LO4D2BDS-53BT
found on the NOR SPI from the Orangepi Zero 3 4GB.

Signed-off-by: Mikhail Kalashnikov <iuncuim@gmail.com>
Tested-by: Piotr Oniszczuk <piotr.oniszczuk@gmail.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Acked-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/include/asm/arch-sunxi/dram_sun50i_h616.h
arch/arm/mach-sunxi/Kconfig
arch/arm/mach-sunxi/dram_sun50i_h616.c
arch/arm/mach-sunxi/dram_timings/Makefile
arch/arm/mach-sunxi/dram_timings/h616_lpddr4_2133.c [new file with mode: 0644]