Enable AHCI mode and hide IDE controller to reduce boot time.
Note: enable AHCI in seabios and apply seabios patch: http://www.mail-archive.com/seabios@seabios.org/msg00437.html Signed-off-by: Scott Duplichan <scott@notabs.org> Acked-by: Marc Jones <marcj303@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6579 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
dc312cca53
commit
f191c72038
|
@ -314,6 +314,7 @@
|
||||||
|
|
||||||
#define PCI_DEVICE_ID_ATI_SB800_LPC 0x439D
|
#define PCI_DEVICE_ID_ATI_SB800_LPC 0x439D
|
||||||
#define PCI_DEVICE_ID_ATI_SB800_SATA 0x4390
|
#define PCI_DEVICE_ID_ATI_SB800_SATA 0x4390
|
||||||
|
#define PCI_DEVICE_ID_ATI_SB800_SATA_AHCI 0x4391
|
||||||
#define PCI_DEVICE_ID_ATI_SB800_IDE 0x439C
|
#define PCI_DEVICE_ID_ATI_SB800_IDE 0x439C
|
||||||
#define PCI_DEVICE_ID_ATI_SB800_HDA 0x4383
|
#define PCI_DEVICE_ID_ATI_SB800_HDA 0x4383
|
||||||
#define PCI_DEVICE_ID_ATI_SB800_PCI 0x4384
|
#define PCI_DEVICE_ID_ATI_SB800_PCI 0x4384
|
||||||
|
|
|
@ -83,7 +83,7 @@ void sb800_cimx_config(AMDSBCFG *sb_config)
|
||||||
sb_config->SATAMODE.SataMode.SataController = SATA_CONTROLLER;
|
sb_config->SATAMODE.SataMode.SataController = SATA_CONTROLLER;
|
||||||
sb_config->SATAMODE.SataMode.SataIdeCombMdPriSecOpt = 0; //0 -IDE as primary, 1 -IDE as secondary.
|
sb_config->SATAMODE.SataMode.SataIdeCombMdPriSecOpt = 0; //0 -IDE as primary, 1 -IDE as secondary.
|
||||||
//TODO: set to secondary not take effect.
|
//TODO: set to secondary not take effect.
|
||||||
sb_config->SATAMODE.SataMode.SataIdeCombinedMode = 0; //IDE controlor exposed and combined mode enabled
|
sb_config->SATAMODE.SataMode.SataIdeCombinedMode = 1; //IDE controllor is hidden
|
||||||
sb_config->SATAMODE.SataMode.SATARefClkSel = SATA_CLOCK_SOURCE;
|
sb_config->SATAMODE.SataMode.SATARefClkSel = SATA_CLOCK_SOURCE;
|
||||||
|
|
||||||
/* Azalia HDA */
|
/* Azalia HDA */
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
* NOTE: DO NOT ALLOW SATA & IDE use same mode
|
* NOTE: DO NOT ALLOW SATA & IDE use same mode
|
||||||
*/
|
*/
|
||||||
#ifndef SATA_MODE
|
#ifndef SATA_MODE
|
||||||
#define SATA_MODE NATIVE_IDE_MODE
|
#define SATA_MODE AHCI_MODE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -138,10 +138,9 @@ static struct device_operations sata_ops = {
|
||||||
static const struct pci_driver sata_driver __pci_driver = {
|
static const struct pci_driver sata_driver __pci_driver = {
|
||||||
.ops = &sata_ops,
|
.ops = &sata_ops,
|
||||||
.vendor = PCI_VENDOR_ID_ATI,
|
.vendor = PCI_VENDOR_ID_ATI,
|
||||||
.device = PCI_DEVICE_ID_ATI_SB800_SATA, //SATA IDE Mode 4390
|
.device = PCI_DEVICE_ID_ATI_SB800_SATA_AHCI,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#if CONFIG_USBDEBUG
|
#if CONFIG_USBDEBUG
|
||||||
static void usb_set_resources(struct device *dev)
|
static void usb_set_resources(struct device *dev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue