[PATCH] aarch64/zynqmp: Fix UART base addresses and IRQ

Kinsey Moore kinsey.moore at oarcorp.com
Mon Mar 11 13:29:35 UTC 2024


Looks good to me. The overall effect of this is no functional change.
Thanks for the cleanup!

Kinsey

On Mon, Mar 11, 2024 at 8:25 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> 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.
> ---
>  bsps/aarch64/xilinx-zynqmp/console/console.c | 4 ++--
>  bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h | 4 ++--
>  spec/build/bsps/optconminor.yml              | 1 +
>  3 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/bsps/aarch64/xilinx-zynqmp/console/console.c
> b/bsps/aarch64/xilinx-zynqmp/console/console.c
> index 0b62893e67..9ce0b1da63 100644
> --- a/bsps/aarch64/xilinx-zynqmp/console/console.c
> +++ b/bsps/aarch64/xilinx-zynqmp/console/console.c
> @@ -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
>    }
>  };
> diff --git a/bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h
> b/bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h
> index 2cbe99f863..024fd0d89a 100644
> --- a/bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h
> +++ b/bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h
> @@ -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
> diff --git a/spec/build/bsps/optconminor.yml
> b/spec/build/bsps/optconminor.yml
> index 514b3fa032..3f17f05fe7 100644
> --- a/spec/build/bsps/optconminor.yml
> +++ b/spec/build/bsps/optconminor.yml
> @@ -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
> --
> 2.35.3
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20240311/ae1b94f2/attachment.htm>


More information about the devel mailing list