]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
misc: k3_avs: Add j721e support
authorKeerthy <j-keerthy@ti.com>
Thu, 24 Oct 2019 09:30:49 +0000 (15:00 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 7 Nov 2019 23:39:16 +0000 (18:39 -0500)
j721e SoCs have different OPP tables. Add support for the same.

Note: DM Still has lot of voltages TBD hence the correct
values need to be programmed once they are published.

Signed-off-by: Keerthy <j-keerthy@ti.com>
drivers/misc/k3_avs.c
include/k3-avs.h

index dd7fc3d5853380e4cba8844b4e1decc50314d20b..c19c3c0646b793018a4c943abd4ddcaef8eb89c2 100644 (file)
@@ -347,6 +347,27 @@ static struct vd_data am654_vd_data[] = {
        { .id = -1 },
 };
 
+static struct vd_data j721e_vd_data[] = {
+       {
+               .id = J721E_VDD_MPU,
+               .opp = AM6_OPP_NOM,
+               .dev_id = 202, /* J721E_DEV_A72SS0_CORE0 */
+               .clk_id = 2, /* ARM clock */
+               .opps = {
+                       [AM6_OPP_NOM] = {
+                               .volt = 880000, /* TBD in DM */
+                               .freq = 2000000000,
+                       },
+               },
+       },
+       { .id = -1 },
+};
+
+static struct vd_config j721e_vd_config = {
+       .efuse_xlate = am6_efuse_xlate,
+       .vds = j721e_vd_data,
+};
+
 static struct vd_config am654_vd_config = {
        .efuse_xlate = am6_efuse_xlate,
        .vds = am654_vd_data,
@@ -354,6 +375,7 @@ static struct vd_config am654_vd_config = {
 
 static const struct udevice_id k3_avs_ids[] = {
        { .compatible = "ti,am654-avs", .data = (ulong)&am654_vd_config },
+       { .compatible = "ti,j721e-avs", .data = (ulong)&j721e_vd_config },
        {}
 };
 
index 98674816179f2f25be3b4bea2e96da406418df7d..e3c3cafbb9d921ddb189e47f7b13218af2ab2430 100644 (file)
@@ -16,6 +16,8 @@
 #define AM6_VDD_MPU0           3
 #define AM6_VDD_MPU1           4
 
+#define J721E_VDD_MPU          2
+
 #define NUM_OPPS               4
 
 #define AM6_OPP_NOM            1