From: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Patch: MPC8220 - update PCI for Alaska
Date: Thu, 10 May 2007 20:59:47 -0500 [thread overview]
Message-ID: <1178848787.17110.8.camel@Goku> (raw)
- Added PCI feature
Regards,
TsiChung Liew
Signed-off by: TsiChung Liew<Tsi-Chung.Liew@freescale.com>
diff -rupN u-boot-all.git/board/alaska/alaska.c u-boot-all-8220-
pci/board/alaska/alaska.c
--- u-boot-all.git/board/alaska/alaska.c 2007-04-03 19:18:56.000000000
-0500
+++ u-boot-all-8220-pci/board/alaska/alaska.c 2007-05-10
16:35:11.000000000 -0500
@@ -25,6 +25,9 @@
#include <mpc8220.h>
#include <asm/processor.h>
#include <asm/mmu.h>
+#if defined(CONFIG_PCI)
+#include <pci.h>
+#endif
void setupBat (ulong size)
{
@@ -151,3 +154,19 @@ int checkboard (void)
return 0;
}
+
+#if defined(CONFIG_PCI)
+/*
+ * Initialize PCI devices, report devices found.
+ */
+static struct pci_controller hose;
+
+#endif /* CONFIG_PCI */
+
+void pci_init_board (void)
+{
+#ifdef CONFIG_PCI
+ extern void pci_mpc8220_init (struct pci_controller *hose);
+ pci_mpc8220_init (&hose);
+#endif /* CONFIG_PCI */
+}
diff -rupN u-boot-all.git/cpu/mpc8220/pci.c u-boot-all-8220-
pci/cpu/mpc8220/pci.c
--- u-boot-all.git/cpu/mpc8220/pci.c 2007-04-03 19:18:56.000000000 -0500
+++ u-boot-all-8220-pci/cpu/mpc8220/pci.c 2007-05-10 16:32:34.000000000
-0500
@@ -116,8 +116,10 @@ pci_mpc8220_init(struct pci_controller *
out_be32 (&xcpci->init_win_cfg,
PCI_INIT_WIN_CFG_WIN0_CTRL_EN |
- PCI_INIT_WIN_CFG_WIN1_CTRL_EN | PCI_INIT_WIN_CFG_WIN1_CTRL_IO |
- PCI_INIT_WIN_CFG_WIN2_CTRL_EN | PCI_INIT_WIN_CFG_WIN2_CTRL_IO);
+ PCI_INIT_WIN_CFG_WIN1_CTRL_EN |
+ PCI_INIT_WIN_CFG_WIN1_CTRL_IO |
+ PCI_INIT_WIN_CFG_WIN2_CTRL_EN |
+ PCI_INIT_WIN_CFG_WIN2_CTRL_IO);
out_be32 (&xcpci->init_ctrl, 0x00000000);
reply other threads:[~2007-05-11 1:59 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=1178848787.17110.8.camel@Goku \
--to=tsi-chung.liew@freescale.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