]> 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)
commit5155f09cdb5f5af613d01ac247dcb054ee9bf0a6
treecc2814af3b3bfa769b4fea0232e9bbfde7e332d2
parentbb2226fa1efa4bd734f44255b343143fb8df1ddc
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