We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac79001 commit eaa4023Copy full SHA for eaa4023
drivers/spi/spi-intel.c
@@ -52,17 +52,17 @@
52
#define FRACC 0x50
53
54
#define FREG(n) (0x54 + ((n) * 4))
55
-#define FREG_BASE_MASK 0x3fff
+#define FREG_BASE_MASK GENMASK(14, 0)
56
#define FREG_LIMIT_SHIFT 16
57
-#define FREG_LIMIT_MASK (0x03fff << FREG_LIMIT_SHIFT)
+#define FREG_LIMIT_MASK GENMASK(30, 16)
58
59
/* Offset is from @ispi->pregs */
60
#define PR(n) ((n) * 4)
61
#define PR_WPE BIT(31)
62
#define PR_LIMIT_SHIFT 16
63
-#define PR_LIMIT_MASK (0x3fff << PR_LIMIT_SHIFT)
+#define PR_LIMIT_MASK GENMASK(30, 16)
64
#define PR_RPE BIT(15)
65
-#define PR_BASE_MASK 0x3fff
+#define PR_BASE_MASK GENMASK(14, 0)
66
67
/* Offsets are from @ispi->sregs */
68
#define SSFSTS_CTL 0x00
0 commit comments