Skip to content

Commit

Permalink
ssb: add attribute to indicate a parallel flash is available
Browse files Browse the repository at this point in the history
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed Oct 19, 2012
1 parent 54c9749 commit d954162
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/ssb/driver_mipscore.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ static void ssb_mips_flash_detect(struct ssb_mipscore *mcore)

/* When there is no chipcommon on the bus there is 4MB flash */
if (!bus->chipco.dev) {
mcore->pflash.present = true;
mcore->pflash.buswidth = 2;
mcore->pflash.window = SSB_FLASH1;
mcore->pflash.window_size = SSB_FLASH1_SZ;
Expand All @@ -206,6 +207,7 @@ static void ssb_mips_flash_detect(struct ssb_mipscore *mcore)
break;
case SSB_CHIPCO_FLASHT_PARA:
pr_debug("Found parallel flash\n");
mcore->pflash.present = true;
mcore->pflash.window = SSB_FLASH2;
mcore->pflash.window_size = SSB_FLASH2_SZ;
if ((ssb_read32(bus->chipco.dev, SSB_CHIPCO_FLASH_CFG)
Expand Down
1 change: 1 addition & 0 deletions include/linux/ssb/ssb_driver_mips.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ struct ssb_serial_port {
};

struct ssb_pflash {
bool present;
u8 buswidth;
u32 window;
u32 window_size;
Expand Down

0 comments on commit d954162

Please sign in to comment.