Skip to content

Commit 61dba73

Browse files
rmileckiKalle Valo
authored andcommitted
bcma: add support for BCM47094
It's another SoC with 32 GPIOs and simplified watchdog handling. It was tested on D-Link DIR-885L. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent 4c81aca commit 61dba73

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/bcma/driver_chipcommon.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks)
197197
struct bcma_bus *bus = cc->core->bus;
198198

199199
if (bus->chipinfo.id != BCMA_CHIP_ID_BCM4707 &&
200+
bus->chipinfo.id != BCMA_CHIP_ID_BCM47094 &&
200201
bus->chipinfo.id != BCMA_CHIP_ID_BCM53018)
201202
bcma_core_set_clockmode(cc->core,
202203
ticks ? BCMA_CLKMODE_FAST : BCMA_CLKMODE_DYNAMIC);

‎drivers/bcma/driver_gpio.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ int bcma_gpio_init(struct bcma_drv_cc *cc)
197197
case BCMA_CHIP_ID_BCM4707:
198198
case BCMA_CHIP_ID_BCM5357:
199199
case BCMA_CHIP_ID_BCM53572:
200+
case BCMA_CHIP_ID_BCM47094:
200201
chip->ngpio = 32;
201202
break;
202203
default:

‎include/linux/bcma/bcma.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ struct bcma_host_ops {
201201
#define BCMA_PKG_ID_BCM4707 1
202202
#define BCMA_PKG_ID_BCM4708 2
203203
#define BCMA_PKG_ID_BCM4709 0
204+
#define BCMA_CHIP_ID_BCM47094 53030
204205
#define BCMA_CHIP_ID_BCM53018 53018
205206

206207
/* Board types (on PCI usually equals to the subsystem dev id) */

0 commit comments

Comments
 (0)