diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-09-29 14:33:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-10-19 15:52:36 -0400 |
commit | cc787081bcab5a83051c2a936927634d066e7284 (patch) | |
tree | ad46b16507f831d6ebd237228d0d6d245c4fb9a4 /drivers/bcma/driver_mips.c | |
parent | 360dc31e9cc3f74d0d91a9d19b154c12592f4ffc (diff) |
bcma: add and use constants for the flash windows
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/driver_mips.c')
-rw-r--r-- | drivers/bcma/driver_mips.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |