mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
b3c711a9e1
commit
023b13a501
2 changed files with 14 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue