Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/82583?usp=email )
Change subject: mb/amd/birman/update_devicetree_phoenix_opensil: update DDI1 config
......................................................................
mb/amd/birman/update_devicetree_phoenix_opensil: update DDI1 config
Use the now common get_ddi1_type function to update the connector type
of the DDI1 port to match the display output extension card plugged into
the reference board.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: I7c51eab0d32e0a1708da415f690689a8ec38dcd3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82583
Reviewed-by: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c
1 file changed, 9 insertions(+), 0 deletions(-)
Approvals:
Matt DeVillier: Looks good to me, approved
build bot (Jenkins): Verified
diff --git a/src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c b/src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c
index 8f7803f..f0060b8 100644
--- a/src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c
+++ b/src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c
@@ -1,8 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h>
+#include <soc/amd/phoenix/chip.h>
#include <soc/soc_util.h>
#include <vendorcode/amd/opensil/chip/mpio/chip.h>
+#include "display_card_type.h"
#include "update_devicetree.h"
static void mainboard_update_mpio(void)
@@ -39,7 +41,14 @@
}
}
+static void mainboard_update_ddi(void)
+{
+ struct soc_amd_phoenix_config *cfg = config_of_soc();
+ cfg->ddi[1].connector_type = get_ddi1_type();
+}
+
void mainboard_update_devicetree_opensil(void)
{
mainboard_update_mpio();
+ mainboard_update_ddi();
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/82583?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I7c51eab0d32e0a1708da415f690689a8ec38dcd3
Gerrit-Change-Number: 82583
Gerrit-PatchSet: 2
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/82580?usp=email )
Change subject: soc/amd/phoenix/chip.h: add DDI configuration for openSIL
......................................................................
soc/amd/phoenix/chip.h: add DDI configuration for openSIL
In the FSP case, the DDI descriptors aren't part of the devicetree and
are instead retrieved in romstage by calling the mainboard's
mainboard_get_dxio_ddi_descriptors function which allows updating the
descriptors during romstage where the devicetree is static. In the
openSIL case, the DDI configuration is first needed in ramstage, so we
can put this info into the devicetree and update it if needed in
ramstage.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: I3de12ff6af42e38751a3016efa313613677fa87a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82580
Reviewed-by: Varshit Pandya <pandyavarshit(a)gmail.com>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
---
M src/soc/amd/phoenix/chip.h
A src/soc/amd/phoenix/chip_opensil.h
2 files changed, 36 insertions(+), 0 deletions(-)
Approvals:
build bot (Jenkins): Verified
Varshit Pandya: Looks good to me, approved
Matt DeVillier: Looks good to me, approved
diff --git a/src/soc/amd/phoenix/chip.h b/src/soc/amd/phoenix/chip.h
index e3cadc2..0fccb53 100644
--- a/src/soc/amd/phoenix/chip.h
+++ b/src/soc/amd/phoenix/chip.h
@@ -15,6 +15,8 @@
#include <types.h>
#if CONFIG(PLATFORM_USES_FSP2_0)
#include <vendorcode/amd/fsp/phoenix/FspUsb.h>
+#else
+#include "chip_opensil.h"
#endif
struct soc_amd_phoenix_config {
@@ -108,6 +110,8 @@
#if CONFIG(PLATFORM_USES_FSP2_0)
uint8_t usb_phy_custom;
struct usb_phy_config usb_phy;
+#else
+ struct ddi_descriptor ddi[DDI_DESCRIPTOR_COUNT];
#endif
};
diff --git a/src/soc/amd/phoenix/chip_opensil.h b/src/soc/amd/phoenix/chip_opensil.h
new file mode 100644
index 0000000..fcaa85c
--- /dev/null
+++ b/src/soc/amd/phoenix/chip_opensil.h
@@ -0,0 +1,32 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <types.h>
+
+#define DDI_DESCRIPTOR_COUNT 5
+
+/* DDI display connector type */
+enum ddi_connector_type {
+ DDI_DP = 0, // DP
+ DDI_EDP, // eDP
+ DDI_SINGLE_LINK_DVI, // Single Link DVI-D
+ DDI_DUAL_LINK_DVI, // Dual Link DVI-D
+ DDI_HDMI, // HDMI
+ DDI_DP_TO_VGA, // DP-to-VGA
+ DDI_DP_TO_LVDS, // DP-to-LVDS
+ DDI_NUTMEG_DP_TO_VGA, // Hudson-2 NutMeg DP-to-VGA
+ DDI_SINGLE_LINK_DVI_I, // Single Link DVI-I
+ DDI_DP_W_TYPEC, // DP with USB type C
+ DDI_DP_WO_TYPEC, // DP without USB type C
+ DDI_EDP_TO_LVDS, // eDP-to-LVDS translator chip without AMD SW init
+ DDI_EDP_TO_LVDS_SW, // eDP-to-LVDS translator which requires AMD SW init
+ DDI_AUTO_DETECT, // VBIOS auto detect connector type
+ DDI_UNUSED_TYPE, // UnusedType
+ DDI_MAX_CONNECTOR_TYPE // Not valid value, used to verify input
+};
+
+/* DDI Descriptor: used for configuring display outputs */
+struct ddi_descriptor {
+ uint8_t connector_type; // see ddi_connector_type
+ uint8_t aux_index;
+ uint8_t hdp_index;
+};
--
To view, visit https://review.coreboot.org/c/coreboot/+/82580?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I3de12ff6af42e38751a3016efa313613677fa87a
Gerrit-Change-Number: 82580
Gerrit-PatchSet: 2
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/82579?usp=email )
Change subject: mb/amd/birman/devicetree_phoenix_opensil: remove unexpected '<'
......................................................................
mb/amd/birman/devicetree_phoenix_opensil: remove unexpected '<'
Remove the unexpected '<' char at the end of the comment about the PSPP
policy config.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: Id821351ce3a7a2b7844d8e7478fa3de3227a7da9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82579
Reviewed-by: Elyes Haouas <ehaouas(a)noos.fr>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Reviewed-by: Varshit Pandya <pandyavarshit(a)gmail.com>
---
M src/mainboard/amd/birman/devicetree_phoenix_opensil.cb
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
build bot (Jenkins): Verified
Matt DeVillier: Looks good to me, approved
Varshit Pandya: Looks good to me, approved
Elyes Haouas: Looks good to me, approved
diff --git a/src/mainboard/amd/birman/devicetree_phoenix_opensil.cb b/src/mainboard/amd/birman/devicetree_phoenix_opensil.cb
index d1b5e11..bca4559 100644
--- a/src/mainboard/amd/birman/devicetree_phoenix_opensil.cb
+++ b/src/mainboard/amd/birman/devicetree_phoenix_opensil.cb
@@ -39,7 +39,7 @@
register "s0ix_enable" = "true"
- register "pspp_policy" = "DXIO_PSPP_DISABLED" # TODO: reenable when PSPP works<
+ register "pspp_policy" = "DXIO_PSPP_DISABLED" # TODO: reenable when PSPP works
device domain 0 on
device ref iommu on end
--
To view, visit https://review.coreboot.org/c/coreboot/+/82579?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Id821351ce3a7a2b7844d8e7478fa3de3227a7da9
Gerrit-Change-Number: 82579
Gerrit-PatchSet: 2
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/82578?usp=email )
Change subject: soc/amd/phoenix/chipset_*.cb: remove TODO
......................................................................
soc/amd/phoenix/chipset_*.cb: remove TODO
Remove the TODO to update the chipset devicetree for Phoenix, since this
has already been done.
When re-checking the chipset devicetree, I found conflicting information
about the existence of the PCI bridge to an external PCIe port on bus 0
device 1 function 5, but after looking into this, I'm reasonably certain
that it either doesn't exist or at least wouldn't be usable, so I won't
add that one to the chipset devicetree.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: I8f0e1540ed45408e86186253d3982a7ba0065ac6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82578
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Reviewed-by: Varshit Pandya <pandyavarshit(a)gmail.com>
---
M src/soc/amd/phoenix/chipset_fsp.cb
M src/soc/amd/phoenix/chipset_opensil.cb
2 files changed, 0 insertions(+), 4 deletions(-)
Approvals:
Matt DeVillier: Looks good to me, approved
Varshit Pandya: Looks good to me, approved
build bot (Jenkins): Verified
diff --git a/src/soc/amd/phoenix/chipset_fsp.cb b/src/soc/amd/phoenix/chipset_fsp.cb
index 08ee8c2..2d1e170 100644
--- a/src/soc/amd/phoenix/chipset_fsp.cb
+++ b/src/soc/amd/phoenix/chipset_fsp.cb
@@ -1,5 +1,3 @@
-# TODO: Update for Phoenix
-
chip soc/amd/phoenix
device cpu_cluster 0 on
ops amd_cpu_bus_ops
diff --git a/src/soc/amd/phoenix/chipset_opensil.cb b/src/soc/amd/phoenix/chipset_opensil.cb
index c11975c..0c5cfbc 100644
--- a/src/soc/amd/phoenix/chipset_opensil.cb
+++ b/src/soc/amd/phoenix/chipset_opensil.cb
@@ -1,5 +1,3 @@
-# TODO: Update for Phoenix
-
chip soc/amd/phoenix
device cpu_cluster 0 on
ops amd_cpu_bus_ops
--
To view, visit https://review.coreboot.org/c/coreboot/+/82578?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I8f0e1540ed45408e86186253d3982a7ba0065ac6
Gerrit-Change-Number: 82578
Gerrit-PatchSet: 2
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Attention is currently required from: Felix Held, Maxim.
Fabian Meyer has posted comments on this change by Fabian Meyer. ( https://review.coreboot.org/c/coreboot/+/82204?usp=email )
Change subject: util/intelp2m: Add support for Emmitsburg macro generation
......................................................................
Patch Set 4:
(1 comment)
File util/intelp2m/platforms/ebg/template.go:
https://review.coreboot.org/c/coreboot/+/82204/comment/009bbbb7_8ce793a0?us… :
PS3, Line 17: GPP_S
> not sure if there's a difference between GPP and GPPC, but in util/inteltool/gpio_names/emmitsburg. […]
You are correct, it's also GPPC_S in src/soc/intel/xeon_sp/ebg/include/soc/gpio_soc_defs.h. However, this makes no difference to intelp2m's output (I just tested it). I pushed the change nonetheless to be more correct.
--
To view, visit https://review.coreboot.org/c/coreboot/+/82204?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ib7ded47fb1c0b87ebb3cecaf3e41319ac552b797
Gerrit-Change-Number: 82204
Gerrit-PatchSet: 4
Gerrit-Owner: Fabian Meyer <fabian(a)meyfa.net>
Gerrit-Reviewer: Maxim <max.senia.poliak(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Attention: Maxim <max.senia.poliak(a)gmail.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Wed, 22 May 2024 14:55:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Held <felix-coreboot(a)felixheld.de>
Attention is currently required from: Fabian Meyer, Maxim.
Hello Maxim, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/82204?usp=email
to look at the new patch set (#4).
The following approvals got outdated and were removed:
Code-Review+2 by Maxim, Verified+1 by build bot (Jenkins)
Change subject: util/intelp2m: Add support for Emmitsburg macro generation
......................................................................
util/intelp2m: Add support for Emmitsburg macro generation
Test: Generated GPIO for ASRock Rack SPC741D8-2L2T/BCM.
Change-Id: Ib7ded47fb1c0b87ebb3cecaf3e41319ac552b797
Signed-off-by: Fabian Meyer <fabian.meyer(a)student.kit.edu>
Co-authored-by: Yussuf Khalil <yussuf.khalil(a)kit.edu>
---
M util/intelp2m/config/config.go
M util/intelp2m/main.go
M util/intelp2m/parser/parser.go
A util/intelp2m/platforms/ebg/macro.go
A util/intelp2m/platforms/ebg/template.go
5 files changed, 157 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/82204/4
--
To view, visit https://review.coreboot.org/c/coreboot/+/82204?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ib7ded47fb1c0b87ebb3cecaf3e41319ac552b797
Gerrit-Change-Number: 82204
Gerrit-PatchSet: 4
Gerrit-Owner: Fabian Meyer <fabian(a)meyfa.net>
Gerrit-Reviewer: Maxim <max.senia.poliak(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Attention: Maxim <max.senia.poliak(a)gmail.com>
Gerrit-Attention: Fabian Meyer <fabian(a)meyfa.net>