From e84cc6821807ee08843bb76d0b822bca6de736e8 Mon Sep 17 00:00:00 2001 From: yovio Date: Thu, 25 Feb 2016 11:05:08 +0800 Subject: [PATCH] Patch to support cheap / slow mmc card during kernel loading --- .../u-boot-default/u-boot-02-support-cheap-mmc.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patch/u-boot/u-boot-default/u-boot-02-support-cheap-mmc.patch diff --git a/patch/u-boot/u-boot-default/u-boot-02-support-cheap-mmc.patch b/patch/u-boot/u-boot-default/u-boot-02-support-cheap-mmc.patch new file mode 100644 index 000000000000..678dff164dbc --- /dev/null +++ b/patch/u-boot/u-boot-default/u-boot-02-support-cheap-mmc.patch @@ -0,0 +1,12 @@ +diff -Nur a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c +--- a/drivers/mmc/sunxi_mmc.c 2016-02-25 10:30:30.000000000 +0800 ++++ b//drivers/mmc/sunxi_mmc.c 2016-02-25 10:46:07.723851155 +0800 + +@@ -269,6 +269,6 @@ + unsigned i; + unsigned *buff = (unsigned int *)(reading ? data->dest : data->src); + unsigned byte_cnt = data->blocksize * data->blocks; +- unsigned timeout_msecs = byte_cnt >> 8; ++ unsigned timeout_msecs = byte_cnt >> 6; + if (timeout_msecs < 2000) + timeout_msecs = 2000; \ No newline at end of file