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)
commitd5b592764f5b21979f6260869bd96e69aa0536bb
treecc2814af3b3bfa769b4fea0232e9bbfde7e332d2
parenta9c130d522ddef8673728fa9738f4f3f8e61f9b9
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