]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rock-pi-4: Use SDMA to boost eMMC performance
authorJonas Karlman <jonas@kwiboo.se>
Wed, 17 May 2023 18:40:41 +0000 (18:40 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 18 May 2023 00:44:04 +0000 (08:44 +0800)
Enable the use of SDMA mode to boost eMMC performance on ROCK Pi 4.
Also add missing flags to indicate the supported MMC modes.

Using mmc read command to read 32 MiB data shows following improvement:

  => time mmc read 10000000 2000 10000

Before: time: 3.178 seconds
After: time: 0.402 seconds

This also enables CONFIG_SPL_FIT_SIGNATURE option to help discover
any possible future issue with loading TF-A into DRAM/SRAM.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi
configs/rock-pi-4-rk3399_defconfig

index c17e769f649f2125a568c85fbc3dc06143733296..60122f3bcd6cd87ef7cf1f75a0dbf6a936abc1b8 100644 (file)
        };
 };
 
+&sdhci {
+       cap-mmc-highspeed;
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
+};
+
 &vdd_log {
        regulator-init-microvolt = <950000>;
 };
index cd93093cd2d30348ef9b9d9b38e20bd980bc2c87..4b984adc6ef82cb0be694110eae0fc1d1f6f3375 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_SYS_LOAD_ADDR=0x800800
 CONFIG_PCI=y
 CONFIG_DEBUG_UART=y
 # CONFIG_ANDROID_BOOT_IMAGE is not set
+CONFIG_SPL_FIT_SIGNATURE=y
 CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rock-pi-4a.dtb"
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_MISC_INIT_R=y
@@ -56,6 +57,7 @@ CONFIG_ROCKCHIP_EFUSE=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_DW_ROCKCHIP=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_MMC_SDHCI_ROCKCHIP=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_GMAC_ROCKCHIP=y