diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2015-03-08 04:48:21 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-04-13 05:45:17 -0400 |
commit | a44ec8bd2a55c7644d458d8e79d83bd9204e1796 (patch) | |
tree | 7dc54872be8441517012137389957efe0e0d3cc3 | |
parent | de60c1a1849c57e864f02f0d921993982b1648f8 (diff) |
ARC: Fix RTT boot printing
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/include/asm/arcregs.h | 1 | ||||
-rw-r--r-- | arch/arc/kernel/setup.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h index fe2c3cf82281..e2b1b1211b0d 100644 --- a/arch/arc/include/asm/arcregs.h +++ b/arch/arc/include/asm/arcregs.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #define ARC_REG_D_UNCACH_BCR 0x6A | 30 | #define ARC_REG_D_UNCACH_BCR 0x6A |
31 | #define ARC_REG_BPU_BCR 0xc0 | 31 | #define ARC_REG_BPU_BCR 0xc0 |
32 | #define ARC_REG_ISA_CFG_BCR 0xc1 | 32 | #define ARC_REG_ISA_CFG_BCR 0xc1 |
33 | #define ARC_REG_RTT_BCR 0xF2 | ||
33 | #define ARC_REG_SMART_BCR 0xFF | 34 | #define ARC_REG_SMART_BCR 0xFF |
34 | 35 | ||
35 | /* status32 Bits Positions */ | 36 | /* status32 Bits Positions */ |
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index 900f68a70088..1d167c6df8ca 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c | |||
@@ -120,7 +120,10 @@ static void read_arc_build_cfg_regs(void) | |||
120 | READ_BCR(ARC_REG_SMART_BCR, bcr); | 120 | READ_BCR(ARC_REG_SMART_BCR, bcr); |
121 | cpu->extn.smart = bcr.ver ? 1 : 0; | 121 | cpu->extn.smart = bcr.ver ? 1 : 0; |
122 | 122 | ||
123 | cpu->extn.debug = cpu->extn.ap | cpu->extn.smart; | 123 | READ_BCR(ARC_REG_RTT_BCR, bcr); |
124 | cpu->extn.rtt = bcr.ver ? 1 : 0; | ||
125 | |||
126 | cpu->extn.debug = cpu->extn.ap | cpu->extn.smart | cpu->extn.rtt; | ||
124 | } | 127 | } |
125 | 128 | ||
126 | static const struct cpuinfo_data arc_cpu_tbl[] = { | 129 | static const struct cpuinfo_data arc_cpu_tbl[] = { |