diff options
author | Benjamin Herrenschmidt | 2017-01-30 08:11:57 +0100 |
---|---|---|
committer | Michael Ellerman | 2017-01-31 03:54:18 +0100 |
commit | 023b13a50183d9cfc4fc5a66cb1f773ace22024c (patch) | |
tree | ad6ca1d8c83e0b750f452f7f947a3375f2a19fae /arch/powerpc/kernel | |
parent | powerpc: Add support for non-PCI ISA bridges (diff) | |
download | kernel-qcow2-linux-023b13a50183d9cfc4fc5a66cb1f773ace22024c.tar.gz kernel-qcow2-linux-023b13a50183d9cfc4fc5a66cb1f773ace22024c.tar.xz kernel-qcow2-linux-023b13a50183d9cfc4fc5a66cb1f773ace22024c.zip |
powerpc/powernv: Add support for direct mapped LPC on POWER9
Use the new non-PCI ISA bridge support to expose the POWER9
LPC bus as direct mapped via the ISA IO port range. This
enables direct access via drivers such as 8250
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/legacy_serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c index bc525ea0dc09..0694d20f85b6 100644 --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c @@ -233,7 +233,8 @@ static int __init add_legacy_isa_port(struct device_node *np, * * Note: Don't even try on P8 lpc, we know it's not directly mapped */ - if (!of_device_is_compatible(isa_brg, "ibm,power8-lpc")) { + if (!of_device_is_compatible(isa_brg, "ibm,power8-lpc") || + of_get_property(isa_brg, "ranges", NULL)) { taddr = of_translate_address(np, reg); if (taddr == OF_BAD_ADDR) taddr = 0; |