diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-06-27 22:14:50 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-06-27 22:14:50 +0000 |
commit | 1d7878a38b14990ff62f4712389824e06b67a011 (patch) | |
tree | be1169edeeb8e58646715b1f5c1f45dd084ec27d /target/linux/brcm63xx/patches-3.3 | |
parent | 0615bde13a2a90b7d00b490998eb798e6591d45f (diff) | |
download | mtk-20170518-1d7878a38b14990ff62f4712389824e06b67a011.zip mtk-20170518-1d7878a38b14990ff62f4712389824e06b67a011.tar.gz mtk-20170518-1d7878a38b14990ff62f4712389824e06b67a011.tar.bz2 |
fix SPI clock frequency selection
SVN-Revision: 32512
Diffstat (limited to 'target/linux/brcm63xx/patches-3.3')
-rw-r--r-- | target/linux/brcm63xx/patches-3.3/011-spi-add-Broadcom-BCM63xx-SPI-controller-driver.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 24f63de..e493959 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 <grant.likely@secretlab.ca> + + /* 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; + } |