i82801gx: Fix port status in AHCI mode
authorSven Schnelle <svens@stackframe.org>
Thu, 27 Oct 2011 11:05:40 +0000 (13:05 +0200)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 27 Oct 2011 16:27:07 +0000 (18:27 +0200)
commitb2f173e168b5a368eab138a22be5524159532c63
treeb4c683ae59071a459d5e36e682215423a04a18d3
parent5e4e2290b653b068b1ca55205efd3fbfcc1fda34
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>
Reviewed-on: http://review.coreboot.org/340
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/southbridge/intel/i82801gx/chip.h
src/southbridge/intel/i82801gx/sata.c