X201: Move early nehalem S3 magic to right place.

This MCH magic needs to be done before GPIO.

Now S3 (Suspend-to-RAM) works on X201.

Change-Id: I319e57af52ff01083bfbffbcd883ac5f453320a1
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/4632
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Vladimir Serbinenko
2014-01-09 11:13:18 +01:00
parent f7a42de725
commit bca985557e
3 changed files with 9 additions and 16 deletions

View File

@@ -3815,13 +3815,6 @@ void raminit(const int s3resume)
unsigned channel, slot, lane, rank;
int i;
struct raminfo info;
if (s3resume) {
read_mchbar32(0x1e8);
write_mchbar32(0x1e8, 0x6);
read_mchbar32(0x1e8);
write_mchbar32(0x1e8, 0x4);
}
u8 x2ca8;
gav(x2ca8 = read_mchbar8(0x2ca8));