mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
aarch64/zynqmp: Fix UART base addresses and IRQ
The base addresses and IRQ numbers for UART 0 and 1 were interchanged. Fix this and set BSP_CONSOLE_MINOR to 0 for this BSP family.
This commit is contained in:
@@ -187,11 +187,11 @@ RTEMS_SYSINIT_ITEM(
|
||||
static zynq_uart_context zynqmp_uart_instances[2] = {
|
||||
{
|
||||
.base = RTEMS_TERMIOS_DEVICE_CONTEXT_INITIALIZER( "Zynq UART 0" ),
|
||||
.regs = (volatile struct zynq_uart *) 0xff010000,
|
||||
.regs = (volatile struct zynq_uart *) 0xff000000,
|
||||
.irq = ZYNQMP_IRQ_UART_0
|
||||
}, {
|
||||
.base = RTEMS_TERMIOS_DEVICE_CONTEXT_INITIALIZER( "Zynq UART 1" ),
|
||||
.regs = (volatile struct zynq_uart *) 0xff000000,
|
||||
.regs = (volatile struct zynq_uart *) 0xff010000,
|
||||
.irq = ZYNQMP_IRQ_UART_1
|
||||
}
|
||||
};
|
||||
|
||||
@@ -56,8 +56,8 @@ extern "C" {
|
||||
#define ZYNQMP_IRQ_QSPI 47
|
||||
#define ZYNQMP_IRQ_I2C_0 49
|
||||
#define ZYNQMP_IRQ_I2C_1 50
|
||||
#define ZYNQMP_IRQ_UART_0 54
|
||||
#define ZYNQMP_IRQ_UART_1 53
|
||||
#define ZYNQMP_IRQ_UART_0 53
|
||||
#define ZYNQMP_IRQ_UART_1 54
|
||||
#define ZYNQMP_IRQ_ETHERNET_0 89
|
||||
#define ZYNQMP_IRQ_ETHERNET_1 91
|
||||
#define ZYNQMP_IRQ_ETHERNET_2 93
|
||||
|
||||
@@ -7,6 +7,7 @@ copyrights:
|
||||
- Copyright (C) 2020 embedded brains GmbH & Co. KG
|
||||
default:
|
||||
- enabled-by:
|
||||
- aarch64/bsps/xilinx-zynqmp
|
||||
- arm/xilinx_zynq_microzed
|
||||
value: 0
|
||||
- enabled-by: true
|
||||
|
||||
Reference in New Issue
Block a user