the following patch was just integrated into master: commit 1cdccab188602150e7deec78bea8339f733ae68d Author: Sven Schnelle svens@stackframe.org Date: Thu Oct 27 13:05:40 2011 +0200
i82801gx: Fix port status in AHCI mode
The code used PCI register 0x92 to enable sata ports, which is wrong. The ICH7 documentation states:
"This register is only used in systems that do not support AHCI. In AHCI enabled systems, bits[3:0] must always be set (ICH7R only) / bits[2,0] must always be set (Mobile only), and the status of the port is controlled through AHCI memory space."
Writing 0x0f to ICH7-M doesn't seem to hurt, so lets write 0x0f for both variants. This patch makes sata_ahci work on my Thinkpad T60 and X60s.
Change-Id: If3b3daec2e5fbaa446de00272ebde01cd8d52475 Signed-off-by: Sven Schnelle svens@stackframe.org
Build-Tested: build bot (Jenkins) at Thu Oct 27 13:19:40 2011, giving +1 Reviewed-By: Stefan Reinauer stefan.reinauer@coreboot.org at Thu Oct 27 18:27:07 2011, giving +2 See http://review.coreboot.org/340 for details.
-gerrit