Fix definitions for QCA953x revisions
authorPiotr Dymacz <pepe2k@gmail.com>
Sat, 14 Nov 2015 01:15:33 +0000 (02:15 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Sat, 14 Nov 2015 16:49:11 +0000 (17:49 +0100)
u-boot/cpu/mips/ar7240/qca_common.c
u-boot/include/soc/qca_soc_common.h

index e8786173c62d4e25a104b2a748e5f536ea76351e..6e106205a504e108462dcb75489f473e312f1ea4 100644 (file)
@@ -67,11 +67,10 @@ void qca_soc_name_rev(char *buf)
                break;
 #endif
 #if (SOC_TYPE == QCA_QCA9531_SOC || SOC_TYPE == QCA_QCA9533_SOC)
-       case QCA_RST_REVISION_ID_MAJOR_QCA9531_VAL:
-       case QCA_RST_REVISION_ID_MAJOR_QCA9533_VAL:
+       case QCA_RST_REVISION_ID_MAJOR_QCA953X_VAL:
                sprintf(buf, "QCA953x ver. 1 rev. %d", rev);
                break;
-       case QCA_RST_REVISION_ID_MAJOR_QCA9533_V2_VAL:
+       case QCA_RST_REVISION_ID_MAJOR_QCA953X_V2_VAL:
                sprintf(buf, "QCA953x ver. 2 rev. %d", rev);
                break;
 #endif
index 51c50aafbd923d254bb1aaaddf061e36f951a40f..e6a20af82f6a3fda3bfd30c70fb608b352a5f060 100644 (file)
 #define QCA_RST_REVISION_ID_MAJOR_AR9331_VAL           0x1110
 #define QCA_RST_REVISION_ID_MAJOR_AR9341_VAL           0x0120
 #define QCA_RST_REVISION_ID_MAJOR_AR9344_VAL           0x2120
-#define QCA_RST_REVISION_ID_MAJOR_QCA9531_VAL          0x0140
-#define QCA_RST_REVISION_ID_MAJOR_QCA9533_VAL          0x0140
-#define QCA_RST_REVISION_ID_MAJOR_QCA9533_V2_VAL       0x0160
+#define QCA_RST_REVISION_ID_MAJOR_QCA953X_VAL          0x0140
+#define QCA_RST_REVISION_ID_MAJOR_QCA953X_V2_VAL       0x0160
 #define QCA_RST_REVISION_ID_MAJOR_QCA9558_VAL          0x1130