aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-02-03 20:52:00 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-03-03 09:42:10 +1100
commitca2d9170822c1d6a2909ade2d131c14f165d7840 (patch)
tree9c665ccd1fb37328f38059dd3921816a9ba1de3d
parenta2940770ca6da2c58081f8207aded197e45f6cd6 (diff)
downloadskiboot-ca2d9170822c1d6a2909ade2d131c14f165d7840.zip
skiboot-ca2d9170822c1d6a2909ade2d131c14f165d7840.tar.gz
skiboot-ca2d9170822c1d6a2909ade2d131c14f165d7840.tar.bz2
hdat: Fix interrupt & device_type of UART node
The interrupt should use a standard "interrupts" property. The UART node also need a device_type="serial" property for historical reasons otherwise Linux won't pick it up. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Reviewed-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hdata/fsp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hdata/fsp.c b/hdata/fsp.c
index 998724b..f44f6a9 100644
--- a/hdata/fsp.c
+++ b/hdata/fsp.c
@@ -264,8 +264,10 @@ static void add_uart(const struct spss_iopath *iopath, struct dt_node *lpc)
be32_to_cpu(iopath->lpc.uart_baud));
dt_add_property_cells(serial, "clock-frequency",
be32_to_cpu(iopath->lpc.uart_clk));
- dt_add_property_cells(serial, "serirq-interrupt",
+ dt_add_property_cells(serial, "interrupts",
be32_to_cpu(iopath->lpc.uart_int_number));
+ dt_add_property_string(serial, "device_type", "serial");
+
prlog(PR_DEBUG, "LPC UART: base addr = %#" PRIx64" (%#" PRIx64 ") size = %#x clk = %u, baud = %u\n",
be64_to_cpu(iopath->lpc.uart_base),