aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/bcma/driver_chipcommon_sflash.c4
-rw-r--r--drivers/bcma/driver_mips.c4
-rw-r--r--include/linux/bcma/bcma_regs.h5
3 files changed, 8 insertions, 5 deletions
diff --git a/drivers/bcma/driver_chipcommon_sflash.c b/drivers/bcma/driver_chipcommon_sflash.c
index 2c4eec2ca5a0..a0993fcd13c2 100644
--- a/drivers/bcma/driver_chipcommon_sflash.c
+++ b/drivers/bcma/driver_chipcommon_sflash.c
@@ -12,7 +12,7 @@
12 12
13static struct resource bcma_sflash_resource = { 13static struct resource bcma_sflash_resource = {
14 .name = "bcma_sflash", 14 .name = "bcma_sflash",
15 .start = BCMA_SFLASH, 15 .start = BCMA_SOC_FLASH2,
16 .end = 0, 16 .end = 0,
17 .flags = IORESOURCE_MEM | IORESOURCE_READONLY, 17 .flags = IORESOURCE_MEM | IORESOURCE_READONLY,
18}; 18};
@@ -116,7 +116,7 @@ int bcma_sflash_init(struct bcma_drv_cc *cc)
116 return -ENOTSUPP; 116 return -ENOTSUPP;
117 } 117 }
118 118
119 sflash->window = BCMA_SFLASH; 119 sflash->window = BCMA_SOC_FLASH2;
120 sflash->blocksize = e->blocksize; 120 sflash->blocksize = e->blocksize;
121 sflash->numblocks = e->numblocks; 121 sflash->numblocks = e->numblocks;
122 sflash->size = sflash->blocksize * sflash->numblocks; 122 sflash->size = sflash->blocksize * sflash->numblocks;
diff --git a/drivers/bcma/driver_mips.c b/drivers/bcma/driver_mips.c
index c0fb1d45c6db..d8e2fba482e6 100644
--- a/drivers/bcma/driver_mips.c
+++ b/drivers/bcma/driver_mips.c
@@ -191,8 +191,8 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
191 case BCMA_CC_FLASHT_PARA: 191 case BCMA_CC_FLASHT_PARA:
192 bcma_debug(bus, "Found parallel flash\n"); 192 bcma_debug(bus, "Found parallel flash\n");
193 bus->drv_cc.pflash.present = true; 193 bus->drv_cc.pflash.present = true;
194 bus->drv_cc.pflash.window = 0x1c000000; 194 bus->drv_cc.pflash.window = BCMA_SOC_FLASH2;
195 bus->drv_cc.pflash.window_size = 0x02000000; 195 bus->drv_cc.pflash.window_size = BCMA_SOC_FLASH2_SZ;
196 196
197 if ((bcma_read32(bus->drv_cc.core, BCMA_CC_FLASH_CFG) & 197 if ((bcma_read32(bus->drv_cc.core, BCMA_CC_FLASH_CFG) &
198 BCMA_CC_FLASH_CFG_DS) == 0) 198 BCMA_CC_FLASH_CFG_DS) == 0)
diff --git a/include/linux/bcma/bcma_regs.h b/include/linux/bcma/bcma_regs.h
index 6c9cb93ae3de..7e8104bb7a7e 100644
--- a/include/linux/bcma/bcma_regs.h
+++ b/include/linux/bcma/bcma_regs.h
@@ -85,6 +85,9 @@
85 * (2 ZettaBytes), high 32 bits 85 * (2 ZettaBytes), high 32 bits
86 */ 86 */
87 87
88#define BCMA_SFLASH 0x1c000000 88#define BCMA_SOC_FLASH1 0x1fc00000 /* MIPS Flash Region 1 */
89#define BCMA_SOC_FLASH1_SZ 0x00400000 /* MIPS Size of Flash Region 1 */
90#define BCMA_SOC_FLASH2 0x1c000000 /* Flash Region 2 (region 1 shadowed here) */
91#define BCMA_SOC_FLASH2_SZ 0x02000000 /* Size of Flash Region 2 */
89 92
90#endif /* LINUX_BCMA_REGS_H_ */ 93#endif /* LINUX_BCMA_REGS_H_ */