]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - k3conf/k3conf.git/blobdiff - include/socinfo.h
common: socinfo: Use JTAD_ID register for device identification
[k3conf/k3conf.git] / include / socinfo.h
index 719e8f55fae38c52ce2d642baa251ba3585294c5..da23111433754dbee34a3e8da60e79d74b51266e 100644 (file)
 #define SOC_REVISION_MAX_LENGTH                        5
 #define SOC_FULL_NAME_MAX_LENGTH               20
 
-typedef enum {
-       AM654 = 2,
-       J721E = 4,
-       K3_MAX
-} k3_soc;
+#define AM65X  0xbb5a
+#define J721E  0xbb64
 
 typedef enum {
-       REV_PG1_0,
-       REV_PG2_0,
+       REV_SR1_0,
+       REV_SR2_0,
        REV_PG_MAX
 } k3_soc_rev;
 
 struct k3conf_soc_info {
-       k3_soc soc;
+       uint16_t soc;
        k3_soc_rev rev;
        char soc_full_name[SOC_FULL_NAME_MAX_LENGTH];
        uint8_t host_id;
@@ -65,7 +62,7 @@ struct k3conf_soc_info {
 };
 
 extern struct k3conf_soc_info soc_info;
-int soc_init(void);
+int soc_init(uint32_t host_id);
 int soc_is_j721e(void);
 int soc_is_am654(void);