wifi: add 4358 wifi support
authorRongjun Chen <rongjun.chen@amlogic.com>
Wed, 23 Nov 2016 09:45:09 +0000 (17:45 +0800)
committerRongjun Chen <rongjun.chen@amlogic.com>
Wed, 23 Nov 2016 09:46:28 +0000 (17:46 +0800)
Change-Id: Ica191ef0b42beff4613fd56d4b72fa2d520bb112

bcmdhd_1_201_59_x/dhd_sdio.c

index 02e1f6d3392a86620f77dae32a8aa68e639cf302..1e4e79c6429dc837e4b4befb416db44d0d3854fc 100644 (file)
@@ -749,6 +749,7 @@ dhdsdio_sr_cap(dhd_bus_t *bus)
                (bus->sih->chip == BCM4354_CHIP_ID) ||
                (bus->sih->chip == BCM4356_CHIP_ID) ||
                (bus->sih->chip == BCM4358_CHIP_ID) ||
+               (bus->sih->chip == BCM43569_CHIP_ID) ||
                (bus->sih->chip == BCM4371_CHIP_ID) ||
                (BCM4349_CHIP(bus->sih->chip))          ||
                (bus->sih->chip == BCM4350_CHIP_ID)) {
@@ -772,6 +773,7 @@ dhdsdio_sr_cap(dhd_bus_t *bus)
                (bus->sih->chip == BCM4356_CHIP_ID) ||
                (bus->sih->chip == BCM4358_CHIP_ID) ||
                (bus->sih->chip == BCM4371_CHIP_ID) ||
+               (bus->sih->chip == BCM43569_CHIP_ID) ||
                (bus->sih->chip == BCM4350_CHIP_ID)) {
                uint32 enabval = 0;
                addr = SI_ENUM_BASE + OFFSETOF(chipcregs_t, chipcontrol_addr);
@@ -785,6 +787,7 @@ dhdsdio_sr_cap(dhd_bus_t *bus)
                        (bus->sih->chip == BCM4354_CHIP_ID) ||
                        (bus->sih->chip == BCM4356_CHIP_ID) ||
                        (bus->sih->chip == BCM4358_CHIP_ID) ||
+                       (bus->sih->chip == BCM43569_CHIP_ID) ||
                        (bus->sih->chip == BCM4371_CHIP_ID))
                        enabval &= CC_CHIPCTRL3_SR_ENG_ENABLE;
 
@@ -7573,6 +7576,8 @@ dhdsdio_chipmatch(uint16 chipid)
                return TRUE;
        if (chipid == BCM4358_CHIP_ID)
                return TRUE;
+       if (chipid == BCM43569_CHIP_ID)
+               return TRUE;
        if (chipid == BCM4371_CHIP_ID)
                return TRUE;
        if (chipid == BCM43430_CHIP_ID)
@@ -8224,6 +8229,7 @@ dhdsdio_probe_attach(struct dhd_bus *bus, osl_t *osh, void *sdh, void *regsva,
                        case BCM4354_CHIP_ID:
                        case BCM4356_CHIP_ID:
                        case BCM4358_CHIP_ID:
+                       case BCM43569_CHIP_ID:
                        case BCM4371_CHIP_ID:
                                bus->dongle_ram_base = CR4_4350_RAM_BASE;
                                break;