From mboxrd@z Thu Jan 1 00:00:00 1970 From: TsiChung Liew Date: Thu, 10 May 2007 20:59:47 -0500 Subject: [U-Boot-Users] Patch: MPC8220 - update PCI for Alaska Message-ID: <1178848787.17110.8.camel@Goku> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de - Added PCI feature Regards, TsiChung Liew Signed-off by: TsiChung Liew 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 #include #include +#if defined(CONFIG_PCI) +#include +#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);