Commit 0830ceed authored by Shahar Levi's avatar Shahar Levi Committed by Luciano Coelho

wl12xx: 1281/1283 support - enable chip support

Add support to wl128x chip via chip id
Signed-off-by: default avatarShahar Levi <shahar_levi@ti.com>
Reviewed-by: default avatarLuciano Coelho <coelho@ti.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 1aed55fd
...@@ -3,7 +3,7 @@ menuconfig WL12XX_MENU ...@@ -3,7 +3,7 @@ menuconfig WL12XX_MENU
depends on MAC80211 && EXPERIMENTAL depends on MAC80211 && EXPERIMENTAL
---help--- ---help---
This will enable TI wl12xx driver support for the following chips: This will enable TI wl12xx driver support for the following chips:
wl1271 and wl1273. wl1271, wl1273, wl1281 and wl1283.
The drivers make use of the mac80211 stack. The drivers make use of the mac80211 stack.
config WL12XX config WL12XX
......
...@@ -1007,6 +1007,15 @@ static int wl1271_chip_wakeup(struct wl1271 *wl) ...@@ -1007,6 +1007,15 @@ static int wl1271_chip_wakeup(struct wl1271 *wl)
if (ret < 0) if (ret < 0)
goto out; goto out;
break; break;
case CHIP_ID_1283_PG20:
wl1271_debug(DEBUG_BOOT, "chip id 0x%x (1283 PG20)",
wl->chip.id);
ret = wl1271_setup(wl);
if (ret < 0)
goto out;
break;
case CHIP_ID_1283_PG10:
default: default:
wl1271_warning("unsupported chip id: 0x%x", wl->chip.id); wl1271_warning("unsupported chip id: 0x%x", wl->chip.id);
ret = -ENODEV; ret = -ENODEV;
......
...@@ -293,6 +293,11 @@ static int wl1271_chip_wakeup(struct wl1271 *wl) ...@@ -293,6 +293,11 @@ static int wl1271_chip_wakeup(struct wl1271 *wl)
wl1271_notice("chip id 0x%x (1271 PG20)", wl1271_notice("chip id 0x%x (1271 PG20)",
wl->chip.id); wl->chip.id);
break; break;
case CHIP_ID_1283_PG20:
wl1271_notice("chip id 0x%x (1283 PG20)",
wl->chip.id);
break;
case CHIP_ID_1283_PG10:
default: default:
wl1271_warning("unsupported chip id: 0x%x", wl->chip.id); wl1271_warning("unsupported chip id: 0x%x", wl->chip.id);
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment