[PATCH v2 01/13] soc: add info to identify the am62p SoC family

Igor Opaniuk igor.opaniuk at foundries.io
Thu Feb 1 15:41:27 CET 2024


On Thu, Feb 1, 2024 at 4:07 AM Bryan Brattlof <bb at ti.com> wrote:
>
> Include the part number for TI's am62px family of SoCs so we can
> properly identify it during boot
>
> Signed-off-by: Bryan Brattlof <bb at ti.com>
Reviewed-by: Igor Opaniuk <igor.opaniuk at foundries.io>

> ---
>  arch/arm/mach-k3/include/mach/hardware.h | 2 ++
>  drivers/soc/soc_ti_k3.c                  | 3 +++
>  2 files changed, 5 insertions(+)
>
> diff --git a/arch/arm/mach-k3/include/mach/hardware.h b/arch/arm/mach-k3/include/mach/hardware.h
> index a1a9dfbde66c8..040288150b12f 100644
> --- a/arch/arm/mach-k3/include/mach/hardware.h
> +++ b/arch/arm/mach-k3/include/mach/hardware.h
> @@ -46,6 +46,7 @@
>  #define JTAG_ID_PARTNO_J721S2  0xbb75
>  #define JTAG_ID_PARTNO_AM62X   0xbb7e
>  #define JTAG_ID_PARTNO_AM62AX   0xbb8d
> +#define JTAG_ID_PARTNO_AM62PX  0xbb9d
>
>  #define K3_SOC_ID(id, ID) \
>  static inline bool soc_is_##id(void) \
> @@ -61,6 +62,7 @@ K3_SOC_ID(am64x, AM64X)
>  K3_SOC_ID(j721s2, J721S2)
>  K3_SOC_ID(am62x, AM62X)
>  K3_SOC_ID(am62ax, AM62AX)
> +K3_SOC_ID(am62px, AM62PX)
>
>  #define K3_SEC_MGR_SYS_STATUS          0x44234100
>  #define SYS_STATUS_DEV_TYPE_SHIFT      0
> diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c
> index 355a5368dd45a..d7d0152b115fa 100644
> --- a/drivers/soc/soc_ti_k3.c
> +++ b/drivers/soc/soc_ti_k3.c
> @@ -45,6 +45,9 @@ static const char *get_family_string(u32 idreg)
>         case JTAG_ID_PARTNO_AM62AX:
>                 family = "AM62AX";
>                 break;
> +       case JTAG_ID_PARTNO_AM62PX:
> +               family = "AM62PX";
> +               break;
>         default:
>                 family = "Unknown Silicon";
>         };
> --
> 2.43.0
>


-- 
Best regards - Freundliche Grüsse - Meilleures salutations

Igor Opaniuk
Senior Software Engineer, Embedded & Security
E: igor.opaniuk at foundries.io
W: www.foundries.io


More information about the U-Boot mailing list