mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 06:14:37 +02:00
[brcm63xx] fix SPI clock frequency selection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32512 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1ab7fc1991
commit
a6f7f0aaf2
@ -167,7 +167,7 @@ Acked-by: Grant Likely <grant.likely@secretlab.ca>
|
|||||||
+
|
+
|
||||||
+ /* Find the closest clock configuration */
|
+ /* Find the closest clock configuration */
|
||||||
+ for (i = 0; i < SPI_CLK_MASK; i++) {
|
+ 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];
|
+ clk_cfg = bcm63xx_spi_freq_table[i][1];
|
||||||
+ break;
|
+ break;
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user