Aamir Bohra has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
mb/google/dedede: Enable display support
Changelist: 1. Enable Internal Gfx device. 2. Configure DDI0 for EDP. 3. Configure HPD and DDC suppport for DDI1/DDI2. 4. Configure HPD GPIOs.
BUG=none TEST=Verify display on EDP panel
Change-Id: Ia53428af549ba01ab539f9474a6e5e79b72dff5c Signed-off-by: Aamir Bohra aamir.bohra@intel.com --- M src/mainboard/google/dedede/variants/baseboard/devicetree.cb M src/mainboard/google/dedede/variants/baseboard/gpio.c 2 files changed, 16 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/39132/1
diff --git a/src/mainboard/google/dedede/variants/baseboard/devicetree.cb b/src/mainboard/google/dedede/variants/baseboard/devicetree.cb index 346a309..25ea419 100644 --- a/src/mainboard/google/dedede/variants/baseboard/devicetree.cb +++ b/src/mainboard/google/dedede/variants/baseboard/devicetree.cb @@ -72,6 +72,17 @@ # Enable EMMC HS400 mode register "ScsEmmcHs400Enabled" = "1"
+ # Display related UPDs + # Select eDP for port A + register "DdiPortAConfig" = "1" + + # Enable HPD for DDI ports B/C + register "DdiPortBHpd" = "1" + register "DdiPortCHpd" = "1" + # Enable DDC for DDI ports B/C + register "DdiPortBDdc" = "1" + register "DdiPortCDdc" = "1" + # Intel Common SoC Config #+-------------------+---------------------------+ #| Field | Value | @@ -110,7 +121,7 @@
device domain 0 on device pci 00.0 on end # Host Bridge - device pci 02.0 off end # Integrated Graphics Device + device pci 02.0 on end # Integrated Graphics Device device pci 04.0 off end # SA Thermal device device pci 05.0 off end # IPU device pci 09.0 off end # Intel Trace Hub diff --git a/src/mainboard/google/dedede/variants/baseboard/gpio.c b/src/mainboard/google/dedede/variants/baseboard/gpio.c index fa975e7..b8ceae2 100644 --- a/src/mainboard/google/dedede/variants/baseboard/gpio.c +++ b/src/mainboard/google/dedede/variants/baseboard/gpio.c @@ -27,6 +27,8 @@ PAD_NC(GPP_A13, NONE), /* A14 : USB_OC3_N */ PAD_NC(GPP_A14, NONE), + /* A16 : EC_AP_USB_C0_HPD */ + PAD_CFG_NF(GPP_A16, NONE, DEEP, NF1), /* A18 : USB_OC0_N */ PAD_NC(GPP_A18, NONE),
@@ -40,6 +42,8 @@ PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), /* B18 : H1_SLAVE_SPI_MOSI_R */ PAD_CFG_NF(GPP_B18, NONE, DEEP, NF1), + /* B23 : EC_AP_USB_C1_HDMI_HPD */ + PAD_CFG_NF(GPP_B23, NONE, DEEP, NF1),
/* C16 : AP_I2C_TRACKPAD_SDA_3V3 */ PAD_CFG_NF(GPP_C16, NONE, DEEP, NF1),
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 1: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/39132/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/39132/1//COMMIT_MSG@15 PS1, Line 15: BUG=none might not needed
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 1:
(2 comments)
https://review.coreboot.org/c/coreboot/+/39132/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/39132/1//COMMIT_MSG@9 PS1, Line 9: Changelist: The word is not needed.
https://review.coreboot.org/c/coreboot/+/39132/1//COMMIT_MSG@16 PS1, Line 16: TEST=Verify display on EDP panel In payload or OS?
Hello Karthik Ramasubramanian, Subrata Banik, Maulik V Vaghela, Tim Wawrzynczak, Rizwan Qureshi, V Sowmya, build bot (Jenkins), Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/39132
to look at the new patch set (#2).
Change subject: mb/google/dedede: Enable display support ......................................................................
mb/google/dedede: Enable display support
1. Enable Internal Gfx device. 2. Configure DDI0 for EDP. 3. Configure HPD and DDC suppport for DDI1/DDI2. 4. Configure HPD GPIOs.
TEST=Verify display on EDP panel in OS
Change-Id: Ia53428af549ba01ab539f9474a6e5e79b72dff5c Signed-off-by: Aamir Bohra aamir.bohra@intel.com --- M src/mainboard/google/dedede/variants/baseboard/devicetree.cb M src/mainboard/google/dedede/variants/baseboard/gpio.c 2 files changed, 16 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/39132/2
Aamir Bohra has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 2:
(3 comments)
https://review.coreboot.org/c/coreboot/+/39132/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/39132/1//COMMIT_MSG@9 PS1, Line 9: Changelist:
The word is not needed.
Done
https://review.coreboot.org/c/coreboot/+/39132/1//COMMIT_MSG@15 PS1, Line 15: BUG=none
might not needed
Done
https://review.coreboot.org/c/coreboot/+/39132/1//COMMIT_MSG@16 PS1, Line 16: TEST=Verify display on EDP panel
In payload or OS?
Done
V Sowmya has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 2: Code-Review+2
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/39132/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/baseboard/gpio.c:
https://review.coreboot.org/c/coreboot/+/39132/2/src/mainboard/google/dedede... PS2, Line 30: EC_AP_USB_C0_HPD Is this one not also named EC_AP_USB_C0_HDMI_HPD as well?
Aamir Bohra has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/39132/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/baseboard/gpio.c:
https://review.coreboot.org/c/coreboot/+/39132/2/src/mainboard/google/dedede... PS2, Line 30: EC_AP_USB_C0_HPD
Is this one not also named EC_AP_USB_C0_HDMI_HPD as well?
I see it EC_AP_USB_C0_HPD from the schematics.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/39132/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/baseboard/gpio.c:
https://review.coreboot.org/c/coreboot/+/39132/2/src/mainboard/google/dedede... PS2, Line 30: EC_AP_USB_C0_HPD
I see it EC_AP_USB_C0_HPD from the schematics.
Yes, that is correct. The reason is HDMI port is going to be part of Sub-board and not mainboard.
C0 is part of mainboard. C1 is part of sub-board.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/39132/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/baseboard/gpio.c:
https://review.coreboot.org/c/coreboot/+/39132/2/src/mainboard/google/dedede... PS2, Line 30: EC_AP_USB_C0_HPD
Yes, that is correct. The reason is HDMI port is going to be part of Sub-board and not mainboard. […]
I just mean the "HDMI" in the name, but following the schematics is best.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 3: Code-Review+2
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 3: Code-Review+2
Subrata Banik has submitted this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
mb/google/dedede: Enable display support
1. Enable Internal Gfx device. 2. Configure DDI0 for EDP. 3. Configure HPD and DDC suppport for DDI1/DDI2. 4. Configure HPD GPIOs.
TEST=Verify display on EDP panel in OS
Change-Id: Ia53428af549ba01ab539f9474a6e5e79b72dff5c Signed-off-by: Aamir Bohra aamir.bohra@intel.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/39132 Reviewed-by: Karthik Ramasubramanian kramasub@google.com Reviewed-by: Subrata Banik subrata.banik@intel.com Reviewed-by: V Sowmya v.sowmya@intel.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/dedede/variants/baseboard/devicetree.cb M src/mainboard/google/dedede/variants/baseboard/gpio.c 2 files changed, 16 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Subrata Banik: Looks good to me, approved V Sowmya: Looks good to me, approved Karthik Ramasubramanian: Looks good to me, approved
diff --git a/src/mainboard/google/dedede/variants/baseboard/devicetree.cb b/src/mainboard/google/dedede/variants/baseboard/devicetree.cb index 37bb8f2..2529e53 100644 --- a/src/mainboard/google/dedede/variants/baseboard/devicetree.cb +++ b/src/mainboard/google/dedede/variants/baseboard/devicetree.cb @@ -73,6 +73,17 @@ # Enable EMMC HS400 mode register "ScsEmmcHs400Enabled" = "1"
+ # Display related UPDs + # Select eDP for port A + register "DdiPortAConfig" = "1" + + # Enable HPD for DDI ports B/C + register "DdiPortBHpd" = "1" + register "DdiPortCHpd" = "1" + # Enable DDC for DDI ports B/C + register "DdiPortBDdc" = "1" + register "DdiPortCDdc" = "1" + # Intel Common SoC Config #+-------------------+---------------------------+ #| Field | Value | @@ -111,7 +122,7 @@
device domain 0 on device pci 00.0 on end # Host Bridge - device pci 02.0 off end # Integrated Graphics Device + device pci 02.0 on end # Integrated Graphics Device device pci 04.0 off end # SA Thermal device device pci 05.0 off end # IPU device pci 09.0 off end # Intel Trace Hub diff --git a/src/mainboard/google/dedede/variants/baseboard/gpio.c b/src/mainboard/google/dedede/variants/baseboard/gpio.c index fa975e7..b8ceae2 100644 --- a/src/mainboard/google/dedede/variants/baseboard/gpio.c +++ b/src/mainboard/google/dedede/variants/baseboard/gpio.c @@ -27,6 +27,8 @@ PAD_NC(GPP_A13, NONE), /* A14 : USB_OC3_N */ PAD_NC(GPP_A14, NONE), + /* A16 : EC_AP_USB_C0_HPD */ + PAD_CFG_NF(GPP_A16, NONE, DEEP, NF1), /* A18 : USB_OC0_N */ PAD_NC(GPP_A18, NONE),
@@ -40,6 +42,8 @@ PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), /* B18 : H1_SLAVE_SPI_MOSI_R */ PAD_CFG_NF(GPP_B18, NONE, DEEP, NF1), + /* B23 : EC_AP_USB_C1_HDMI_HPD */ + PAD_CFG_NF(GPP_B23, NONE, DEEP, NF1),
/* C16 : AP_I2C_TRACKPAD_SDA_3V3 */ PAD_CFG_NF(GPP_C16, NONE, DEEP, NF1),
9elements QA has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39132 )
Change subject: mb/google/dedede: Enable display support ......................................................................
Patch Set 4:
Automatic boot test returned (PASS/FAIL/TOTAL): 3/0/3 Emulation targets: EMULATION_QEMU_X86_Q35 using payload TianoCore : SUCCESS : https://lava.9esec.io/r/920 EMULATION_QEMU_X86_Q35 using payload SeaBIOS : SUCCESS : https://lava.9esec.io/r/919 EMULATION_QEMU_X86_I440FX using payload SeaBIOS : SUCCESS : https://lava.9esec.io/r/918
Please note: This test is under development and might not be accurate at all!