Maccraft123 has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40330 )
Change subject: sb/intel/ibexpeak/sata.c: support hotplug ......................................................................
sb/intel/ibexpeak/sata.c: support hotplug
This patch adds hotplug support without need to manually rescan AHCI devices
Change-Id: Ia2cc1209c99bea35abdf831875ebb287260bdb1f Signed-off-by: Maciej Matuszczyk maccraft123mc@gmail.com --- M src/southbridge/intel/ibexpeak/sata.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/30/40330/1
diff --git a/src/southbridge/intel/ibexpeak/sata.c b/src/southbridge/intel/ibexpeak/sata.c index 3a7bdb6..f693b53 100644 --- a/src/southbridge/intel/ibexpeak/sata.c +++ b/src/southbridge/intel/ibexpeak/sata.c @@ -115,6 +115,10 @@ reg32 = read32(abar + 0x28); reg32 &= ~0x00000005; write32(abar + 0x28, reg32); + /* Enable hotplug on ports specified in devicetree */ + reg32 = read32(abar + 0x198); + reg32 |= (config->sata_hotplug_port_one << 18); // Hot Plug Capable Port (HPCP)—R/WO. + write32(abar + 0x198, reg32); } else { /* IDE */ printk(BIOS_DEBUG, "SATA: Controller in plain mode.\n");