36#ifndef LIBBSP_AARCH64_RASPBERRYPI_BSP_RASPBERRYPI_UART_H
37#define LIBBSP_AARCH64_RASPBERRYPI_BSP_RASPBERRYPI_UART_H
41#include <bsp/raspberrypi.h>
42#include <bsp/rpi-gpio.h>
51#define RASPBERRYPI_CONSOLE_DEVICES(CONSOLE_DEVICE_DEFINITION_RENDERER) \
52 CONSOLE_DEVICE_DEFINITION_RENDERER( \
53 0, "/dev/ttyAMA0", BCM2711_UART0_BASE,BCM2711_UART0_SIZE, \
54 BSP_PL011_CLOCK_FREQ, BCM2711_IRQ_PL011_UART, arm_pl011_context, \
55 &arm_pl011_fns, arm_pl011_write_polled, 15, 14, GPIO_AF0) \
56 CONSOLE_DEVICE_DEFINITION_RENDERER( \
57 2, "/dev/ttyAMA1", BCM2711_UART2_BASE, BCM2711_UART2_SIZE, \
58 BSP_PL011_CLOCK_FREQ, BCM2711_IRQ_PL011_UART, arm_pl011_context, \
59 &arm_pl011_fns, arm_pl011_write_polled, 1, 0, GPIO_AF4) \
60 CONSOLE_DEVICE_DEFINITION_RENDERER( \
61 3, "/dev/ttyAMA2", BCM2711_UART3_BASE, BCM2711_UART3_SIZE, \
62 BSP_PL011_CLOCK_FREQ, BCM2711_IRQ_PL011_UART, arm_pl011_context, \
63 &arm_pl011_fns, arm_pl011_write_polled, 5, 4, GPIO_AF4) \
64 CONSOLE_DEVICE_DEFINITION_RENDERER( \
65 4, "/dev/ttyAMA3", BCM2711_UART4_BASE, BCM2711_UART4_SIZE, \
66 BSP_PL011_CLOCK_FREQ, BCM2711_IRQ_PL011_UART, arm_pl011_context, \
67 &arm_pl011_fns, arm_pl011_write_polled, 9, 8, GPIO_AF4) \
68 CONSOLE_DEVICE_DEFINITION_RENDERER( \
69 5, "/dev/ttyAMA4", BCM2711_UART5_BASE, BCM2711_UART5_SIZE, \
70 BSP_PL011_CLOCK_FREQ, BCM2711_IRQ_PL011_UART, arm_pl011_context, \
71 &arm_pl011_fns, arm_pl011_write_polled, 13, 12, GPIO_AF4)
ARM PL011 Support Package.