Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 7 | #ifndef __TPS6594_PFSM_H |
| 8 | #define __TPS6594_PFSM_H |
| 9 | #include <linux/const.h> |
| 10 | #include <linux/ioctl.h> |
| 11 | #include <linux/types.h> |
| 12 | struct pmic_state_opt { |
| 13 | __u8 gpio_retention; |
| 14 | __u8 ddr_retention; |
| 15 | __u8 mcu_only_startup_dest; |
| 16 | }; |
| 17 | #define PMIC_BASE 'P' |
| 18 | #define PMIC_GOTO_STANDBY _IO(PMIC_BASE, 0) |
| 19 | #define PMIC_GOTO_LP_STANDBY _IO(PMIC_BASE, 1) |
| 20 | #define PMIC_UPDATE_PGM _IO(PMIC_BASE, 2) |
| 21 | #define PMIC_SET_ACTIVE_STATE _IO(PMIC_BASE, 3) |
| 22 | #define PMIC_SET_MCU_ONLY_STATE _IOW(PMIC_BASE, 4, struct pmic_state_opt) |
| 23 | #define PMIC_SET_RETENTION_STATE _IOW(PMIC_BASE, 5, struct pmic_state_opt) |
| 24 | #endif |