[PATCH 2/4] bsp/zynq-uart: Move Zynq UART driver to shared directory

Jeff Kubascik Jeff.Kubascik at dornerworks.com
Sat Apr 6 00:53:48 UTC 2019


From: Jeff Kubascik <jeff.kubascik at dornerworks.com>

This driver will be shared with the xilinx-zynqmp BSP.
---
 bsps/arm/{xilinx-zynq => }/include/bsp/zynq-uart-regs.h     | 0
 bsps/arm/{xilinx-zynq => }/include/bsp/zynq-uart.h          | 0
 bsps/arm/{xilinx-zynq/console => shared/serial}/zynq-uart.c | 0
 bsps/arm/xilinx-zynq/headers.am                             | 4 ++--
 c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am                | 2 +-
 5 files changed, 3 insertions(+), 3 deletions(-)
 rename bsps/arm/{xilinx-zynq => }/include/bsp/zynq-uart-regs.h (100%)
 rename bsps/arm/{xilinx-zynq => }/include/bsp/zynq-uart.h (100%)
 rename bsps/arm/{xilinx-zynq/console => shared/serial}/zynq-uart.c (100%)

diff --git a/bsps/arm/xilinx-zynq/include/bsp/zynq-uart-regs.h b/bsps/arm/include/bsp/zynq-uart-regs.h
similarity index 100%
rename from bsps/arm/xilinx-zynq/include/bsp/zynq-uart-regs.h
rename to bsps/arm/include/bsp/zynq-uart-regs.h
diff --git a/bsps/arm/xilinx-zynq/include/bsp/zynq-uart.h b/bsps/arm/include/bsp/zynq-uart.h
similarity index 100%
rename from bsps/arm/xilinx-zynq/include/bsp/zynq-uart.h
rename to bsps/arm/include/bsp/zynq-uart.h
diff --git a/bsps/arm/xilinx-zynq/console/zynq-uart.c b/bsps/arm/shared/serial/zynq-uart.c
similarity index 100%
rename from bsps/arm/xilinx-zynq/console/zynq-uart.c
rename to bsps/arm/shared/serial/zynq-uart.c
diff --git a/bsps/arm/xilinx-zynq/headers.am b/bsps/arm/xilinx-zynq/headers.am
index 708bd6411a..ed7061964c 100644
--- a/bsps/arm/xilinx-zynq/headers.am
+++ b/bsps/arm/xilinx-zynq/headers.am
@@ -11,5 +11,5 @@ include_bsp_HEADERS += ../../../../../../bsps/arm/xilinx-zynq/include/bsp/cadenc
 include_bsp_HEADERS += ../../../../../../bsps/arm/xilinx-zynq/include/bsp/cadence-i2c.h
 include_bsp_HEADERS += ../../../../../../bsps/arm/xilinx-zynq/include/bsp/i2c.h
 include_bsp_HEADERS += ../../../../../../bsps/arm/xilinx-zynq/include/bsp/irq.h
-include_bsp_HEADERS += ../../../../../../bsps/arm/xilinx-zynq/include/bsp/zynq-uart-regs.h
-include_bsp_HEADERS += ../../../../../../bsps/arm/xilinx-zynq/include/bsp/zynq-uart.h
+include_bsp_HEADERS += ../../../../../../bsps/arm/include/bsp/zynq-uart-regs.h
+include_bsp_HEADERS += ../../../../../../bsps/arm/include/bsp/zynq-uart.h
diff --git a/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am b/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
index 0ec2944d53..7b4e4aea94 100644
--- a/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
+++ b/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
@@ -61,7 +61,7 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/irq/irq-gic.c
 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termios.c
 librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/xilinx-zynq/console/console-config.c
 librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/xilinx-zynq/console/debug-console.c
-librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/xilinx-zynq/console/zynq-uart.c
+librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/serial/zynq-uart.c
 
 # Clock
 librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/clock/clock-a9mpcore.c
-- 
2.17.1




More information about the devel mailing list