Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314096
b: refs/heads/master
c: a5114d9
h: refs/heads/master
v: v3
  • Loading branch information
Luciano Coelho committed Jun 5, 2012
1 parent 3748213 commit 66aa63e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0afd04e5e5d8db505fbb0f98c6306242c0006503
refs/heads/master: a5114d9c0def1286aa1d565280b350fee4d1c75b
18 changes: 18 additions & 0 deletions trunk/drivers/net/wireless/ti/wl18xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,23 @@ static int wl18xx_plt_init(struct wl1271 *wl)
return wl->ops->boot(wl);
}

static void wl18xx_get_mac(struct wl1271 *wl)
{
u32 mac1, mac2;

wlcore_set_partition(wl, &wl->ptable[PART_TOP_PRCM_ELP_SOC]);

mac1 = wl1271_read32(wl, WL18XX_REG_FUSE_BD_ADDR_1);
mac2 = wl1271_read32(wl, WL18XX_REG_FUSE_BD_ADDR_2);

/* these are the two parts of the BD_ADDR */
wl->fuse_oui_addr = ((mac2 & 0xffff) << 8) +
((mac1 & 0xff000000) >> 24);
wl->fuse_nic_addr = (mac1 & 0xffffff);

wlcore_set_partition(wl, &wl->ptable[PART_DOWN]);
}

static struct wlcore_ops wl18xx_ops = {
.identify_chip = wl18xx_identify_chip,
.boot = wl18xx_boot,
Expand All @@ -994,6 +1011,7 @@ static struct wlcore_ops wl18xx_ops = {
.set_rx_csum = wl18xx_set_rx_csum,
.sta_get_ap_rate_mask = wl18xx_sta_get_ap_rate_mask,
.ap_get_mimo_wide_rate_mask = wl18xx_ap_get_mimo_wide_rate_mask,
.get_mac = wl18xx_get_mac,
};

/* HT cap appropriate for wide channels */
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/net/wireless/ti/wl18xx/reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
#define WL18XX_PG_VER_MASK 0x70
#define WL18XX_PG_VER_OFFSET 4

#define WL18XX_REG_FUSE_BD_ADDR_1 0xA02602
#define WL18XX_REG_FUSE_BD_ADDR_2 0xA02606

#define WL18XX_CMD_MBOX_ADDRESS 0xB007B4

#define WL18XX_FW_STATUS_ADDR 0x50F8
Expand Down

0 comments on commit 66aa63e

Please sign in to comment.