5
Last change
on this file since f53473f was
f53473f,
checked in by G S Niteesh <gsnb.gn@…>, on 02/09/20 at 19:21:44
|
bsp/raspberrypi: Mini UART driver
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.
|
-
Property mode set to
100644
|
File size:
852 bytes
|
Rev | Line | |
---|
[98eb7e78] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @ingroup raspberrypi_usart |
---|
| 5 | * |
---|
| 6 | * @brief USART support. |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | /** |
---|
| 11 | * @defgroup raspberrypi_usart USART Support |
---|
| 12 | * |
---|
[c991eeec] | 13 | * @ingroup RTEMSBSPsARMRaspberryPi |
---|
[98eb7e78] | 14 | * |
---|
| 15 | * @brief Universal Synchronous/Asynchronous Receiver/Transmitter (USART) Support |
---|
| 16 | */ |
---|
| 17 | |
---|
[c32b1ef] | 18 | /* |
---|
| 19 | * Copyright (c) 2013 Alan Cudmore. |
---|
| 20 | * |
---|
| 21 | * The license and distribution terms for this file may be |
---|
| 22 | * found in the file LICENSE in this distribution or at |
---|
[c499856] | 23 | * http://www.rtems.org/license/LICENSE |
---|
[c32b1ef] | 24 | */ |
---|
| 25 | |
---|
| 26 | #ifndef LIBBSP_ARM_RASPBERRYPI_USART_H |
---|
| 27 | #define LIBBSP_ARM_RASPBERRYPI_USART_H |
---|
| 28 | |
---|
| 29 | #include <libchip/serial.h> |
---|
| 30 | |
---|
| 31 | #ifdef __cplusplus |
---|
| 32 | extern "C" { |
---|
| 33 | #endif /* __cplusplus */ |
---|
| 34 | |
---|
[362cf319] | 35 | #define PL011_DEFAULT_BAUD 115000 |
---|
[f53473f] | 36 | #define MINI_UART_DEFAULT_BAUD 115200 |
---|
[362cf319] | 37 | #define BCM2835_PL011_BASE (RPI_PERIPHERAL_BASE + 0x201000) |
---|
[c32b1ef] | 38 | |
---|
| 39 | #ifdef __cplusplus |
---|
| 40 | } |
---|
| 41 | #endif /* __cplusplus */ |
---|
| 42 | |
---|
| 43 | #endif /* LIBBSP_ARM_RASPBERRYPI_USART_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.