[meta-xilinx] [PATCH] recipes-zynqmp: qemu: Change the UART reset values
Alistair Francis
alistair.francis at xilinx.com
Tue Jun 7 17:59:40 PDT 2016
Update the QEMU Cadence UART reset values to enable a direct Linux boot
without u-boot.
Signed-off-by: Alistair Francis <alistair.francis at xilinx.com>
---
In future versions of QEMU we can hopefully change the reset values from
the command line, but at the moment this is the best we can do.
.../d3d0ed0cc451232fd5037d41d8e73de469c83cf6.patch | 31 ++++++++++++++++++++++
recipes-zynqmp/qemu/qemu_2.5%.bbappend | 1 +
2 files changed, 32 insertions(+)
create mode 100644 recipes-zynqmp/qemu/files/d3d0ed0cc451232fd5037d41d8e73de469c83cf6.patch
diff --git a/recipes-zynqmp/qemu/files/d3d0ed0cc451232fd5037d41d8e73de469c83cf6.patch b/recipes-zynqmp/qemu/files/d3d0ed0cc451232fd5037d41d8e73de469c83cf6.patch
new file mode 100644
index 0000000..930fcfc
--- /dev/null
+++ b/recipes-zynqmp/qemu/files/d3d0ed0cc451232fd5037d41d8e73de469c83cf6.patch
@@ -0,0 +1,31 @@
+From d3d0ed0cc451232fd5037d41d8e73de469c83cf6 Mon Sep 17 00:00:00 2001
+From: Alistair Francis <alistair.francis at xilinx.com>
+Date: Tue, 7 Jun 2016 17:14:27 -0700
+Subject: [PATCH] cadence_uart: Enable transmitter by default
+
+On hardware Linux relies on u-boot to enable the transmitter for the
+Cadence UART device. To allow direct Linux boots on QEMU change the
+default reset values to enable the transmitter by default.
+
+Signed-off-by: Alistair Francis <alistair.francis at xilinx.com>
+Upstream-Status: Not Applicable
+---
+ hw/char/cadence_uart.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c
+index 9d379e5..c72ceb7 100644
+--- a/hw/char/cadence_uart.c
++++ b/hw/char/cadence_uart.c
+@@ -440,7 +440,7 @@ static void cadence_uart_reset(DeviceState *dev)
+ {
+ CadenceUARTState *s = CADENCE_UART(dev);
+
+- s->r[R_CR] = 0x00000128;
++ s->r[R_CR] = 0x00000118;
+ s->r[R_IMR] = 0;
+ s->r[R_CISR] = 0;
+ s->r[R_RTRIG] = 0x00000020;
+--
+2.7.4
+
diff --git a/recipes-zynqmp/qemu/qemu_2.5%.bbappend b/recipes-zynqmp/qemu/qemu_2.5%.bbappend
index 6f7cb50..73ed23d 100644
--- a/recipes-zynqmp/qemu/qemu_2.5%.bbappend
+++ b/recipes-zynqmp/qemu/qemu_2.5%.bbappend
@@ -5,5 +5,6 @@ SRC_URI += " \
file://4054bfa9e7986c9b7d2bf70f9e10af9647e376fc.patch \
file://8a83ffc2dafad3499b87a736b17ab1b203fdb00b.patch \
file://978364f12adebb4b8d90fdeb71242cb3c1405740.patch \
+ file://d3d0ed0cc451232fd5037d41d8e73de469c83cf6.patch \
"
--
2.7.4
More information about the meta-xilinx
mailing list