build/patch/u-boot/u-boot-sunxi/board_bigtreetech-cb1/allwinner-h616-fix-error-boot-from-emmc.patch

27 lines
717 B
Diff

From ae50dd46d3bacea389ffb447aefcf4e7cd2f3fe8 Mon Sep 17 00:00:00 2001
From: Alan <Alan>
Date: Fri, 19 May 2023 17:14:25 +0800
Subject: [PATCH 08/11] Fix: boot from MMC2(eMMC), mmc_Load_image_raw_sector:
mmc block read error
---
drivers/mmc/sunxi_mmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index 23bc7da917..c500716ee5 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b/drivers/mmc/sunxi_mmc.c
@@ -536,7 +536,7 @@ struct mmc *sunxi_mmc_init(int sdc_no)
cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
cfg->f_min = 400000;
- cfg->f_max = 52000000;
+ cfg->f_max = 20000000;
if (mmc_resource_init(sdc_no) != 0)
return NULL;
--
2.34.1