aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/io.h
diff options
context:
space:
mode:
authorIgal Chernobelsky <igalc@ti.com>2013-09-09 12:24:38 +0300
committerLuciano Coelho <luciano.coelho@intel.com>2013-10-23 09:47:42 +0300
commitc83cb8031bdd7923c7c5ea87accede4a5fc3282a (patch)
tree11e9538026d0ad340673301663b0cf9f0bc4776e /drivers/net/wireless/ti/wlcore/io.h
parentwl12xx/wl18xx: update default fw logger's settings (diff)
downloadlinux-dev-c83cb8031bdd7923c7c5ea87accede4a5fc3282a.tar.xz
linux-dev-c83cb8031bdd7923c7c5ea87accede4a5fc3282a.zip
wlcore/wl18xx/wl12xx: FW log params per chip arch
FW memory block size and FW log end marker parameters are added to wl structure and are initialized per chip architecture. convert_hwaddr hw operation is added to convert chip dependent FW internal address. Copy from FW log is also simplified to copy the entire memory block as FW logger utility is repsponsible for parsing of FW log content. Signed-off-by: Igal Chernobelsky <igalc@ti.com> Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/io.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/io.h b/drivers/net/wireless/ti/wlcore/io.h
index af7d9f9b3b4d..07e3d6a049ad 100644
--- a/drivers/net/wireless/ti/wlcore/io.h
+++ b/drivers/net/wireless/ti/wlcore/io.h
@@ -165,8 +165,8 @@ static inline int __must_check wlcore_read_hwaddr(struct wl1271 *wl, int hwaddr,
int physical;
int addr;
- /* Addresses are stored internally as addresses to 32 bytes blocks */
- addr = hwaddr << 5;
+ /* Convert from FW internal address which is chip arch dependent */
+ addr = wl->ops->convert_hwaddr(wl, hwaddr);
physical = wlcore_translate_addr(wl, addr);