* [PATCH NEXT 4/4] powerpc/pasemi: Connect Nemo boot code.
@ 2017-12-31 22:16 Darren Stevens
0 siblings, 0 replies; only message in thread
From: Darren Stevens @ 2017-12-31 22:16 UTC (permalink / raw)
To: linuxppc-dev; +Cc: 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: 254 bytes --]
The previous 3 commits added support code for the Nemo motherbard
as used in the Amigaone X1000, now wire them up so the board can
be detected and initalised at boot time.
Signed-off-by: Darren Stevens <Darren@stevens-zone.net>
---
[-- Attachment #3: link.patch --]
[-- Type: text/plain, Size: 1030 bytes --]
diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c
index 8d3664f..bb3a4d5 100644
--- a/arch/powerpc/platforms/pasemi/setup.c
+++ b/arch/powerpc/platforms/pasemi/setup.c
@@ -136,7 +136,14 @@ static void __init pas_setup_arch(void)
smp_ops = &pas_smp_ops;
#endif
/* Lookup PCI hosts */
+#ifdef CONFIG_PPC_PASEMI_NEMO
+ if (nemo_board)
+ nemo_pci_init();
+ else
+ pas_pci_init();
+#else
pas_pci_init();
+#endif
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
@@ -548,6 +555,19 @@ static int __init pas_probe(void)
!of_machine_is_compatible("pasemi,pwrficient"))
return 0;
+#ifdef CONFIG_PPC_PASEMI_NEMO
+ /*
+ * Check for the Nemo motherboard here, if we are running on one
+ * change the machine definition to fit
+ */
+ if (of_machine_is_compatible("pasemi,nemo")) {
+ pm_power_off = pas_shutdown;
+ ppc_md.name = "A-EON Amigaone X1000";
+ ppc_md.init_IRQ = nemo_init_IRQ;
+ nemo_board = true;
+ }
+#endif
+
iommu_init_early_pasemi();
return 1;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-31 22:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-31 22:16 [PATCH NEXT 4/4] powerpc/pasemi: Connect Nemo boot code 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).