Previous changes enable an architecture independent use of the uart
interface and the 8250 uart driver in particular.

Signed-off-by: Ralf Ramsauer <[email protected]>
---
 hypervisor/Makefile                           | 1 +
 hypervisor/arch/arm-common/Kbuild             | 2 +-
 hypervisor/arch/arm-common/include/asm/uart.h | 2 +-
 hypervisor/include/jailhouse/uart.h           | 2 ++
 hypervisor/{arch/arm-common => }/uart-8250.c  | 0
 5 files changed, 5 insertions(+), 2 deletions(-)
 rename hypervisor/{arch/arm-common => }/uart-8250.c (100%)

diff --git a/hypervisor/Makefile b/hypervisor/Makefile
index 0dff963295..e20b9c12c8 100644
--- a/hypervisor/Makefile
+++ b/hypervisor/Makefile
@@ -33,6 +33,7 @@ endif
 GCOV_PROFILE := n
 
 CORE_OBJECTS = setup.o printk.o paging.o control.o lib.o mmio.o pci.o ivshmem.o
+CORE_OBJECTS += uart-8250.o
 
 define filechk_config_mk
 (                                                                      \
diff --git a/hypervisor/arch/arm-common/Kbuild 
b/hypervisor/arch/arm-common/Kbuild
index 3a0a394595..66d40fa51e 100644
--- a/hypervisor/arch/arm-common/Kbuild
+++ b/hypervisor/arch/arm-common/Kbuild
@@ -15,7 +15,7 @@ include $(CONFIG_MK)
 GCOV_PROFILE := n
 
 OBJS-y += dbg-write.o lib.o psci.o control.o paging.o mmu_cell.o
-OBJS-y += irqchip.o pci.o ivshmem.o uart-pl011.o uart-8250.o uart-xuartps.o
+OBJS-y += irqchip.o pci.o ivshmem.o uart-pl011.o uart-xuartps.o
 OBJS-$(CONFIG_ARM_GIC_V2) += gic-v2.o
 
 COMMON_OBJECTS = $(addprefix ../arm-common/,$(OBJS-y))
diff --git a/hypervisor/arch/arm-common/include/asm/uart.h 
b/hypervisor/arch/arm-common/include/asm/uart.h
index f3b053084f..274b4a541b 100644
--- a/hypervisor/arch/arm-common/include/asm/uart.h
+++ b/hypervisor/arch/arm-common/include/asm/uart.h
@@ -15,7 +15,7 @@
 
 #ifndef __ASSEMBLY__
 
-extern struct uart_chip uart_8250_ops, uart_pl011_ops, uart_xuartps_ops;
+extern struct uart_chip uart_pl011_ops, uart_xuartps_ops;
 
 #endif /* !__ASSEMBLY__ */
 #endif /* !JAILHOUSE_ASM_UART_H_ */
diff --git a/hypervisor/include/jailhouse/uart.h 
b/hypervisor/include/jailhouse/uart.h
index a8ddb27b39..21933a3871 100644
--- a/hypervisor/include/jailhouse/uart.h
+++ b/hypervisor/include/jailhouse/uart.h
@@ -26,3 +26,5 @@ struct uart_chip {
        bool (*is_busy)(struct uart_chip *chip);
        void (*write_char)(struct uart_chip *chip, char c);
 };
+
+extern struct uart_chip uart_8250_ops;
diff --git a/hypervisor/arch/arm-common/uart-8250.c b/hypervisor/uart-8250.c
similarity index 100%
rename from hypervisor/arch/arm-common/uart-8250.c
rename to hypervisor/uart-8250.c
-- 
2.12.0

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to