summaryrefslogtreecommitdiff
path: root/drivers/ahci.c
diff options
context:
space:
mode:
authorEd Swarthout <Ed.Swarthout@freescale.com>2007-08-02 14:09:49 -0500
committerWolfgang Denk <wd@denx.de>2007-08-06 00:22:24 +0200
commit63cec5814fab5d2b1c86982327433807a5ac0249 (patch)
tree1d43499cf7d035104b41f41b8d5e19229597ec19 /drivers/ahci.c
parent63e22764d2f8653f68888c667eb65b3996b52680 (diff)
downloadu-boot-imx-63cec5814fab5d2b1c86982327433807a5ac0249.zip
u-boot-imx-63cec5814fab5d2b1c86982327433807a5ac0249.tar.gz
u-boot-imx-63cec5814fab5d2b1c86982327433807a5ac0249.tar.bz2
Make MPC8641's PCI/PCI-E driver a common driver for many FSL parts.
All of the PCI/PCI-Express driver and initialization code that was in the MPC8641HPCN port has now been moved into the common drivers/fsl_pci_init.c. In a subsequent patch, this will be utilized by the 85xx ports as well. Common PCI-E IMMAP register blocks for FSL 85xx/86xx are added. Also enable the second PCI-Express controller on 8641 by getting its BATS and CFG_ setup right. Fixed a u16 vendor compiler warning in AHCI driver too. Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com> Signed-off-by: Zhang Wei <wei.zhang@freescale.com> Signed-off-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'drivers/ahci.c')
-rw-r--r--drivers/ahci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ahci.c b/drivers/ahci.c
index 8ceff00..ccd4d71 100644
--- a/drivers/ahci.c
+++ b/drivers/ahci.c
@@ -253,7 +253,8 @@ static void ahci_print_info(struct ahci_probe_ent *probe_ent)
static int ahci_init_one(pci_dev_t pdev)
{
- u32 iobase, vendor;
+ u32 iobase;
+ u16 vendor;
int rc;
memset((void *)ataid, 0, sizeof(hd_driveid_t *) * AHCI_MAX_PORTS);