hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/mfd/display-serdes/maxim/maxim-max96772.h
....@@ -11,4 +11,28 @@
1111 #ifndef __MFD_SERDES_MAXIM_MAX96772_H__
1212 #define __MFD_SERDES_MAXIM_MAX96772_H__
1313
14
+#define GPIO_A_REG(gpio) (0x02b0 + ((gpio) * 3))
15
+#define GPIO_B_REG(gpio) (0x02b1 + ((gpio) * 3))
16
+#define GPIO_C_REG(gpio) (0x02b2 + ((gpio) * 3))
17
+
18
+
19
+/* 02b0h */
20
+#define RES_CFG BIT(7)
21
+#define RSVD BIT(6)
22
+#define TX_COMP_EN BIT(5)
23
+#define GPIO_OUT BIT(4)
24
+#define GPIO_IN BIT(3)
25
+#define GPIO_RX_EN BIT(2)
26
+#define GPIO_TX_EN BIT(1)
27
+#define GPIO_OUT_DIS BIT(0)
28
+
29
+/* 02b1h */
30
+#define PULL_UPDN_SEL GENMASK(7, 6)
31
+#define OUT_TYPE BIT(5)
32
+#define GPIO_TX_ID GENMASK(4, 0)
33
+
34
+/* 02b2h */
35
+#define OVR_RES_CFG BIT(7)
36
+#define GPIO_RX_ID GENMASK(4, 0)
37
+
1438 #endif