sun50iw6 legacy: Add emmc_max_frequency parameter to set the maximum frequency of the eMMC

This commit is contained in:
leeboby 2021-03-30 09:40:21 +08:00
parent af2f7cb99e
commit 3f7d056199
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ setenv rootfstype "ext4"
setenv console "both" setenv console "both"
setenv docker_optimizations "off" setenv docker_optimizations "off"
setenv bootlogo "false" setenv bootlogo "false"
setenv emmc_max_frequency "50000000"
# Print boot source # Print boot source
itest.b *0x10028 == 0x00 && echo "U-boot loaded from SD" itest.b *0x10028 == 0x00 && echo "U-boot loaded from SD"
@ -51,6 +52,7 @@ fdt set /soc/disp@01000000 fb0_height <${fb0_height}>
# Orange Pi 3 without eMMC needs to turn off sdc2 # Orange Pi 3 without eMMC needs to turn off sdc2
fdt set /soc/sdmmc@04022000 status ${emmc_status} fdt set /soc/sdmmc@04022000 status ${emmc_status}
fdt set /soc/sdmmc@04022000 max-frequency <${emmc_max_frequency}>
fdt addr -c ${fdt_addr_r} fdt addr -c ${fdt_addr_r}