summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2009-10-13 12:47:38 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:07 -0400
commit2cc8d4db9dd7df9dd12d86f2e37d1b4760d3dd98 (patch)
tree1228db09f4da4ccf3c3c9fceb3c7549d5e19727e /drivers
parent2f301227a1ede57504694e1f64839839f5737cac (diff)
downloadkernel-crypto-2cc8d4db9dd7df9dd12d86f2e37d1b4760d3dd98.tar.gz
kernel-crypto-2cc8d4db9dd7df9dd12d86f2e37d1b4760d3dd98.tar.xz
kernel-crypto-2cc8d4db9dd7df9dd12d86f2e37d1b4760d3dd98.zip
wl1271: Workaround for reference clock setting on boot.
If the 38.4MHz reference clock is configured to the firmware, it crashes on boot. Configuring an experimental 38.4MHz in XTAL mode allows the firmware to boot, and everything appears to work. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_init.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_init.c b/drivers/net/wireless/wl12xx/wl1271_init.c
index e45af075e67..9abe062f187 100644
--- a/drivers/net/wireless/wl12xx/wl1271_init.c
+++ b/drivers/net/wireless/wl12xx/wl1271_init.c
@@ -196,7 +196,14 @@ static int wl1271_init_general_parms(struct wl1271 *wl)
gen_parms->id = TEST_CMD_INI_FILE_GENERAL_PARAM;
- gen_parms->ref_clk = REF_CLK_38_4_E;
+ /*
+ * FIXME: The firmware crashes on boot with REF_CLK_38_4_E as clock.
+ * according to TI engineers, ref clk 5 is an unofficial
+ * 38.4 XTAL clock config, which seems to boot the device.
+ * Restore correct value once the real problem source is
+ * identified.
+ */
+ gen_parms->ref_clk = 5; /* REF_CLK_38_4_E; */
/* FIXME: magic numbers */
gen_parms->settling_time = 5;
gen_parms->clk_valid_on_wakeup = 0;