]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rockpro64: Use SDMA to boost eMMC performance
authorJonas Karlman <jonas@kwiboo.se>
Sat, 6 May 2023 17:41:12 +0000 (17:41 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 18 May 2023 00:34:45 +0000 (08:34 +0800)
Enable the use of SDMA mode to boost eMMC performance on RockPro64.
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-rockpro64-u-boot.dtsi
configs/rockpro64-rk3399_defconfig

index 32a83b2855ac434e23b6d75c2d610df9bf6f6a72..bd864d0670187d36a694412150c322e258839a23 100644 (file)
        };
 };
 
+&sdhci {
+       cap-mmc-highspeed;
+       mmc-ddr-1_8v;
+};
+
 &spi1 {
        spi_flash: flash@0 {
                bootph-all;
index 2b89b1baba5141fc9cf35a7a3b3718b580bcc1ab..0ca2cecade258f7d4cff61e2d653c24df33c9c0e 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_SPL_SPI=y
 CONFIG_SYS_LOAD_ADDR=0x800800
 CONFIG_PCI=y
 CONFIG_DEBUG_UART=y
+CONFIG_SPL_FIT_SIGNATURE=y
 CONFIG_BOOTSTAGE=y
 CONFIG_BOOTSTAGE_REPORT=y
 CONFIG_USE_PREBOOT=y
@@ -63,6 +64,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_SF_DEFAULT_BUS=1
 CONFIG_SPI_FLASH_GIGADEVICE=y