Skip to content

Commit

Permalink
wl1271: Workaround for reference clock setting on boot.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Oct 27, 2009
1 parent 2f30122 commit 2cc8d4d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/net/wireless/wl12xx/wl1271_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2cc8d4d

Please sign in to comment.