]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: SD: speed up SD by removing the clock divide
authorJohn Linn <john.linn@xilinx.com>
Tue, 13 Dec 2011 16:20:36 +0000 (08:20 -0800)
committerJohn Linn <john.linn@xilinx.com>
Tue, 13 Dec 2011 16:20:36 +0000 (08:20 -0800)
It's not clear why it was was running so slow, but maybe
it was needed for EP107. Speed it up now.

board/xilinx/dfe/mmc.c

index 91b21db01129013c88cbe1bb3a979beb3482d58d..dd952fc58409f4cee85e2a15888d4bb5c347ffd5 100755 (executable)
@@ -73,7 +73,7 @@ static void init_port(void)
        sd_out8(SD_PWR_CTRL_R, SD_POWER_33|SD_POWER_ON);
 
        /* Enable Internal clock and wait for it to stablilize */
-       clk = (0x40 << SD_DIV_SHIFT) | SD_CLK_INT_EN;
+       clk = SD_CLK_INT_EN;
        sd_out16(SD_CLK_CTL_R, clk);
        do {
                clk = sd_in16(SD_CLK_CTL_R);