]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
soc: ti: k3-socinfo: Fix SOC JTAG entry order
authorJayesh Choudhary <j-choudhary@ti.com>
Wed, 12 Jun 2024 09:11:11 +0000 (14:41 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 19 Jun 2024 18:07:43 +0000 (12:07 -0600)
Add JTAG_ID_PARTNO_* in alphabetical order.

Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
drivers/soc/soc_ti_k3.c

index b585e47d46fe52019be674ecd36cccacb419cdd5..0838808515f843bdc82fbdd3f844d5376f935ca0 100644 (file)
@@ -23,33 +23,33 @@ static const char *get_family_string(u32 idreg)
        soc = (idreg & JTAG_ID_PARTNO_MASK) >> JTAG_ID_PARTNO_SHIFT;
 
        switch (soc) {
+       case JTAG_ID_PARTNO_AM62X:
+               family = "AM62X";
+               break;
+       case JTAG_ID_PARTNO_AM62AX:
+               family = "AM62AX";
+               break;
+       case JTAG_ID_PARTNO_AM62PX:
+               family = "AM62PX";
+               break;
+       case JTAG_ID_PARTNO_AM64X:
+               family = "AM64X";
+               break;
        case JTAG_ID_PARTNO_AM65X:
                family = "AM65X";
                break;
-       case JTAG_ID_PARTNO_J721E:
-               family = "J721E";
-               break;
        case JTAG_ID_PARTNO_J7200:
                family = "J7200";
                break;
-       case JTAG_ID_PARTNO_AM64X:
-               family = "AM64X";
+       case JTAG_ID_PARTNO_J721E:
+               family = "J721E";
                break;
        case JTAG_ID_PARTNO_J721S2:
                family = "J721S2";
                break;
-       case JTAG_ID_PARTNO_AM62X:
-               family = "AM62X";
-               break;
-       case JTAG_ID_PARTNO_AM62AX:
-               family = "AM62AX";
-               break;
        case JTAG_ID_PARTNO_J784S4:
                family = "J784S4";
                break;
-       case JTAG_ID_PARTNO_AM62PX:
-               family = "AM62PX";
-               break;
        default:
                family = "Unknown Silicon";
        };