hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/include/dt-bindings/suspend/rockchip-rk3528.h
....@@ -51,4 +51,17 @@
5151 #define RKPM_PWM1_M0_REGULATOR_EN BIT(1)
5252 #define RKPM_PWM2_M0_REGULATOR_EN BIT(2)
5353
54
+/* sleep pin */
55
+#define RKPM_SLEEP_PIN0_EN BIT(0) /* GPIO4_C2 */
56
+#define RKPM_SLEEP_PIN1_EN BIT(1) /* GPIO4_B6 */
57
+#define RKPM_SLEEP_PIN2_EN BIT(2) /* GPIO0_A0 */
58
+#define RKPM_SLEEP_PIN3_EN BIT(3) /* GPIO0_A1 */
59
+#define RKPM_SLEEP_PIN4_EN BIT(4) /* GPIO0_A2 */
60
+#define RKPM_SLEEP_PIN5_EN BIT(5) /* GPIO0_A3 */
61
+#define RKPM_SLEEP_PIN6_EN BIT(6) /* GPIO0_A4 */
62
+#define RKPM_SLEEP_PIN7_EN BIT(7) /* GPIO0_A5 */
63
+
64
+#define RKPM_SLEEP_PIN0_ACT_LOW BIT(0) /* GPIO4_C2 */
65
+#define RKPM_SLEEP_PIN1_ACT_LOW BIT(1) /* GPIO4_B6 */
66
+#define RKPM_SLEEP_PIN2_7_ACT_LOW 0xfc /* GPIO0_A0~5 */
5467 #endif