source: rtems/bsps/arm/raspberrypi/include/bsp/usart.h @ f53473f

Last change on this file since f53473f was f53473f, checked in by G S Niteesh <gsnb.gn@…>, on Feb 9, 2020 at 7:21:44 PM

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
Line 
1/**
2 * @file
3 *
4 * @ingroup raspberrypi_usart
5 *
6 * @brief USART support.
7 */
8
9
10/**
11 * @defgroup raspberrypi_usart USART Support
12 *
13 * @ingroup RTEMSBSPsARMRaspberryPi
14 *
15 * @brief Universal Synchronous/Asynchronous Receiver/Transmitter (USART) Support
16 */
17
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
23 * http://www.rtems.org/license/LICENSE
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
32extern "C" {
33#endif /* __cplusplus */
34
35#define PL011_DEFAULT_BAUD 115000
36#define MINI_UART_DEFAULT_BAUD   115200
37#define BCM2835_PL011_BASE (RPI_PERIPHERAL_BASE + 0x201000)
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.