Matt DeVillier has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47192 )
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
mb/purism/librem_mini: Adjust GPIO reset values
Adjust reset values of some pads, using the original vendor firmware as a reference.
Change-Id: I2d6a72d2e3597234c8fde86e028b033b3c8d36ae Signed-off-by: Matt DeVillier matt.devillier@puri.sm --- M src/mainboard/purism/librem_cnl/variants/librem_mini/gpio.c 1 file changed, 17 insertions(+), 17 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/47192/1
diff --git a/src/mainboard/purism/librem_cnl/variants/librem_mini/gpio.c b/src/mainboard/purism/librem_cnl/variants/librem_mini/gpio.c index 9311ca0..ca91a13 100644 --- a/src/mainboard/purism/librem_cnl/variants/librem_mini/gpio.c +++ b/src/mainboard/purism/librem_cnl/variants/librem_mini/gpio.c @@ -299,7 +299,7 @@
/* GPP_D15 - GPIO */ /* DW0: 0x44000201, DW1: 0x00000000 */ - PAD_CFG_GPO(GPP_D15, 1, DEEP), + PAD_CFG_GPO(GPP_D15, 1, PLTRST),
/* GPP_D16 - GPIO */ /* DW0: 0x04000200, DW1: 0x00000000 */ @@ -533,51 +533,51 @@
/* GPD0 - BATLOW# */ /* DW0: 0x04000702, DW1: 0x00000000 */ - PAD_CFG_NF(GPD0, NONE, RSMRST, NF1), + PAD_CFG_NF(GPD0, NONE, DEEP, NF1),
/* GPD1 - ACPRESENT */ /* DW0: 0x04000702, DW1: 0x00003c00 */ - PAD_CFG_NF(GPD1, NATIVE, RSMRST, NF1), + PAD_CFG_NF(GPD1, NATIVE, DEEP, NF1),
/* GPD2 - LAN_WAKE# */ /* DW0: 0x04000702, DW1: 0x00003c00 */ - PAD_CFG_NF(GPD2, NATIVE, RSMRST, NF1), + PAD_CFG_NF(GPD2, NATIVE, DEEP, NF1),
/* GPD3 - PRWBTN# */ /* DW0: 0x04000702, DW1: 0x00003000 */ - PAD_CFG_NF(GPD3, UP_20K, RSMRST, NF1), + PAD_CFG_NF(GPD3, UP_20K, DEEP, NF1),
/* GPD4 - SLP_S3# */ /* DW0: 0x04000600, DW1: 0x00000000 */ - PAD_CFG_NF(GPD4, NONE, RSMRST, NF1), + PAD_CFG_NF(GPD4, NONE, DEEP, NF1),
/* GPD5 - SLP_S4# */ /* DW0: 0x04000600, DW1: 0x00000000 */ - PAD_CFG_NF(GPD5, NONE, RSMRST, NF1), + PAD_CFG_NF(GPD5, NONE, DEEP, NF1),
/* GPD6 - SLP_A# */ /* DW0: 0x04000600, DW1: 0x00000000 */ - PAD_CFG_NF(GPD6, NONE, RSMRST, NF1), + PAD_CFG_NF(GPD6, NONE, DEEP, NF1),
/* GPD7 - GPIO */ /* DW0: 0x04000200, DW1: 0x00000000 */ - PAD_CFG_GPO(GPD7, 0, RSMRST), + PAD_CFG_GPO(GPD7, 0, DEEP),
/* GPD8 - SUSCLK */ /* DW0: 0x04000700, DW1: 0x00000000 */ - PAD_CFG_NF(GPD8, NONE, RSMRST, NF1), + PAD_CFG_NF(GPD8, NONE, DEEP, NF1),
/* GPD9 - SLP_WLAN# */ /* DW0: 0x04000700, DW1: 0x00000000 */ - PAD_CFG_NF(GPD9, NONE, RSMRST, NF1), + PAD_CFG_NF(GPD9, NONE, DEEP, NF1),
/* GPD10 - SLP_S5# */ /* DW0: 0x04000600, DW1: 0x00000000 */ - PAD_CFG_NF(GPD10, NONE, RSMRST, NF1), + PAD_CFG_NF(GPD10, NONE, DEEP, NF1),
/* GPD11 - LANPHYPC */ /* DW0: 0x04000600, DW1: 0x00000000 */ - PAD_CFG_NF(GPD11, NONE, RSMRST, NF1), + PAD_CFG_NF(GPD11, NONE, DEEP, NF1),
/* ------- GPIO Group GPP_C ------- */
@@ -627,7 +627,7 @@
/* GPP_C11 - GPIO */ /* DW0: 0x84000201, DW1: 0x00000000 */ - PAD_CFG_GPO(GPP_C11, 1, PLTRST), + PAD_CFG_GPO(GPP_C11, 1, DEEP),
/* GPP_C12 - UART1_RXD */ /* DW0: 0x84000603, DW1: 0x00000000 */ @@ -635,15 +635,15 @@
/* GPP_C13 - UART1_TXD */ /* DW0: 0x44000700, DW1: 0x00000000 */ - PAD_CFG_NF(GPP_C13, NONE, DEEP, NF1), + PAD_CFG_NF(GPP_C13, NONE, PLTRST, NF1),
/* GPP_C14 - UART1_RTS# */ /* DW0: 0x44000700, DW1: 0x00000000 */ - PAD_CFG_NF(GPP_C14, NONE, DEEP, NF1), + PAD_CFG_NF(GPP_C14, NONE, PLTRST, NF1),
/* GPP_C15 - UART1_CTS# */ /* DW0: 0x44000702, DW1: 0x00000000 */ - PAD_CFG_NF(GPP_C15, NONE, DEEP, NF1), + PAD_CFG_NF(GPP_C15, NONE, PLTRST, NF1),
/* GPP_C16 - I2C0_SDA */ /* DW0: 0x84000402, DW1: 0x00000000 */
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47192 )
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
Patch Set 1: Code-Review-1
When the hex values are the values read from the registers, the reset values are already correct.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47192 )
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
Patch Set 1:
Patch Set 1: Code-Review-1
When the hex values are the values read from the registers, the reset values are already correct.
These have been adjusted as per schematics, since vendor firmware values don't make much sense. But I agree that the raw values are now useless.
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47192 )
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
Patch Set 1:
Patch Set 1:
Patch Set 1: Code-Review-1
When the hex values are the values read from the registers, the reset values are already correct.
These have been adjusted as per schematics, since vendor firmware values don't make much sense. But I agree that the raw values are now useless.
Where talking about reset values here. There's not much in schematics, that helps you choose them (except that you know what a specific gpio is used for). Reset values depend on which gpios must function in lower power states like S3. That could be EC stuff for example, that must not be reset to prevent braking wake.
The point confusing me here is that the new values are exactly the hex values with reverse-mapping from rst_map* applied, which makes me guess there happened some mistake somewhere. So I wonder how exactly the new values have been chosen.
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47192 )
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
Patch Set 1: -Code-Review
Oh, well, btw. I'm not saying the new values are wrong - indeed they *seem* right to me. So actually I just want to be sure, that the hex values were wrong here
Matt DeVillier has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47192 )
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
Patch Set 1:
Patch Set 1: -Code-Review
Oh, well, btw. I'm not saying the new values are wrong - indeed they *seem* right to me. So actually I just want to be sure, that the hex values were wrong here
would it help if I updated the hex values with a fresh dump from inteltool (reformatted by intelp2m)?
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47192 )
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
Patch Set 1: Code-Review+2
As discussed on IRC the hex dumps are very wrong partly -> just drop them
Hello build bot (Jenkins), Paul Menzel, Angel Pons, Michael Niewöhner,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/47192
to look at the new patch set (#2).
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
mb/purism/librem_mini: Adjust GPIO reset values
Adjust reset values of some pads, using the original vendor firmware as a reference.
Change-Id: I2d6a72d2e3597234c8fde86e028b033b3c8d36ae Signed-off-by: Matt DeVillier matt.devillier@puri.sm --- M src/mainboard/purism/librem_cnl/variants/librem_mini/gpio.c 1 file changed, 17 insertions(+), 17 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/47192/2
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47192 )
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
Patch Set 2: Code-Review+2
Matt DeVillier has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/47192 )
Change subject: mb/purism/librem_mini: Adjust GPIO reset values ......................................................................
Abandoned
dropped in favor of CB:47206