]> git.baikalelectronics.ru Git - kernel.git/commit
wl18xx: translate and write the board type to SCR_PAD2
authorLuciano Coelho <coelho@ti.com>
Thu, 10 May 2012 09:13:38 +0000 (12:13 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 5 Jun 2012 12:55:53 +0000 (15:55 +0300)
commit4227454a33ef0438eb61846dd1a374a0853c86b2
treecc2814af3b3bfa769b4fea0232e9bbfde7e332d2
parent36ee58024a5b6e61274d2aa4b4e6f4d4d6fed7a6
wl18xx: translate and write the board type to SCR_PAD2

The firmware uses the SCR_PAD2 register to read the board type passed
from the driver.  The values don't match the ones used in the mac and
phy configuration, so we need to map them before writing.  This commit
adds a translation table that is used when writing the board type to
SCR_PAD2.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
drivers/net/wireless/ti/wl18xx/main.c
drivers/net/wireless/ti/wl18xx/reg.h