Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314052
b: refs/heads/master
c: 0cd6543
h: refs/heads/master
v: v3
  • Loading branch information
Luciano Coelho committed Jun 5, 2012
1 parent bbebe0c commit 43bf385
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d4a9fa692ce0fc9fff0a35e53b3a9be44b48da5
refs/heads/master: 0cd6543f6852d646985786a429027bd0461e1cb4
34 changes: 31 additions & 3 deletions trunk/drivers/net/wireless/ti/wl18xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@

#include "reg.h"

static struct wlcore_ops wl18xx_ops = {
};

static const struct wlcore_partition_set wl18xx_ptable[PART_TABLE_LEN] = {
[PART_TOP_PRCM_ELP_SOC] = {
.mem = { .start = 0x00A02000, .size = 0x00010000 },
Expand Down Expand Up @@ -84,6 +81,36 @@ static const int wl18xx_rtable[REG_TABLE_LEN] = {
[REG_RAW_FW_STATUS_ADDR] = WL18XX_FW_STATUS_ADDR,
};

/* TODO: maybe move to a new header file? */
#define WL18XX_FW_NAME "ti-connectivity/wl18xx-fw.bin"

static int wl18xx_identify_chip(struct wl1271 *wl)
{
int ret = 0;

switch (wl->chip.id) {
case CHIP_ID_185x_PG10:
wl1271_debug(DEBUG_BOOT, "chip id 0x%x (185x PG10)",
wl->chip.id);
wl->sr_fw_name = WL18XX_FW_NAME;
wl->quirks |= WLCORE_QUIRK_NO_ELP;

/* TODO: need to blocksize alignment for RX/TX separately? */
break;
default:
wl1271_warning("unsupported chip id: 0x%x", wl->chip.id);
ret = -ENODEV;
goto out;
}

out:
return ret;
}

static struct wlcore_ops wl18xx_ops = {
.identify_chip = wl18xx_identify_chip,
};

int __devinit wl18xx_probe(struct platform_device *pdev)
{
struct wl1271 *wl;
Expand Down Expand Up @@ -133,3 +160,4 @@ module_exit(wl18xx_exit);

MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>");
MODULE_FIRMWARE(WL18XX_FW_NAME);

0 comments on commit 43bf385

Please sign in to comment.