]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
soc: zynqmp: Add the IDcode for TEG variant
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Tue, 2 Apr 2024 14:23:14 +0000 (19:53 +0530)
committerMichal Simek <michal.simek@amd.com>
Thu, 4 Apr 2024 08:53:10 +0000 (10:53 +0200)
ID code is added for zu3teg variant.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20240402142314.7353-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/soc/soc_xilinx_zynqmp.c

index 786825d920c5763982678d844a3973997773b4cc..d8b4f172a39d27ed5fd01be4acd51ffbff7dd679 100644 (file)
@@ -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;