]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: domain: ti: Fix the order for platform data entries
authorJayesh Choudhary <j-choudhary@ti.com>
Wed, 12 Jun 2024 09:11:14 +0000 (14:41 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 19 Jun 2024 18:07:43 +0000 (12:07 -0600)
Add the power domain platform data entries in alphabetical order.

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

index b059dd37376d13a97d8239e5fa59068ca764a453..362fae86a2e752cf5b6521c1133bc8239fc59860 100644 (file)
@@ -71,6 +71,24 @@ static void lpsc_write(u32 val, struct ti_lpsc *lpsc, u32 reg)
 }
 
 static const struct soc_attr ti_k3_soc_pd_data[] = {
+#if IS_ENABLED(CONFIG_SOC_K3_AM625)
+       {
+               .family = "AM62X",
+               .data = &am62x_pd_platdata,
+       },
+#endif
+#if IS_ENABLED(CONFIG_SOC_K3_AM62A7)
+       {
+               .family = "AM62AX",
+               .data = &am62ax_pd_platdata,
+       },
+#endif
+#if IS_ENABLED(CONFIG_SOC_K3_AM62P5)
+       {
+               .family = "AM62PX",
+               .data = &am62px_pd_platdata,
+       },
+#endif
 #if IS_ENABLED(CONFIG_SOC_K3_J721E)
        {
                .family = "J721E",
@@ -87,29 +105,11 @@ static const struct soc_attr ti_k3_soc_pd_data[] = {
                .data = &j721s2_pd_platdata,
        },
 #endif
-#if IS_ENABLED(CONFIG_SOC_K3_AM625)
-       {
-               .family = "AM62X",
-               .data = &am62x_pd_platdata,
-       },
-#endif
-#if IS_ENABLED(CONFIG_SOC_K3_AM62A7)
-       {
-               .family = "AM62AX",
-               .data = &am62ax_pd_platdata,
-       },
-#endif
 #if IS_ENABLED(CONFIG_SOC_K3_J784S4)
        {
                .family = "J784S4",
                .data = &j784s4_pd_platdata,
        },
-#endif
-#if IS_ENABLED(CONFIG_SOC_K3_AM62P5)
-       {
-               .family = "AM62PX",
-               .data = &am62px_pd_platdata,
-       },
 #endif
        { /* sentinel */ }
 };