[PATCH] soc: zynqmp: Add the IDcode for TEG variant
Michal Simek
michal.simek at amd.com
Thu Apr 4 10:53:17 CEST 2024
On 4/2/24 16:23, Venkatesh Yadav Abbarapu wrote:
> ID code is added for zu3teg variant.
>
> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu at amd.com>
> ---
> drivers/soc/soc_xilinx_zynqmp.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> 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;
Applied.
M
More information about the U-Boot
mailing list