util/intelp2m/fsp: Update some deprecated macros

Avoid using deprecated macros, where possible.

"GpioResetPwrGood" represents multiple valid updated values, depending
on the GPIO community and will be more difficult to update.
While Kabylake supports both sets of macros, it will cause build errors
on Coffeelake. In the GPD group, replace with "GpioDswReset."
Replace with "GpioResumeReset" in any GPP group.

Change-Id: Iab0bb09adad997bef3a2133c443471d4c634f423
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54974
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com>
This commit is contained in:
Benjamin Doron 2021-06-09 20:19:03 +00:00 committed by Patrick Georgi
parent ef5eb967ec
commit dfb6a0b1a3
1 changed files with 4 additions and 4 deletions

View File

@ -121,10 +121,10 @@ func (FieldMacros) DecodeDW0() {
&field {
configmap : map[uint8]string {
0: "GpioResetPwrGood",
1: "GpioResetDeep",
2: "GpioResetNormal",
3: "GpioResetResume",
0: "GpioResetPwrGood", // TODO: Has multiple values (to GPP and GPD)
1: "GpioHostDeepReset",
2: "GpioPlatformReset",
3: "GpioResumeReset",
},
value : dw0.GetResetConfig(),
},