u-boot: increase SD clock speed hack
PATCH 1/1 u-boot: increase SD clock speed hack
Signed-off-by Jason Kridner <[email protected]>
--- ...-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
recipes/u-boot/u-boot-git/beagleboard/0001-OMAP3-MMC-hack-to-always-use-48MHz-clock.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 10392e88ff1be6314884ea3c9e675849efdef195 Mon Sep 17 00:00:00 2001 +From: Jason Kridner <[email protected]> +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 <[email protected]> +--- + 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 +
recipes/u-boot/u-boot_git.bb +2 -1
@@ -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"
Signature · 1 line
1.5.6.4