Each vendor uses different bits for SR_TB of flash. To avoid ambiguity, rename SR_TB to indicate the bit used.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -128,7 +128,8 @@ · 127 unmodified lines | |||
| 128 | #define SR_BP0 BIT(2) /* Block protect 0 */ | 128 | #define SR_BP0 BIT(2) /* Block protect 0 */ |
| 129 | #define SR_BP1 BIT(3) /* Block protect 1 */ | 129 | #define SR_BP1 BIT(3) /* Block protect 1 */ |
| 130 | #define SR_BP2 BIT(4) /* Block protect 2 */ | 130 | #define SR_BP2 BIT(4) /* Block protect 2 */ |
| 131 | #define SR_TB BIT(5) /* Top/Bottom protect */ | 131 | #define SR_TB_BIT5 BIT(5) /* Top/Bottom protect */ |
| 132 | #define SR_TB_BIT6 BIT(6) /* Top/Bottom protect */ | ||
| 132 | #define SR_SRWD BIT(7) /* SR write protect */ | 133 | #define SR_SRWD BIT(7) /* SR write protect */ |
| 133 | /* Spansion/Cypress specific status bits */ | 134 | /* Spansion/Cypress specific status bits */ |
| 134 | #define SR_E_ERR BIT(5) | 135 | #define SR_E_ERR BIT(5) |