bcm47xx: make it possible to build bcm47xx without ssb.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
08ccf57283
commit
a656ffcbc7
@@ -26,7 +26,9 @@ static char nvram_buf[NVRAM_SPACE];
|
||||
/* Probe for NVRAM header */
|
||||
static void early_nvram_init(void)
|
||||
{
|
||||
#ifdef CONFIG_BCM47XX_SSB
|
||||
struct ssb_mipscore *mcore_ssb;
|
||||
#endif
|
||||
struct nvram_header *header;
|
||||
int i;
|
||||
u32 base = 0;
|
||||
@@ -35,11 +37,13 @@ static void early_nvram_init(void)
|
||||
u32 *src, *dst;
|
||||
|
||||
switch (bcm47xx_bus_type) {
|
||||
#ifdef CONFIG_BCM47XX_SSB
|
||||
case BCM47XX_BUS_TYPE_SSB:
|
||||
mcore_ssb = &bcm47xx_bus.ssb.mipscore;
|
||||
base = mcore_ssb->flash_window;
|
||||
lim = mcore_ssb->flash_window_size;
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
off = FLASH_MIN;
|
||||
|
Reference in New Issue
Block a user