Skip to content

Commit

Permalink
Patch to support cheap / slow mmc card during kernel loading
Browse files Browse the repository at this point in the history
  • Loading branch information
yovio committed Feb 25, 2016
1 parent 320d6bf commit e84cc68
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 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;

0 comments on commit e84cc68

Please sign in to comment.