blob: ca3222ba0affe409f1f06177cec1df045bc5f2d1 [file] [log] [blame]
Christopher Ferris8666d042023-09-06 14:55:31 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __TPS6594_PFSM_H
20#define __TPS6594_PFSM_H
21#include <linux/const.h>
22#include <linux/ioctl.h>
23#include <linux/types.h>
24struct pmic_state_opt {
25 __u8 gpio_retention;
26 __u8 ddr_retention;
27 __u8 mcu_only_startup_dest;
28};
29#define PMIC_BASE 'P'
30#define PMIC_GOTO_STANDBY _IO(PMIC_BASE, 0)
31#define PMIC_GOTO_LP_STANDBY _IO(PMIC_BASE, 1)
32#define PMIC_UPDATE_PGM _IO(PMIC_BASE, 2)
33#define PMIC_SET_ACTIVE_STATE _IO(PMIC_BASE, 3)
34#define PMIC_SET_MCU_ONLY_STATE _IOW(PMIC_BASE, 4, struct pmic_state_opt)
35#define PMIC_SET_RETENTION_STATE _IOW(PMIC_BASE, 5, struct pmic_state_opt)
36#endif