diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-27 22:14:50 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-27 22:14:50 +0000 |
commit | a6f7f0aaf2113ac95845ee7bab5ac6fb1bca7ddf (patch) | |
tree | 70f6a56852d1120c9d8afbe59eefc211f6c5166b | |
parent | 1ab7fc199154d39d7f8880f6902ea5339701236d (diff) |
[brcm63xx] fix SPI clock frequency selection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32512 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 24f63de62..e4939599a 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; + } |