autoport: Fix SPD map guessing function.

It was reversed between Lenovo and non-Lenovo cases.

Change-Id: I52c3b928abda2851e97ec0b40b7da5c5191217f5
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/10374
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <edward.ocallaghan@koparo.com>
This commit is contained in:
Vladimir Serbinenko 2015-05-29 22:09:06 +02:00
parent 5868ab4588
commit db0acf84fe
1 changed files with 2 additions and 2 deletions

View File

@ -678,9 +678,9 @@ func GuessSPDMap(ctx Context) []uint8 {
dmi := ctx.InfoSource.GetDMI() dmi := ctx.InfoSource.GetDMI()
if dmi.Vendor == "LENOVO" { if dmi.Vendor == "LENOVO" {
return []uint8{0x50, 0x51, 0x52, 0x53}
}
return []uint8{0x50, 0x52, 0x51, 0x53} return []uint8{0x50, 0x52, 0x51, 0x53}
}
return []uint8{0x50, 0x51, 0x52, 0x53}
} }
func main() { func main() {