mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
ARC: Fix RTT boot printing
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
parent
de60c1a184
commit
a44ec8bd2a
2 changed files with 5 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
||||||
#define ARC_REG_D_UNCACH_BCR 0x6A
|
#define ARC_REG_D_UNCACH_BCR 0x6A
|
||||||
#define ARC_REG_BPU_BCR 0xc0
|
#define ARC_REG_BPU_BCR 0xc0
|
||||||
#define ARC_REG_ISA_CFG_BCR 0xc1
|
#define ARC_REG_ISA_CFG_BCR 0xc1
|
||||||
|
#define ARC_REG_RTT_BCR 0xF2
|
||||||
#define ARC_REG_SMART_BCR 0xFF
|
#define ARC_REG_SMART_BCR 0xFF
|
||||||
|
|
||||||
/* status32 Bits Positions */
|
/* status32 Bits Positions */
|
||||||
|
|
|
@ -120,7 +120,10 @@ static void read_arc_build_cfg_regs(void)
|
||||||
READ_BCR(ARC_REG_SMART_BCR, bcr);
|
READ_BCR(ARC_REG_SMART_BCR, bcr);
|
||||||
cpu->extn.smart = bcr.ver ? 1 : 0;
|
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[] = {
|
static const struct cpuinfo_data arc_cpu_tbl[] = {
|
||||||
|
|
Loading…
Reference in a new issue