From: Venkatesh Yadav Abbarapu Date: Tue, 2 Apr 2024 14:23:14 +0000 (+0530) Subject: soc: zynqmp: Add the IDcode for TEG variant X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=fa2f0c97af96bdae82fcbc32c9b0fd6f0cb2b34f;p=u-boot.git soc: zynqmp: Add the IDcode for TEG variant ID code is added for zu3teg variant. Signed-off-by: Venkatesh Yadav Abbarapu Link: https://lore.kernel.org/r/20240402142314.7353-1-venkatesh.abbarapu@amd.com Signed-off-by: Michal Simek --- diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/drivers/soc/soc_xilinx_zynqmp.c index 786825d920..d8b4f172a3 100644 --- a/drivers/soc/soc_xilinx_zynqmp.c +++ b/drivers/soc/soc_xilinx_zynqmp.c @@ -44,6 +44,7 @@ enum { ZYNQMP_VARIANT_DR = BIT(3), ZYNQMP_VARIANT_DR_SE = BIT(4), ZYNQMP_VARIANT_EG_SE = BIT(5), + ZYNQMP_VARIANT_TEG = BIT(6), }; struct zynqmp_device { @@ -74,6 +75,11 @@ static const struct zynqmp_device zynqmp_devices[] = { .device = 3, .variants = ZYNQMP_VARIANT_EG | ZYNQMP_VARIANT_CG, }, + { + .id = 0x04718093, + .device = 3, + .variants = ZYNQMP_VARIANT_TEG, + }, { .id = 0x04721093, .device = 4, @@ -299,6 +305,8 @@ static int soc_xilinx_zynqmp_detect_machine(struct udevice *dev, u32 idcode, strlcat(priv->machine, "dr", sizeof(priv->machine)); } else if (device->variants & ZYNQMP_VARIANT_DR_SE) { strlcat(priv->machine, "dr_SE", sizeof(priv->machine)); + } else if (device->variants & ZYNQMP_VARIANT_TEG) { + strlcat(priv->machine, "teg", sizeof(priv->machine)); } return 0;