wl12xx: Clean up and fix the 128x boot sequence
authorIdo Yariv <ido@wizery.com>
Thu, 31 Mar 2011 08:06:57 +0000 (10:06 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 19 Apr 2011 13:49:17 +0000 (16:49 +0300)
commitd29633b40e6afc6b4276a4e381bc532cc84be104
tree136e6a871de72b504a8999b924c8c29958654382
parent8bf69aae4cb9b196ba5ac386f83a1ca3865af11f
wl12xx: Clean up and fix the 128x boot sequence

Clean up the boot sequence code & fix the following issues:
1. Always read the registers' values and set the relevant bits instead of
   zeroing all other bits
2. Handle cases where wl1271_top_reg_read returns an error
3. Verify that the HW can detect the selected clock source
4. Remove 128x PG10 initialization code
5. Configure the MCS PLL to work in HP mode

Signed-off-by: Ido Yariv <ido@wizery.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/boot.c
drivers/net/wireless/wl12xx/boot.h
include/linux/wl12xx.h