[oe] [PATCH] u-boot: increase SD clock speed hack
Jason Kridner
jkridner at beagleboard.org
Tue Aug 17 19:30:55 UTC 2010
Signed-off-by: Jason Kridner <jkridner at beagleboard.org>
---
...-OMAP3-MMC-hack-to-always-use-48MHz-clock.patch | 30 ++++++++++++++++++++
recipes/u-boot/u-boot_git.bb | 3 +-
2 files changed, 32 insertions(+), 1 deletions(-)
create mode 100644 recipes/u-boot/u-boot-git/beagleboard/0001-OMAP3-MMC-hack-to-always-use-48MHz-clock.patch
diff --git a/recipes/u-boot/u-boot-git/beagleboard/0001-OMAP3-MMC-hack-to-always-use-48MHz-clock.patch b/recipes/u-boot/u-boot-git/beagleboard/0001-OMAP3-MMC-hack-to-always-use-48MHz-clock.patch
new file mode 100644
index 0000000..9a85615
--- /dev/null
+++ b/recipes/u-boot/u-boot-git/beagleboard/0001-OMAP3-MMC-hack-to-always-use-48MHz-clock.patch
@@ -0,0 +1,30 @@
+From 10392e88ff1be6314884ea3c9e675849efdef195 Mon Sep 17 00:00:00 2001
+From: Jason Kridner <jkridner at beagleboard.org>
+Date: Tue, 17 Aug 2010 14:26:32 -0500
+Subject: [PATCH] OMAP3: MMC: hack to always use 48MHz clock
+
+Steve Kipisz tested this with several cards and will propose a longer
+term fix in the future, but this provides a huge speed increase for
+loading a big ramdisk image.
+
+Signed-off-by: Jason Kridner <jkridner at beagleboard.org>
+---
+ drivers/mmc/omap3_mmc.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/mmc/omap3_mmc.c b/drivers/mmc/omap3_mmc.c
+index bf650ba..c6bc6b5 100644
+--- a/drivers/mmc/omap3_mmc.c
++++ b/drivers/mmc/omap3_mmc.c
+@@ -139,7 +139,7 @@ unsigned char mmc_clock_config(unsigned int iclk, unsigned short clk_div)
+ val = MMC_400kHz_CLK;
+ break;
+ case CLK_MISC:
+- val = clk_div;
++ val = 2; /* always use 48MHz (hack, but works so far) */
+ break;
+ default:
+ return 0;
+--
+1.5.6.4
+
diff --git a/recipes/u-boot/u-boot_git.bb b/recipes/u-boot/u-boot_git.bb
index 5a46961..16d19d4 100644
--- a/recipes/u-boot/u-boot_git.bb
+++ b/recipes/u-boot/u-boot_git.bb
@@ -1,5 +1,5 @@
require u-boot.inc
-PR ="r64"
+PR ="r65"
FILESPATHPKG =. "u-boot-git:"
@@ -72,6 +72,7 @@ SRC_URI_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \
file://0045-BeagleBoard-Enable-pullups-on-i2c2.patch \
file://0046-BeagleBoard-Add-camera-to-default-bootargs.patch \
file://0001-BeagleBoard-move-ramdisk-parameters.patch \
+ file://0001-OMAP3-MMC-hack-to-always-use-48MHz-clock.patch \
file://fw_env.config \
"
SRCREV_beagleboard = "ca6e1c136ddb720c3bb2cc043b99f7f06bc46c55"
--
1.5.6.4
More information about the Openembedded-devel
mailing list