Commit d954162c authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by John W. Linville

ssb: add attribute to indicate a parallel flash is available

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 54c97498
...@@ -192,6 +192,7 @@ static void ssb_mips_flash_detect(struct ssb_mipscore *mcore) ...@@ -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 */ /* When there is no chipcommon on the bus there is 4MB flash */
if (!bus->chipco.dev) { if (!bus->chipco.dev) {
mcore->pflash.present = true;
mcore->pflash.buswidth = 2; mcore->pflash.buswidth = 2;
mcore->pflash.window = SSB_FLASH1; mcore->pflash.window = SSB_FLASH1;
mcore->pflash.window_size = SSB_FLASH1_SZ; mcore->pflash.window_size = SSB_FLASH1_SZ;
...@@ -206,6 +207,7 @@ static void ssb_mips_flash_detect(struct ssb_mipscore *mcore) ...@@ -206,6 +207,7 @@ static void ssb_mips_flash_detect(struct ssb_mipscore *mcore)
break; break;
case SSB_CHIPCO_FLASHT_PARA: case SSB_CHIPCO_FLASHT_PARA:
pr_debug("Found parallel flash\n"); pr_debug("Found parallel flash\n");
mcore->pflash.present = true;
mcore->pflash.window = SSB_FLASH2; mcore->pflash.window = SSB_FLASH2;
mcore->pflash.window_size = SSB_FLASH2_SZ; mcore->pflash.window_size = SSB_FLASH2_SZ;
if ((ssb_read32(bus->chipco.dev, SSB_CHIPCO_FLASH_CFG) if ((ssb_read32(bus->chipco.dev, SSB_CHIPCO_FLASH_CFG)
......
...@@ -14,6 +14,7 @@ struct ssb_serial_port { ...@@ -14,6 +14,7 @@ struct ssb_serial_port {
}; };
struct ssb_pflash { struct ssb_pflash {
bool present;
u8 buswidth; u8 buswidth;
u32 window; u32 window;
u32 window_size; u32 window_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment