diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-16 15:17:53 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-16 15:17:53 +0200 |
commit | 98128f389cc318dbd1d597cf8d2d09902cddcb4b (patch) | |
tree | 7e33c28d14fad1ac4dca6fe560d50c79926d5ebe | |
parent | 87b8bd5aed0d2a71cf77c7178d67a370a0f68612 (diff) | |
download | u-boot-imx-98128f389cc318dbd1d597cf8d2d09902cddcb4b.zip u-boot-imx-98128f389cc318dbd1d597cf8d2d09902cddcb4b.tar.gz u-boot-imx-98128f389cc318dbd1d597cf8d2d09902cddcb4b.tar.bz2 |
Enable PCI on hmi1001 board
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | board/hmi1001/hmi1001.c | 10 | ||||
-rw-r--r-- | include/configs/hmi1001.h | 18 |
3 files changed, 30 insertions, 0 deletions
@@ -2,6 +2,8 @@ Changes for U-Boot 1.1.4: ====================================================================== +* Enable PCI on hmi1001 board + * Fix return values of the jffs2 commands ls/fsload/fsinfo, so we can use them to, e.g., check the existence of a file with "if ls foo; then this; else that; fi" in the hush shell diff --git a/board/hmi1001/hmi1001.c b/board/hmi1001/hmi1001.c index 8980209..fca11d0 100644 --- a/board/hmi1001/hmi1001.c +++ b/board/hmi1001/hmi1001.c @@ -170,3 +170,13 @@ int board_early_init_r (void) *(vu_long *)MPC5XXX_CS0_STOP = STOP_REG(CFG_FLASH_BASE, CFG_FLASH_SIZE); return 0; } +#ifdef CONFIG_PCI +static struct pci_controller hose; + +extern void pci_mpc5xxx_init(struct pci_controller *); + +void pci_init_board(void) +{ + pci_mpc5xxx_init(&hose); +} +#endif diff --git a/include/configs/hmi1001.h b/include/configs/hmi1001.h index 7f9fea5..9da15ed 100644 --- a/include/configs/hmi1001.h +++ b/include/configs/hmi1001.h @@ -65,6 +65,7 @@ CFG_CMD_I2C | \ CFG_CMD_IDE | \ CFG_CMD_NFS | \ + CFG_CMD_PCI | \ CFG_CMD_SNTP) /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ @@ -307,4 +308,21 @@ #define CONFIG_ATAPI 1 +/* + * PCI Mapping: + * 0x40000000 - 0x4fffffff - PCI Memory + * 0x50000000 - 0x50ffffff - PCI IO Space + */ +#define CONFIG_PCI 1 +#define CONFIG_PCI_PNP 1 +#define CONFIG_PCI_SCAN_SHOW 1 + +#define CONFIG_PCI_MEM_BUS 0x40000000 +#define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS +#define CONFIG_PCI_MEM_SIZE 0x10000000 + +#define CONFIG_PCI_IO_BUS 0x50000000 +#define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS +#define CONFIG_PCI_IO_SIZE 0x01000000 + #endif /* __CONFIG_H */ |