[brcm63xx] fix SPI clock frequency selection
authorFlorian Fainelli <florian@openwrt.org>
Wed, 27 Jun 2012 22:14:50 +0000 (22:14 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 27 Jun 2012 22:14:50 +0000 (22:14 +0000)
SVN-Revision: 32512

target/linux/brcm63xx/patches-3.3/011-spi-add-Broadcom-BCM63xx-SPI-controller-driver.patch

index 24f63de62f193422949b7c2e993823f8b7e52aa3..e4939599a86525626259b821865ada0ae9bba356 100644 (file)
@@ -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;
 +              }