Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352291
b: refs/heads/master
c: f1ab57e
h: refs/heads/master
i:
  352289: 380f0e2
  352287: b2838b1
v: v3
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Jan 30, 2013
1 parent ffd5f2f commit fbd0f20
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a5fc6d7074de72dd836fbb9c5cd79f9a491871c
refs/heads/master: f1ab57e3a114173fdb94219937191f0c673e87dd
19 changes: 10 additions & 9 deletions trunk/drivers/ssb/driver_mipscore.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,14 @@ static void ssb_mips_serial_init(struct ssb_mipscore *mcore)
static void ssb_mips_flash_detect(struct ssb_mipscore *mcore)
{
struct ssb_bus *bus = mcore->dev->bus;
struct ssb_pflash *pflash = &mcore->pflash;

/* When there is no chipcommon on the bus there is 4MB flash */
if (!ssb_chipco_available(&bus->chipco)) {
mcore->pflash.present = true;
mcore->pflash.buswidth = 2;
mcore->pflash.window = SSB_FLASH1;
mcore->pflash.window_size = SSB_FLASH1_SZ;
pflash->present = true;
pflash->buswidth = 2;
pflash->window = SSB_FLASH1;
pflash->window_size = SSB_FLASH1_SZ;
return;
}

Expand All @@ -208,14 +209,14 @@ 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;
pflash->present = true;
pflash->window = SSB_FLASH2;
pflash->window_size = SSB_FLASH2_SZ;
if ((ssb_read32(bus->chipco.dev, SSB_CHIPCO_FLASH_CFG)
& SSB_CHIPCO_CFG_DS16) == 0)
mcore->pflash.buswidth = 1;
pflash->buswidth = 1;
else
mcore->pflash.buswidth = 2;
pflash->buswidth = 2;
break;
}
}
Expand Down

0 comments on commit fbd0f20

Please sign in to comment.