mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
bsps: Move zynq-uart to bsps/shared
This moves the zynq-uart driver from bsps/arm/shared to bsps/shared to accomodate use by AArch64 BSPs.
This commit is contained in:
committed by
Joel Sherrill
parent
ef0fe8ee60
commit
f0859573f9
@@ -31,8 +31,6 @@ include_bsp_HEADERS += ../../../../../bsps/arm/include/bsp/lpc-i2s.h
|
||||
include_bsp_HEADERS += ../../../../../bsps/arm/include/bsp/lpc-lcd.h
|
||||
include_bsp_HEADERS += ../../../../../bsps/arm/include/bsp/lpc-timer.h
|
||||
include_bsp_HEADERS += ../../../../../bsps/arm/include/bsp/start.h
|
||||
include_bsp_HEADERS += ../../../../../bsps/arm/include/bsp/zynq-uart-regs.h
|
||||
include_bsp_HEADERS += ../../../../../bsps/arm/include/bsp/zynq-uart.h
|
||||
|
||||
include_libcpudir = $(includedir)/libcpu
|
||||
include_libcpu_HEADERS =
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#include <bsp/irq.h>
|
||||
#include <bsp/zynq-uart.h>
|
||||
#include <dev/serial/zynq-uart.h>
|
||||
|
||||
zynq_uart_context zynq_uart_instances[2] = {
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <rtems/console.h>
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/zynq-uart.h>
|
||||
#include <dev/serial/zynq-uart.h>
|
||||
|
||||
rtems_status_code console_initialize(
|
||||
rtems_device_major_number major,
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <rtems/sysinit.h>
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/zynq-uart.h>
|
||||
#include <dev/serial/zynq-uart.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
#include <bsp/default-initial-extension.h>
|
||||
#include <bsp/start.h>
|
||||
#include <bsp/zynq-uart.h>
|
||||
#include <dev/serial/zynq-uart.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/bootcard.h>
|
||||
#include <bsp/zynq-uart.h>
|
||||
#include <dev/serial/zynq-uart.h>
|
||||
|
||||
void bsp_reset(void)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include <rtems/sysinit.h>
|
||||
|
||||
#include <bsp/irq.h>
|
||||
#include <bsp/zynq-uart.h>
|
||||
#include <dev/serial/zynq-uart.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
|
||||
@@ -32,6 +32,8 @@ include_dev_serialdir = $(includedir)/dev/serial
|
||||
include_dev_serial_HEADERS =
|
||||
include_dev_serial_HEADERS += ../../bsps/include/dev/serial/arm-pl011-regs.h
|
||||
include_dev_serial_HEADERS += ../../bsps/include/dev/serial/arm-pl011.h
|
||||
include_dev_serial_HEADERS += ../../bsps/include/dev/serial/zynq-uart-regs.h
|
||||
include_dev_serial_HEADERS += ../../bsps/include/dev/serial/zynq-uart.h
|
||||
|
||||
include_grlibdir = $(includedir)/grlib
|
||||
include_grlib_HEADERS =
|
||||
|
||||
@@ -44,6 +44,9 @@ extern "C" {
|
||||
* @defgroup zynq_uart UART Support
|
||||
* @ingroup RTEMSBSPsARMZynq
|
||||
* @brief UART Support
|
||||
*
|
||||
* This driver operates an instance of the Cadence UART present in the
|
||||
* family of Xilinx Zynq SoCs.
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
@@ -57,6 +60,10 @@ extern const rtems_termios_device_handler zynq_uart_handler;
|
||||
|
||||
#define ZYNQ_UART_DEFAULT_BAUD 115200
|
||||
|
||||
#ifndef ZYNQ_CLOCK_UART
|
||||
#define ZYNQ_CLOCK_UART 100000000
|
||||
#endif
|
||||
|
||||
void zynq_uart_initialize(rtems_termios_device_context *base);
|
||||
|
||||
int zynq_uart_read_polled(rtems_termios_device_context *base);
|
||||
@@ -25,8 +25,8 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <bsp/zynq-uart.h>
|
||||
#include <bsp/zynq-uart-regs.h>
|
||||
#include <dev/serial/zynq-uart.h>
|
||||
#include <dev/serial/zynq-uart-regs.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <bsp/zynq-uart.h>
|
||||
#include <bsp/zynq-uart-regs.h>
|
||||
#include <dev/serial/zynq-uart.h>
|
||||
#include <dev/serial/zynq-uart-regs.h>
|
||||
#include <bsp/irq.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
@@ -62,8 +62,8 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termio
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/xilinx-zynq/console/console-config.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/xilinx-zynq/console/console-init.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/xilinx-zynq/console/debug-console.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/serial/zynq-uart.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/serial/zynq-uart-polled.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/zynq-uart.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/zynq-uart-polled.c
|
||||
|
||||
# Clock
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/clock/clock-a9mpcore.c
|
||||
|
||||
@@ -60,8 +60,8 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/irq/irq-gic.c
|
||||
# Console
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termios.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/xilinx-zynqmp/console/console-config.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/serial/zynq-uart.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/serial/zynq-uart-polled.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/zynq-uart.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/zynq-uart-polled.c
|
||||
|
||||
# Clock
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/clock/arm-generic-timer.c
|
||||
|
||||
@@ -36,8 +36,6 @@ install:
|
||||
- bsps/arm/include/bsp/lpc-lcd.h
|
||||
- bsps/arm/include/bsp/lpc-timer.h
|
||||
- bsps/arm/include/bsp/start.h
|
||||
- bsps/arm/include/bsp/zynq-uart-regs.h
|
||||
- bsps/arm/include/bsp/zynq-uart.h
|
||||
- destination: ${BSP_INCLUDEDIR}/dev/irq
|
||||
source:
|
||||
- bsps/include/dev/irq/arm-gic-irq.h
|
||||
|
||||
@@ -25,8 +25,6 @@ source:
|
||||
- bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c
|
||||
- bsps/arm/shared/cp15/arm-cp15-set-ttb-entries.c
|
||||
- bsps/arm/shared/irq/irq-gic.c
|
||||
- bsps/arm/shared/serial/zynq-uart.c
|
||||
- bsps/arm/shared/serial/zynq-uart-polled.c
|
||||
- bsps/arm/shared/start/bsp-start-memcpy.S
|
||||
- bsps/arm/xilinx-zynq/console/console-config.c
|
||||
- bsps/arm/xilinx-zynq/console/console-init.c
|
||||
|
||||
@@ -80,8 +80,6 @@ source:
|
||||
- bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c
|
||||
- bsps/arm/shared/cp15/arm-cp15-set-ttb-entries.c
|
||||
- bsps/arm/shared/irq/irq-gic.c
|
||||
- bsps/arm/shared/serial/zynq-uart.c
|
||||
- bsps/arm/shared/serial/zynq-uart-polled.c
|
||||
- bsps/arm/shared/start/bsp-start-memcpy.S
|
||||
- bsps/arm/xilinx-zynqmp/console/console-config.c
|
||||
- bsps/arm/xilinx-zynqmp/start/bspreset.c
|
||||
|
||||
@@ -52,6 +52,8 @@ install:
|
||||
source:
|
||||
- bsps/include/dev/serial/arm-pl011-regs.h
|
||||
- bsps/include/dev/serial/arm-pl011.h
|
||||
- bsps/include/dev/serial/zynq-uart-regs.h
|
||||
- bsps/include/dev/serial/zynq-uart.h
|
||||
- destination: ${BSP_INCLUDEDIR}/rtems/zilog
|
||||
source:
|
||||
- bsps/include/rtems/zilog/z8036.h
|
||||
@@ -94,6 +96,8 @@ source:
|
||||
- bsps/shared/dev/serial/ns16550.c
|
||||
- bsps/shared/dev/serial/ns16550-context.c
|
||||
- bsps/shared/dev/serial/serprobe.c
|
||||
- bsps/shared/dev/serial/zynq-uart.c
|
||||
- bsps/shared/dev/serial/zynq-uart-polled.c
|
||||
- bsps/shared/start/bootcard.c
|
||||
- bsps/shared/rtems-version.c
|
||||
type: build
|
||||
|
||||
Reference in New Issue
Block a user