aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/bcm63xx/prom.c6
-rw-r--r--arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h2
-rw-r--r--arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h7
3 files changed, 14 insertions, 1 deletions
diff --git a/arch/mips/bcm63xx/prom.c b/arch/mips/bcm63xx/prom.c
index 3b21454c56a0..8ac4e095e68e 100644
--- a/arch/mips/bcm63xx/prom.c
+++ b/arch/mips/bcm63xx/prom.c
@@ -69,7 +69,11 @@ void __init prom_init(void)
69 * for now. 69 * for now.
70 */ 70 */
71 if (BCMCPU_IS_6328()) { 71 if (BCMCPU_IS_6328()) {
72 bmips_smp_enabled = 0; 72 reg = bcm_readl(BCM_6328_OTP_BASE +
73 OTP_USER_BITS_6328_REG(3));
74
75 if (reg & OTP_6328_REG3_TP1_DISABLED)
76 bmips_smp_enabled = 0;
73 } else if (BCMCPU_IS_6358()) { 77 } else if (BCMCPU_IS_6358()) {
74 bmips_smp_enabled = 0; 78 bmips_smp_enabled = 0;
75 } 79 }
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
index 9d3c08e4a7e4..22390a2a0661 100644
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
@@ -296,6 +296,8 @@ enum bcm63xx_regs_set {
296#define BCM_6328_PCMDMAS_BASE (0xdeadbeef) 296#define BCM_6328_PCMDMAS_BASE (0xdeadbeef)
297#define BCM_6328_RNG_BASE (0xdeadbeef) 297#define BCM_6328_RNG_BASE (0xdeadbeef)
298#define BCM_6328_MISC_BASE (0xb0001800) 298#define BCM_6328_MISC_BASE (0xb0001800)
299#define BCM_6328_OTP_BASE (0xb0000600)
300
299/* 301/*
300 * 6338 register sets base address 302 * 6338 register sets base address
301 */ 303 */
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
index 654213746b32..018628fe6f15 100644
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
@@ -1477,4 +1477,11 @@
1477 1477
1478#define PCIE_DEVICE_OFFSET 0x8000 1478#define PCIE_DEVICE_OFFSET 0x8000
1479 1479
1480/*************************************************************************
1481 * _REG relative to RSET_OTP
1482 *************************************************************************/
1483
1484#define OTP_USER_BITS_6328_REG(i) (0x20 + (i) * 4)
1485#define OTP_6328_REG3_TP1_DISABLED BIT(9)
1486
1480#endif /* BCM63XX_REGS_H_ */ 1487#endif /* BCM63XX_REGS_H_ */