Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189788
b: refs/heads/master
c: 8d9df29
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Apr 12, 2010
1 parent 70c3945 commit 5f47a0d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9538ca636f2fa28ae1514327328e2869f0215981
refs/heads/master: 8d9df29db273ab9a330828f4f4f6669d293a730a
6 changes: 5 additions & 1 deletion trunk/arch/mips/include/asm/mach-sibyte/war.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
#if defined(CONFIG_SB1_PASS_1_WORKAROUNDS) || \
defined(CONFIG_SB1_PASS_2_WORKAROUNDS)

#define BCM1250_M3_WAR 1
#ifndef __ASSEMBLY__
extern int sb1250_m3_workaround_needed(void);
#endif

#define BCM1250_M3_WAR sb1250_m3_workaround_needed()
#define SIBYTE_1956_WAR 1

#else
Expand Down
15 changes: 15 additions & 0 deletions trunk/arch/mips/sibyte/sb1250/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,21 @@ static int __init setup_bcm1250(void)
return ret;
}

int sb1250_m3_workaround_needed(void)
{
switch (soc_type) {
case K_SYS_SOC_TYPE_BCM1250:
case K_SYS_SOC_TYPE_BCM1250_ALT:
case K_SYS_SOC_TYPE_BCM1250_ALT2:
case K_SYS_SOC_TYPE_BCM1125:
case K_SYS_SOC_TYPE_BCM1125H:
return soc_pass < K_SYS_REVISION_BCM1250_C0;

default:
return 0;
}
}

static int __init setup_bcm112x(void)
{
int ret = 0;
Expand Down

0 comments on commit 5f47a0d

Please sign in to comment.