ram: thead: Add initial DDR controller support for TH1520
authorYao Zi <ziyao@disroot.org>
Tue, 13 May 2025 09:04:57 +0000 (09:04 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 21 May 2025 08:49:52 +0000 (16:49 +0800)
commit05240d541a407fbb62eec43f40a2b831bb1c1fe0
tree9f30b843479f659a7adccee22f94fcab3805da71
parent5fe9ced3552ddeb40478b56507d3b48968be2939
ram: thead: Add initial DDR controller support for TH1520

This patch cleans the vendor code of DDR initialization up, converts the
driver to fit in DM framework and use a firmware[1] packaged by binman to
ship PHY configuration.

Currently the driver is only capable of initializing the controller to
work with dual-rank 3733MHz LPDDR4, which is shipped by 16GiB variants
of LicheePi 4A boards and I could test with. Support for other
configurations could be easily added later.

Link: https://github.com/ziyao233/th1520-firmware
Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/ram/Kconfig
drivers/ram/Makefile
drivers/ram/thead/Kconfig [new file with mode: 0644]
drivers/ram/thead/Makefile [new file with mode: 0644]
drivers/ram/thead/th1520_ddr.c [new file with mode: 0644]