forked from Mirrors/opensbi
platform: andes/ae350: Use fdt serial driver
Andes UART is compatible with uart8250 driver. We can use fdt_serial_init() as platform console init hook. dts example: serial0: serial@f0300000 { compatible = "andestech,uart16550", "ns16550a"; reg = <0x00000000 0xf0300000 0x00000000 0x00001000>; interrupts = <9 4>; interrupt-parent = <&plic0>; clock-frequency = <19660800>; current-speed = <38400>; reg-shift = <2>; reg-offset = <32>; reg-io-width = <4>; no-loopback-test = <1>; }; Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
9899b59beb
commit
88f58a3694
@@ -22,14 +22,6 @@
|
||||
|
||||
#define AE350_L2C_ADDR 0xe0500000
|
||||
|
||||
#define AE350_UART_ADDR_OFFSET 0x20
|
||||
#define AE350_UART_ADDR (0xf0300000 + AE350_UART_ADDR_OFFSET)
|
||||
#define AE350_UART_FREQUENCY 19660800
|
||||
#define AE350_UART_BAUDRATE 38400
|
||||
#define AE350_UART_REG_SHIFT 2
|
||||
#define AE350_UART_REG_WIDTH 0
|
||||
#define AE350_UART_REG_OFFSET 0
|
||||
|
||||
/*Memory and Miscellaneous Registers*/
|
||||
#define CSR_MILMB 0x7c0
|
||||
#define CSR_MDLMB 0x7c1
|
||||
|
Reference in New Issue
Block a user