* [PATCH 1/1] pasemi: Add fixup_device_tree function to prom_init
@ 2016-07-17 18:46 Darren Stevens
0 siblings, 0 replies; only message in thread
From: Darren Stevens @ 2016-07-17 18:46 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Olof Johansson, Christian Zigotzky
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
AmigaOS...........: http://yam.ch/
Unix/MacOS/Windows: http://www.mozilla.com/thunderbird/
General information about MIME can be found at:
http://en.wikipedia.org/wiki/MIME
[-- Attachment #2: Type: text/plain, Size: 271 bytes --]
Add a pasmei platform specific entry in the fixup_device_tree() call
in prom_init.c.
This call will be used to fix the broken device tree passed by CFE
on AmigaOneX1000 machines.
Signed-off-by: Darren Stevens<darren@stevens-zone.net>
---
[-- Attachment #3: prom.patch --]
[-- Type: text/plain, Size: 720 bytes --]
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index 6ee4b72..287ce4b 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -2639,6 +2639,13 @@ static void __init fixup_device_tree_efika(void)
#else
#define fixup_device_tree_efika()
#endif
+#ifdef CONFIG_PPC_PASEMI
+static void __init fixup_device_tree_pasemi(void)
+{
+}
+#else
+#define fixup_device_tree_pasemi()
+#endif
static void __init fixup_device_tree(void)
{
@@ -2647,6 +2654,7 @@ static void __init fixup_device_tree(void)
fixup_device_tree_chrp();
fixup_device_tree_pmac();
fixup_device_tree_efika();
+ fixup_device_tree_pasemi();
}
static void __init prom_find_boot_cpu(void)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-17 19:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-17 18:46 [PATCH 1/1] pasemi: Add fixup_device_tree function to prom_init Darren Stevens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).