PD#146795 wifi: add bcm4358 support
authorRongjun Chen <rongjun.chen@amlogic.com>
Wed, 5 Jul 2017 08:46:35 +0000 (16:46 +0800)
committerRongjun Chen <rongjun.chen@amlogic.com>
Wed, 5 Jul 2017 08:46:35 +0000 (16:46 +0800)
Change-Id: I56cd7e2510cd00fd99c008eae356a24294bb4fe6

bcmdhd_1_201_59_x/dhd_sdio.c

index 4bc076e7cd05973b71434f51b5ef4b27b443504a..7bfa3f0d0b400d6c081d20b1bf2ad1c114d2850e 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;