Add support to wl128x chip via chip id
Signed-off-by: Shahar Levi <shahar_levi@ti.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
        depends on MAC80211 && EXPERIMENTAL
        ---help---
          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.
 
 config WL12XX
 
                if (ret < 0)
                        goto out;
                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:
                wl1271_warning("unsupported chip id: 0x%x", wl->chip.id);
                ret = -ENODEV;
 
                wl1271_notice("chip id 0x%x (1271 PG20)",
                                wl->chip.id);
                break;
+       case CHIP_ID_1283_PG20:
+               wl1271_notice("chip id 0x%x (1283 PG20)",
+                               wl->chip.id);
+               break;
+       case CHIP_ID_1283_PG10:
        default:
                wl1271_warning("unsupported chip id: 0x%x", wl->chip.id);
                return -ENODEV;