[U-Boot-Users] Patch: MPC8220 - update PCI for Alaska

TsiChung Liew Tsi-Chung.Liew at freescale.com
Fri May 11 03:59:47 CEST 2007


- Added PCI feature

Regards,
TsiChung Liew

Signed-off by: TsiChung Liew<Tsi-Chung.Liew at 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);






More information about the U-Boot mailing list