summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2004-01-21 23:55:59 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2004-01-21 23:55:59 +0000
commit87561c7acd3fc44f51aefe323b9c7a6e3575f086 (patch)
tree9f01e19604a0823447dc28c7fe5b39f58cbf03cc /src
parent456764dd30dd93a64afed195e4dad1436905b8ac (diff)
downloadcoreboot-87561c7acd3fc44f51aefe323b9c7a6e3575f086.tar.xz
pass ide base address to driver
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1342 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/southbridge/winbond/w83c553/w83c553f_ide.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/southbridge/winbond/w83c553/w83c553f_ide.c b/src/southbridge/winbond/w83c553/w83c553f_ide.c
index 9a4173f4d5..eca4c07e56 100644
--- a/src/southbridge/winbond/w83c553/w83c553f_ide.c
+++ b/src/southbridge/winbond/w83c553/w83c553f_ide.c
@@ -39,7 +39,7 @@
#define CONFIG_IDE_MAXDEVICE (CONFIG_IDE_MAXBUS*2)
#endif
-uint32_t ide_bus_offset[CONFIG_IDE_MAXBUS];
+uint32_t ide_base[CONFIG_IDE_MAXBUS];
static void
w83c553_ide_init(struct device *dev)
@@ -50,7 +50,6 @@ w83c553_ide_init(struct device *dev)
printk_info("Configure W83C553F IDE (Function 1)\n");
-#if 0
/*
* Enable native mode on IDE ports and set base address.
*/
@@ -80,12 +79,12 @@ w83c553_ide_init(struct device *dev)
reg32 = 0x00ff0000 | W83C553F_IDECSR_P1EN | W83C553F_IDECSR_P0EN;
pci_write_config32(dev, W83C553F_IDECSR, reg32);
- ide_bus_offset[0] = pci_read_config32(dev, PCI_BASE_ADDRESS_0);
- printk_debug("ide bus offset = 0x%x\n", ide_bus_offset[0]);
- ide_bus_offset[0] &= ~1;
+ ide_base[0] = pci_read_config32(dev, PCI_BASE_ADDRESS_0);
+ printk_debug("ide bus offset = 0x%x\n", ide_base[0]);
+ ide_base[0] &= ~1;
#if CONFIG_IDE_MAXBUS > 1
- ide_bus_offset[1] = pci_read_config32(dev, PCI_BASE_ADDRESS_2);
- ide_bus_offset[1] &= ~1;
+ ide_base[1] = pci_read_config32(dev, PCI_BASE_ADDRESS_2);
+ ide_base[1] &= ~1;
#endif
/*
@@ -94,7 +93,6 @@ w83c553_ide_init(struct device *dev)
reg16 = pci_read_config16(dev, PCI_COMMAND);
reg16 |= PCI_COMMAND_MASTER | PCI_COMMAND_IO;
pci_write_config16(dev, PCI_COMMAND, reg16);
-#endif
printk_info("IDE configuration complete\n");
}