BB: brcm47xx: fix brcm47xx.legacy build

we should check for ssb here.

backport of r42164.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42166 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
hauke 2014-08-14 21:23:36 +00:00
parent fd181e7792
commit 033366e0b5
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
switch (bcm47xx_bus_type) {
#ifdef CONFIG_BCM47XX_SSB
case BCM47XX_BUS_TYPE_SSB:
+ if (bcm47xx_bus.bcma.bus.chipinfo.id == 0x4785)
+ if (bcm47xx_bus.ssb.chip_id == 0x4785)
+ write_c0_diag4(1 << 22);
ssb_watchdog_timer_set(&bcm47xx_bus.ssb, 1);
+ if (bcm47xx_bus.bcma.bus.chipinfo.id == 0x4785) {
+ if (bcm47xx_bus.ssb.chip_id == 0x4785) {
+ __asm__ __volatile__(
+ ".set\tmips3\n\t"
+ "sync\n\t"