wl12xx: Add support for an external 26 MHz crystal source
authorGrant Erickson <marathon96@gmail.com>
Fri, 1 Jun 2012 16:19:01 +0000 (09:19 -0700)
committerLuciano Coelho <coelho@ti.com>
Thu, 7 Jun 2012 15:14:41 +0000 (18:14 +0300)
Add support for an external 26 MHz crystal source.

[Changed wl->ref_clock to priv->ref_clock -- Luca.]

Signed-off-by: Grant Erickson <marathon96@gmail.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl12xx/main.c

index 364fb2feffcea39595c140e197be563bcecf0f8c..8338045d226f3fdc051a190a9bba759452cbcf75 100644 (file)
@@ -875,6 +875,7 @@ static int wl127x_boot_clk(struct wl1271 *wl)
                /* ref clk: 19.2/38.4/38.4-XTAL */
                clk = 0x3;
        else if (priv->ref_clock == CONF_REF_CLK_26_E ||
+                priv->ref_clock == CONF_REF_CLK_26_M_XTAL ||
                 priv->ref_clock == CONF_REF_CLK_52_E)
                /* ref clk: 26/52 */
                clk = 0x5;