aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-06-27 22:14:50 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-06-27 22:14:50 +0000
commitd07680275201b8f0028f9d8d9193ffcc278a2cb9 (patch)
tree70f6a56852d1120c9d8afbe59eefc211f6c5166b /target/linux
parentc28103fc17ebe9039b22188d9e8f97dc8893d302 (diff)
downloadupstream-d07680275201b8f0028f9d8d9193ffcc278a2cb9.tar.gz
upstream-d07680275201b8f0028f9d8d9193ffcc278a2cb9.tar.bz2
upstream-d07680275201b8f0028f9d8d9193ffcc278a2cb9.zip
[brcm63xx] fix SPI clock frequency selection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32512 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/brcm63xx/patches-3.3/011-spi-add-Broadcom-BCM63xx-SPI-controller-driver.patch2
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 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 <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;
+ }