We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95b56e8 commit 44151eaCopy full SHA for 44151ea
arch/mips/loongson64/init.c
@@ -120,7 +120,10 @@ void __init prom_init(void)
120
#endif
121
122
/* Hardcode to CPU UART 0 */
123
- setup_8250_early_printk_port(TO_UNCAC(LOONGSON_REG_BASE + 0x1e0), 0, 1024);
+ if ((read_c0_prid() & PRID_IMP_MASK) == PRID_IMP_LOONGSON_64R)
124
+ setup_8250_early_printk_port(TO_UNCAC(LOONGSON_REG_BASE), 0, 1024);
125
+ else
126
+ setup_8250_early_printk_port(TO_UNCAC(LOONGSON_REG_BASE + 0x1e0), 0, 1024);
127
128
register_smp_ops(&loongson3_smp_ops);
129
board_nmi_handler_setup = mips_nmi_setup;
0 commit comments