Skip to content

Commit 360dc31

Browse files
haukelinvjw
authored andcommitted
bcma: mark pflash as present when available
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 30cfb02 commit 360dc31

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/bcma/driver_mips.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
190190
break;
191191
case BCMA_CC_FLASHT_PARA:
192192
bcma_debug(bus, "Found parallel flash\n");
193+
bus->drv_cc.pflash.present = true;
193194
bus->drv_cc.pflash.window = 0x1c000000;
194195
bus->drv_cc.pflash.window_size = 0x02000000;
195196

‎include/linux/bcma/bcma_driver_chipcommon.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ struct bcma_chipcommon_pmu {
510510

511511
#ifdef CONFIG_BCMA_DRIVER_MIPS
512512
struct bcma_pflash {
513+
bool present;
513514
u8 buswidth;
514515
u32 window;
515516
u32 window_size;

0 commit comments

Comments
 (0)