Skip to content

Commit d954162

Browse files
haukelinvjw
authored andcommitted
ssb: add attribute to indicate a parallel flash is available
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 54c9749 commit d954162

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/ssb/driver_mipscore.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ static void ssb_mips_flash_detect(struct ssb_mipscore *mcore)
192192

193193
/* When there is no chipcommon on the bus there is 4MB flash */
194194
if (!bus->chipco.dev) {
195+
mcore->pflash.present = true;
195196
mcore->pflash.buswidth = 2;
196197
mcore->pflash.window = SSB_FLASH1;
197198
mcore->pflash.window_size = SSB_FLASH1_SZ;
@@ -206,6 +207,7 @@ static void ssb_mips_flash_detect(struct ssb_mipscore *mcore)
206207
break;
207208
case SSB_CHIPCO_FLASHT_PARA:
208209
pr_debug("Found parallel flash\n");
210+
mcore->pflash.present = true;
209211
mcore->pflash.window = SSB_FLASH2;
210212
mcore->pflash.window_size = SSB_FLASH2_SZ;
211213
if ((ssb_read32(bus->chipco.dev, SSB_CHIPCO_FLASH_CFG)

‎include/linux/ssb/ssb_driver_mips.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ struct ssb_serial_port {
1414
};
1515

1616
struct ssb_pflash {
17+
bool present;
1718
u8 buswidth;
1819
u32 window;
1920
u32 window_size;

0 commit comments

Comments
 (0)