summaryrefslogtreecommitdiffstats
path: root/drivers/bcma
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-10-28 08:30:23 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-11-24 01:44:59 -0500
commit7177efc5b030012c54c2e217c9d6decc0bcc1c53 (patch)
treede7286cacf84e4936905451e6278e9f726b9cca8 /drivers/bcma
parent21400f252a97755579b43a4dc95dd02cd7f0ca75 (diff)
MIPS: BCM47XX: Make bcma init NVRAM instead of bcm47xx polling it
This drops ssb/bcma dependency and will allow us to make it a standalone driver. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Cc: linux-mips@linux-mips.org Cc: Hauke Mehrtens <hauke@hauke-m.de> Patchwork: https://patchwork.linux-mips.org/patch/8233/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/bcma')
-rw-r--r--drivers/bcma/driver_mips.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/bcma/driver_mips.c b/drivers/bcma/driver_mips.c
index 004d6aa671ce..8a653dc49029 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
24enum bcma_boot_dev { 27enum bcma_boot_dev {
25 BCMA_BOOT_DEV_UNK = 0, 28 BCMA_BOOT_DEV_UNK = 0,
@@ -323,10 +326,16 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
323 switch (boot_dev) { 326 switch (boot_dev) {
324 case BCMA_BOOT_DEV_PARALLEL: 327 case BCMA_BOOT_DEV_PARALLEL:
325 case BCMA_BOOT_DEV_SERIAL: 328 case BCMA_BOOT_DEV_SERIAL:
326 /* TODO: Init NVRAM using BCMA_SOC_FLASH2 window */ 329#ifdef CONFIG_BCM47XX
330 bcm47xx_nvram_init_from_mem(BCMA_SOC_FLASH2,
331 BCMA_SOC_FLASH2_SZ);
332#endif
327 break; 333 break;
328 case BCMA_BOOT_DEV_NAND: 334 case BCMA_BOOT_DEV_NAND:
329 /* TODO: Init NVRAM using BCMA_SOC_FLASH1 window */ 335#ifdef CONFIG_BCM47XX
336 bcm47xx_nvram_init_from_mem(BCMA_SOC_FLASH1,
337 BCMA_SOC_FLASH1_SZ);
338#endif
330 break; 339 break;
331 default: 340 default:
332 break; 341 break;