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>
This commit is contained in:

committed by
Luciano Coelho

parent
9d8146d4e1
commit
c83cb8031b
@@ -686,6 +686,9 @@ static int wl18xx_identify_chip(struct wl1271 *wl)
|
||||
goto out;
|
||||
}
|
||||
|
||||
wl->fw_mem_block_size = 272;
|
||||
wl->fwlog_end = 0x40000000;
|
||||
|
||||
wl->scan_templ_id_2_4 = CMD_TEMPL_CFG_PROBE_REQ_2_4;
|
||||
wl->scan_templ_id_5 = CMD_TEMPL_CFG_PROBE_REQ_5;
|
||||
wl->sched_scan_templ_id_2_4 = CMD_TEMPL_PROBE_REQ_2_4_PERIODIC;
|
||||
@@ -1605,6 +1608,11 @@ static bool wl18xx_lnk_low_prio(struct wl1271 *wl, u8 hlid,
|
||||
return lnk->allocated_pkts < thold;
|
||||
}
|
||||
|
||||
static u32 wl18xx_convert_hwaddr(struct wl1271 *wl, u32 hwaddr)
|
||||
{
|
||||
return hwaddr & ~0x80000000;
|
||||
}
|
||||
|
||||
static int wl18xx_setup(struct wl1271 *wl);
|
||||
|
||||
static struct wlcore_ops wl18xx_ops = {
|
||||
@@ -1642,6 +1650,7 @@ static struct wlcore_ops wl18xx_ops = {
|
||||
.pre_pkt_send = wl18xx_pre_pkt_send,
|
||||
.sta_rc_update = wl18xx_sta_rc_update,
|
||||
.set_peer_cap = wl18xx_set_peer_cap,
|
||||
.convert_hwaddr = wl18xx_convert_hwaddr,
|
||||
.lnk_high_prio = wl18xx_lnk_high_prio,
|
||||
.lnk_low_prio = wl18xx_lnk_low_prio,
|
||||
};
|
||||
|
Reference in New Issue
Block a user