hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/include/linux/mfd/ti_am335x_tscadc.h
....@@ -4,7 +4,7 @@
44 /*
55 * TI Touch Screen / ADC MFD driver
66 *
7
- * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
7
+ * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
88 *
99 * This program is free software; you can redistribute it and/or
1010 * modify it under the terms of the GNU General Public License as
....@@ -78,6 +78,8 @@
7878 #define STEPCONFIG_YNN BIT(8)
7979 #define STEPCONFIG_XNP BIT(9)
8080 #define STEPCONFIG_YPN BIT(10)
81
+#define STEPCONFIG_RFP(val) ((val) << 12)
82
+#define STEPCONFIG_RFP_VREFP (0x3 << 12)
8183 #define STEPCONFIG_INM_MASK (0xF << 15)
8284 #define STEPCONFIG_INM(val) ((val) << 15)
8385 #define STEPCONFIG_INM_ADCREFM STEPCONFIG_INM(8)
....@@ -86,6 +88,8 @@
8688 #define STEPCONFIG_INP_AN4 STEPCONFIG_INP(4)
8789 #define STEPCONFIG_INP_ADCREFM STEPCONFIG_INP(8)
8890 #define STEPCONFIG_FIFO1 BIT(26)
91
+#define STEPCONFIG_RFM(val) ((val) << 23)
92
+#define STEPCONFIG_RFM_VREFN (0x3 << 23)
8993
9094 /* Delay register */
9195 #define STEPDELAY_OPEN_MASK (0x3FFFF << 0)