forked from Imagelibrary/rtems
This patch adds driver for Mini UART present in Raspberry Pi 3 and above, this UART is currently used as the primary UART in these models. The Mini UART is similar to ns16550, this driver is built upon libchip/ns16550.
44 lines
852 B
C
44 lines
852 B
C
/**
|
|
* @file
|
|
*
|
|
* @ingroup raspberrypi_usart
|
|
*
|
|
* @brief USART support.
|
|
*/
|
|
|
|
|
|
/**
|
|
* @defgroup raspberrypi_usart USART Support
|
|
*
|
|
* @ingroup RTEMSBSPsARMRaspberryPi
|
|
*
|
|
* @brief Universal Synchronous/Asynchronous Receiver/Transmitter (USART) Support
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2013 Alan Cudmore.
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.org/license/LICENSE
|
|
*/
|
|
|
|
#ifndef LIBBSP_ARM_RASPBERRYPI_USART_H
|
|
#define LIBBSP_ARM_RASPBERRYPI_USART_H
|
|
|
|
#include <libchip/serial.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
#define PL011_DEFAULT_BAUD 115000
|
|
#define MINI_UART_DEFAULT_BAUD 115200
|
|
#define BCM2835_PL011_BASE (RPI_PERIPHERAL_BASE + 0x201000)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* LIBBSP_ARM_RASPBERRYPI_USART_H */
|