From: Maksim Kiselev <biguncle...@gmail.com> Hi friends,
This patchset is a continuation of RFC https://lore.kernel.org/u-boot/20240330175948.80931-1-biguncle...@gmail.com/ It extends the previous version by adding sd and emmc nodes to lpi4a DT. And enables required options in th1520_lpi4a_defconfig. Also I did some testing of emmc on the lpi4a board and got following results: EMMC - 8Gb 8GTF4R (KLM8G1GETF-B041) Sequential read\write of 1Gb with ADMA2 MB\s READ WRITE ------------------------------ MMC legacy 23 22 MMC_HS 23 22 MMC_HS_52 46 38 MMC_DDR_52 86 47 MMC_HS_200 176 48 MMC_HS_400 324 48 MMC_HS_400_ES 324 48 The results obtained are quite close to the values indicated in the Samsung's datasheet*: 330MB\s - seq READ 50MB\s - seq WRITE * Test Condition : Bus width x8, HS400, 512KB data transfer, w/o file system overhead, measured on Samsung’s internal board. Best regards, Maksim Maksim Kiselev (3): mmc: snps_sdhci: Add sdhci driver support for TH1520 SoC riscv: dts: t-head: Add sdhci and emmc nodes configs: th1520_lpi4a: enable mmc controller support arch/riscv/dts/th1520-lichee-module-4a.dtsi | 18 + arch/riscv/dts/th1520.dtsi | 34 ++ configs/th1520_lpi4a_defconfig | 11 +- drivers/mmc/Kconfig | 12 + drivers/mmc/Makefile | 1 + drivers/mmc/snps_sdhci.c | 494 ++++++++++++++++++++ 6 files changed, 569 insertions(+), 1 deletion(-) create mode 100644 drivers/mmc/snps_sdhci.c -- 2.45.2