cs5530a ide
Christer Weinigel
christer at weinigel.se
Mon Sep 9 21:28:00 CEST 2002
[sorry all, I managed to use the wrong From: address again, so the
previous message will stick in the moderator filter again]
*wakes up in the middle of the night*
Ronald G Minnich <rminnich at lanl.gov> writes:
> Anybody out there know how to make the second IDE channel come up on this
> thing?
>
> On the pcm-5823 boards, the secondary IDE is never seen by Linux. I think
> there has to be a setting somewhere, I just don't know what!
Look at how it's done in scx200/southbridge.c, it's the same as for
the CS5530A. So change cx5530/southbridge.c to:
// now set PCI decode
pci_read_config_byte(dev, 0x5b, &b);
#ifdef CX5530_PRIMARY_IDE
printk_info(NAME "Enabling Primary IDE Controller\n");
b |= 1 << 3;
#endif
#ifdef CX5530_SECONDARY_IDE
printk_info(NAME "Enabling Secondary IDE Controller\n");
b |= 1 << 4;
#endif
printk_info(NAME "Enabling BIOS ROM Positive Decode\n");
b |= 1 << 5;
printk_debug("Set F0/0x5b to 0x%x\n", b);
pci_write_config_byte(dev, 0x5b, b);
/Christer *goes back to sleep*
--
"Just how much can I get away with and still go to heaven?"
Freelance consultant specializing in device driver programming for Linux
Christer Weinigel <christer at weinigel.se> http://www.weinigel.se
More information about the coreboot
mailing list