diff options
Diffstat (limited to 'drivers/bcma/driver_mips.c')
-rw-r--r-- | drivers/bcma/driver_mips.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/bcma/driver_mips.c b/drivers/bcma/driver_mips.c index 5ec69c3d409d..04faf6df959f 100644 --- a/drivers/bcma/driver_mips.c +++ b/drivers/bcma/driver_mips.c | |||
@@ -20,6 +20,9 @@ | |||
20 | #include <linux/serial_core.h> | 20 | #include <linux/serial_core.h> |
21 | #include <linux/serial_reg.h> | 21 | #include <linux/serial_reg.h> |
22 | #include <linux/time.h> | 22 | #include <linux/time.h> |
23 | #ifdef CONFIG_BCM47XX | ||
24 | #include <bcm47xx_nvram.h> | ||
25 | #endif | ||
23 | 26 | ||
24 | enum bcma_boot_dev { | 27 | enum bcma_boot_dev { |
25 | BCMA_BOOT_DEV_UNK = 0, | 28 | BCMA_BOOT_DEV_UNK = 0, |
@@ -316,10 +319,16 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore) | |||
316 | switch (boot_dev) { | 319 | switch (boot_dev) { |
317 | case BCMA_BOOT_DEV_PARALLEL: | 320 | case BCMA_BOOT_DEV_PARALLEL: |
318 | case BCMA_BOOT_DEV_SERIAL: | 321 | case BCMA_BOOT_DEV_SERIAL: |
319 | /* TODO: Init NVRAM using BCMA_SOC_FLASH2 window */ | 322 | #ifdef CONFIG_BCM47XX |
323 | bcm47xx_nvram_init_from_mem(BCMA_SOC_FLASH2, | ||
324 | BCMA_SOC_FLASH2_SZ); | ||
325 | #endif | ||
320 | break; | 326 | break; |
321 | case BCMA_BOOT_DEV_NAND: | 327 | case BCMA_BOOT_DEV_NAND: |
322 | /* TODO: Init NVRAM using BCMA_SOC_FLASH1 window */ | 328 | #ifdef CONFIG_BCM47XX |
329 | bcm47xx_nvram_init_from_mem(BCMA_SOC_FLASH1, | ||
330 | BCMA_SOC_FLASH1_SZ); | ||
331 | #endif | ||
323 | break; | 332 | break; |
324 | default: | 333 | default: |
325 | break; | 334 | break; |