]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARC: Fix RTT boot printing
authorVineet Gupta <vgupta@synopsys.com>
Sun, 8 Mar 2015 08:48:21 +0000 (14:18 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 13 Apr 2015 09:45:17 +0000 (15:15 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/arcregs.h
arch/arc/kernel/setup.c

index fe2c3cf822818a63389bfd1fbab5c2f0bc041cf1..e2b1b1211b0d4ddbb527ed7239eaf05759dfae27 100644 (file)
@@ -30,6 +30,7 @@
 #define ARC_REG_D_UNCACH_BCR   0x6A
 #define ARC_REG_BPU_BCR                0xc0
 #define ARC_REG_ISA_CFG_BCR    0xc1
+#define ARC_REG_RTT_BCR                0xF2
 #define ARC_REG_SMART_BCR      0xFF
 
 /* status32 Bits Positions */
index 900f68a7008832017296f3dc641e70203358c5d6..1d167c6df8caae8a48d59b2aa08539e9f20b51d6 100644 (file)
@@ -120,7 +120,10 @@ static void read_arc_build_cfg_regs(void)
        READ_BCR(ARC_REG_SMART_BCR, bcr);
        cpu->extn.smart = bcr.ver ? 1 : 0;
 
-       cpu->extn.debug = cpu->extn.ap | cpu->extn.smart;
+       READ_BCR(ARC_REG_RTT_BCR, bcr);
+       cpu->extn.rtt = bcr.ver ? 1 : 0;
+
+       cpu->extn.debug = cpu->extn.ap | cpu->extn.smart | cpu->extn.rtt;
 }
 
 static const struct cpuinfo_data arc_cpu_tbl[] = {