From: Darren Stevens <darren@stevens-zone.net>
To: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>
Cc: Christian Zigotzky <chzigotzky@xenosoft.de>
Subject: [PATCH NEXT 4/4] powerpc/pasemi: Connect Nemo boot code.
Date: Sun, 31 Dec 2017 22:16:41 +0000 (GMT) [thread overview]
Message-ID: <4b3d22a081a.208ad70e@auth.smtp.1and1.co.uk> (raw)
[-- 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;
reply other threads:[~2017-12-31 22:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4b3d22a081a.208ad70e@auth.smtp.1and1.co.uk \
--to=darren@stevens-zone.net \
--cc=chzigotzky@xenosoft.de \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).