Commit 687e16bc authored by Darren Stevens's avatar Darren Stevens Committed by Michael Ellerman

powerpc/pasemi: Fix device_type of Nemo SB600 node.

The of_node for the SB600 (io-bridge) has its device_type set to
'io-bridge' Set it to 'isa' so that it can be found by
isa_bridge_find_early() instead of using patches in the kernel.
Signed-off-by: default avatarDarren Stevens <darren@stevens-zone.net>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 50246787
...@@ -2703,6 +2703,22 @@ static void __init fixup_device_tree_pasemi(void) ...@@ -2703,6 +2703,22 @@ static void __init fixup_device_tree_pasemi(void)
prom_setprop(node, pci_name, "interrupt-parent", &parent, prom_setprop(node, pci_name, "interrupt-parent", &parent,
sizeof(parent)); sizeof(parent));
} }
/*
* The io-bridge has device_type set to 'io-bridge' change it to 'isa'
* so that generic isa-bridge code can add the SB600 and its on-board
* peripherals.
*/
name = "/pxp@0,e0000000/io-bridge@0";
iob = call_prom("finddevice", 1, 1, ADDR(name));
if (!PHANDLE_VALID(iob))
return;
/* device_type is already set, just change it. */
prom_printf("Changing device_type of SB600 node...\n");
prom_setprop(iob, name, "device_type", "isa", sizeof("isa"));
} }
#else /* !CONFIG_PPC_PASEMI_NEMO */ #else /* !CONFIG_PPC_PASEMI_NEMO */
static inline void fixup_device_tree_pasemi(void) { } static inline void fixup_device_tree_pasemi(void) { }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment