]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: rt2800lib: update rfcsr & bbp init code for SoC devices
authorHelmut Schaa <helmut.schaa@googlemail.com>
Wed, 28 Apr 2010 07:58:59 +0000 (09:58 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Apr 2010 20:50:27 +0000 (16:50 -0400)
commitcccd684fde7769ce05019f61c6aee346a54f1b85
treef12f9301364dd7bc4ea89fb94bf3c1d73e7678d5
parentee523bebe4ccebe9c61366b3f33d6b95fedd4d81
rt2x00: rt2800lib: update rfcsr & bbp init code for SoC devices

Update the rfcsr and bbp init code for SoC devices to match with the
latest Ralink driver.

To have better control over which values are used for the register
initialization create a new function rt2800_is_305x_soc which checks
for SoC interface type, the correct RT chipset and the correct RF
chipset. This is based on the assumption that all rt305x SoC devices
use a rt2872 and rf3020/rf3021/rf3022.

In case an unknown RF chipset is found on a SoC device with a rt2872
don't treat it as rt305x and just print a message.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c