malta: Tidy up UART address selection
The address of the UART differs based upon the system controller because it's actually within the I/O port region, which is in a different location for each system controller. Rather than handling this as 2 UARTs with the correct one selected at runtime, use I/O port accessors for the UART such that access to it gets translated into the I/O port region automatically. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
committed by
Daniel Schwierzeck
parent
df8ec55d52
commit
2e7eb12e5c
@@ -67,10 +67,10 @@
|
||||
#define CONFIG_BAUDRATE 115200
|
||||
|
||||
#define CONFIG_SYS_NS16550_SERIAL
|
||||
#define CONFIG_SYS_NS16550_PORT_MAPPED
|
||||
#define CONFIG_SYS_NS16550_REG_SIZE 1
|
||||
#define CONFIG_SYS_NS16550_CLK (115200 * 16)
|
||||
#define CONFIG_SYS_NS16550_COM1 0xb80003f8
|
||||
#define CONFIG_SYS_NS16550_COM2 0xbb0003f8
|
||||
#define CONFIG_SYS_NS16550_COM1 0x3f8
|
||||
#define CONFIG_CONS_INDEX 1
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user