From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] ppc4xx: Add pci_pre_init() for 405 boards
Date: Thu, 21 Jun 2007 15:38:26 +0200 [thread overview]
Message-ID: <200706211538.27078.matthias.fuchs@esd-electronics.com> (raw)
ppc4xx: Add pci_pre_init() for 405 boards
This patch adds support for calling a plattform dependant
pci_pre_init() function for 405 boards. This can be used to
move the current pci_405gp_fixup_irq() function into the
board code.
This feature can be enabled by defining CFG_PCI_PRE_INIT.
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
---
commit 9941716bc8ed06f12d60fbb4f02e4d07a2792097
tree e5ace7dda41c62e8b266e8a4dc3292a0d87b8b04
parent 3c908811a5e7098d476976eed54a4f8b0e80edc7
author Matthias Fuchs <matthias.fuchs@esd-electronics.com> Thu, 21 Jun 2007
14:42:46 +0200
committer Matthias Fuchs <matthias.fuchs@esd-electronics.com> Thu, 21 Jun 2007
14:42:46 +0200
cpu/ppc4xx/405gp_pci.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/cpu/ppc4xx/405gp_pci.c b/cpu/ppc4xx/405gp_pci.c
index 8bf03e1..b9538fa 100644
--- a/cpu/ppc4xx/405gp_pci.c
+++ b/cpu/ppc4xx/405gp_pci.c
@@ -191,6 +191,15 @@ void pci_405gp_init(struct pci_controlle
if (hose->pci_fb)
pciauto_region_init(hose->pci_fb);
+#if defined(CFG_PCI_PRE_INIT)
+ /* Let board change/modify hose & do initial checks */
+ if (pci_pre_init (hose) == 0) {
+ printf("PCI: Board-specific initialization failed.\n");
+ printf("PCI: Configuration aborted.\n");
+ return;
+ }
+#endif
+
pci_register_hose(hose);
/*--------------------------------------------------------------------------+
--
-----------------------------------------------------------------------
Dipl.-Ing. Matthias Fuchs esd electronic system design gmbh
http://www.esd-electronics.com Vahrenwalder Str. 207
phone: +49-511-37298-0, fax: -68 30165 Hannover, Germany
-----------------------------------------------------------------------
next reply other threads:[~2007-06-21 13:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 13:38 Matthias Fuchs [this message]
2007-06-21 21:14 ` [U-Boot-Users] [PATCH] ppc4xx: Add pci_pre_init() for 405 boards Wolfgang Denk
2007-06-22 6:04 ` Stefan Roese
2007-06-22 12:00 ` Matthias Fuchs
2007-06-22 12:11 ` Stefan Roese
2007-06-22 15:35 ` Matthias Fuchs
2007-06-22 15:44 ` Stefan Roese
2007-06-24 15:23 ` Matthias Fuchs
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=200706211538.27078.matthias.fuchs@esd-electronics.com \
--to=matthias.fuchs@esd-electronics.com \
--cc=u-boot@lists.denx.de \
/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