On 7/21/26 10:30 AM, Bryan Brattlof wrote:
include the part number for TI's am62lx family of SoCs so we can

Commit messages are normal sentences, capitalize first letter, "." at end.

Otherwise, patch itself looks simple enough,

Acked-by: Andrew Davis <[email protected]>

properly identify it during boot

Signed-off-by: Bryan Brattlof <[email protected]>
---
  arch/arm/mach-k3/include/mach/hardware.h |  2 ++
  drivers/soc/soc_ti_k3.c                  | 11 +++++++++++
  2 files changed, 13 insertions(+)

diff --git a/arch/arm/mach-k3/include/mach/hardware.h 
b/arch/arm/mach-k3/include/mach/hardware.h
index 2c771a1195f5..6b86f6ed12e6 100644
--- a/arch/arm/mach-k3/include/mach/hardware.h
+++ b/arch/arm/mach-k3/include/mach/hardware.h
@@ -56,6 +56,7 @@
  #define JTAG_ID_PARTNO_SHIFT  12
  #define JTAG_ID_PARTNO_MASK   (0xffff << 12)
  #define JTAG_ID_PARTNO_AM62AX   0xbb8d
+#define JTAG_ID_PARTNO_AM62LX  0xbba7
  #define JTAG_ID_PARTNO_AM62PX 0xbb9d
  #define JTAG_ID_PARTNO_AM62X  0xbb7e
  #define JTAG_ID_PARTNO_AM64X  0xbb38
@@ -81,6 +82,7 @@ static inline bool soc_is_##id(void) \
  }
  K3_SOC_ID(am62x, AM62X)
  K3_SOC_ID(am62ax, AM62AX)
+K3_SOC_ID(am62lx, AM62LX)
  K3_SOC_ID(am62px, AM62PX)
  K3_SOC_ID(am64x, AM64X)
  K3_SOC_ID(am65x, AM65X)
diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c
index b34cbd08e073..6ffd88f22c09 100644
--- a/drivers/soc/soc_ti_k3.c
+++ b/drivers/soc/soc_ti_k3.c
@@ -36,6 +36,9 @@ static const char *get_family_string(u32 idreg)
        case JTAG_ID_PARTNO_AM62PX:
                family = "AM62PX";
                break;
+       case JTAG_ID_PARTNO_AM62LX:
+               family = "AM62LX";
+               break;
        case JTAG_ID_PARTNO_AM64X:
                family = "AM64X";
                break;
@@ -72,6 +75,10 @@ static const char *get_family_string(u32 idreg)
        return family;
  }
+static char *am62lx_rev_string_map[] = {
+       "1.0", "1.1",
+};
+
  static char *j721e_rev_string_map[] = {
        "1.0", "1.1", "2.0",
  };
@@ -89,6 +96,10 @@ static const char *get_rev_string(u32 idreg)
        soc = (idreg & JTAG_ID_PARTNO_MASK) >> JTAG_ID_PARTNO_SHIFT;
switch (soc) {
+       case JTAG_ID_PARTNO_AM62LX:
+               if (rev >= ARRAY_SIZE(am62lx_rev_string_map))
+                       goto bail;
+               return am62lx_rev_string_map[rev];
        case JTAG_ID_PARTNO_J721E:
                if (rev >= ARRAY_SIZE(j721e_rev_string_map))
                        goto bail;


Reply via email to