On Mon, Aug 19, 2024 at 06:17:03PM +0800, Chia-Wei Wang wrote: > Add driver for AST2700 to initialize DRAM in SPL. > > This patch also refactors the Kconfig dependency of > Aspeed DRAM drivers as some of them are shared among > the file structures of RV and ARM ISAs. > > Signed-off-by: Chia-Wei Wang <chiawei_w...@aspeedtech.com> > --- > This patch has many checkpatch.pl warning due to the two > vendor-provided sources for DDR PHY initialization. > > Most of the warnings are about the camel case coding style > and line length checks. > > If possible, we wish to keep it as is for better vendor > support in case debugging is needed. > > arch/riscv/include/asm/arch-ast2700/sdram.h | 137 + > drivers/ram/Makefile | 2 +- > drivers/ram/aspeed/Kconfig | 27 +- > drivers/ram/aspeed/Makefile | 1 + > ..._ddrphy_phyinit_ddr4-3200-nodimm-train2D.c | 2700 +++++++ > ..._ddrphy_phyinit_ddr5-3200-nodimm-train2D.c | 6930 +++++++++++++++++ > drivers/ram/aspeed/sdram_ast2700.c | 1036 +++ > 7 files changed, 10828 insertions(+), 5 deletions(-) > create mode 100644 arch/riscv/include/asm/arch-ast2700/sdram.h > create mode 100644 > drivers/ram/aspeed/dwc_ddrphy_phyinit_ddr4-3200-nodimm-train2D.c > create mode 100644 > drivers/ram/aspeed/dwc_ddrphy_phyinit_ddr5-3200-nodimm-train2D.c > create mode 100644 drivers/ram/aspeed/sdram_ast2700.c
Acked-by: Leo Yu-Chi Liang <ycli...@andestech.com>