Skip to content

Commit 9c6375f

Browse files
Eugeniy Paltsevvineetgarc
authored andcommitted
ARC: nSIM_700: switch to DW UART usage
Switch nsim_700_defconfig to dwuart for consistent uart settings for all nSIM configurations. Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: Vineet Gupta <[email protected]>
1 parent 1681baa commit 9c6375f

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

arch/arc/boot/dts/nsim_700.dts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
interrupt-parent = <&core_intc>;
1515

1616
chosen {
17-
bootargs = "earlycon=arc_uart,mmio32,0xc0fc1000,115200n8 console=ttyARC0,115200n8 print-fatal-signals=1";
17+
bootargs = "earlycon=uart8250,mmio32,0xf0000000,115200n8 console=ttyS0,115200n8 print-fatal-signals=1";
1818
};
1919

2020
aliases {
21-
serial0 = &arcuart0;
21+
serial0 = &uart0;
2222
};
2323

2424
fpga {
@@ -41,13 +41,15 @@
4141
#interrupt-cells = <1>;
4242
};
4343

44-
arcuart0: serial@c0fc1000 {
45-
compatible = "snps,arc-uart";
46-
reg = <0xc0fc1000 0x100>;
47-
interrupts = <5>;
48-
clock-frequency = <80000000>;
49-
current-speed = <115200>;
50-
status = "okay";
44+
uart0: serial@f0000000 {
45+
compatible = "ns16550a";
46+
reg = <0xf0000000 0x2000>;
47+
interrupts = <24>;
48+
clock-frequency = <50000000>;
49+
baud = <115200>;
50+
reg-shift = <2>;
51+
reg-io-width = <4>;
52+
no-loopback-test = <1>;
5153
};
5254

5355
ethernet@c0fc2000 {

arch/arc/configs/nsim_700_defconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ CONFIG_LXT_PHY=y
4141
# CONFIG_INPUT_MOUSE is not set
4242
# CONFIG_SERIO is not set
4343
# CONFIG_LEGACY_PTYS is not set
44-
CONFIG_SERIAL_ARC=y
45-
CONFIG_SERIAL_ARC_CONSOLE=y
44+
CONFIG_SERIAL_8250=y
45+
CONFIG_SERIAL_8250_CONSOLE=y
46+
CONFIG_SERIAL_8250_NR_UARTS=1
47+
CONFIG_SERIAL_8250_RUNTIME_UARTS=1
48+
CONFIG_SERIAL_8250_DW=y
49+
CONFIG_SERIAL_OF_PLATFORM=y
4650
# CONFIG_HW_RANDOM is not set
4751
# CONFIG_HWMON is not set
4852
# CONFIG_HID is not set

0 commit comments

Comments
 (0)