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>
This commit is contained in:

committed by
Michael Ellerman

parent
b3c711a9e1
commit
023b13a501
@@ -407,9 +407,17 @@ void opal_lpc_init(void)
|
||||
if (opal_lpc_chip_id < 0)
|
||||
return;
|
||||
|
||||
/* Setup special IO ops */
|
||||
ppc_pci_io = opal_lpc_io;
|
||||
isa_io_special = true;
|
||||
/* Does it support direct mapping ? */
|
||||
if (of_get_property(np, "ranges", NULL)) {
|
||||
pr_info("OPAL: Found memory mapped LPC bus on chip %d\n",
|
||||
opal_lpc_chip_id);
|
||||
isa_bridge_init_non_pci(np);
|
||||
} else {
|
||||
pr_info("OPAL: Found non-mapped LPC bus on chip %d\n",
|
||||
opal_lpc_chip_id);
|
||||
|
||||
pr_info("OPAL: Power8 LPC bus found, chip ID %d\n", opal_lpc_chip_id);
|
||||
/* Setup special IO ops */
|
||||
ppc_pci_io = opal_lpc_io;
|
||||
isa_io_special = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user