From: Florian Fainelli Date: Wed, 27 Jun 2012 22:14:50 +0000 (+0000) Subject: fix SPI clock frequency selection X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1d7878a38b14990ff62f4712389824e06b67a011;p=librecmc%2Flibrecmc.git fix SPI clock frequency selection SVN-Revision: 32512 --- diff --git a/target/linux/brcm63xx/patches-3.3/011-spi-add-Broadcom-BCM63xx-SPI-controller-driver.patch b/target/linux/brcm63xx/patches-3.3/011-spi-add-Broadcom-BCM63xx-SPI-controller-driver.patch index 24f63de62f..e4939599a8 100644 --- a/target/linux/brcm63xx/patches-3.3/011-spi-add-Broadcom-BCM63xx-SPI-controller-driver.patch +++ b/target/linux/brcm63xx/patches-3.3/011-spi-add-Broadcom-BCM63xx-SPI-controller-driver.patch @@ -167,7 +167,7 @@ Acked-by: Grant Likely + + /* Find the closest clock configuration */ + for (i = 0; i < SPI_CLK_MASK; i++) { -+ if (hz <= bcm63xx_spi_freq_table[i][0]) { ++ if (hz >= bcm63xx_spi_freq_table[i][0]) { + clk_cfg = bcm63xx_spi_freq_table[i][1]; + break; + }