0001
0002
0003
0004
0005
0006
0007
0008 #ifndef MFD_STW481X_H
0009 #define MFD_STW481X_H
0010
0011 #include <linux/i2c.h>
0012 #include <linux/regulator/machine.h>
0013 #include <linux/regmap.h>
0014 #include <linux/bitops.h>
0015
0016
0017 #define STW_CONF1 0x11U
0018 #define STW_CONF1_PDN_VMMC 0x01U
0019 #define STW_CONF1_VMMC_MASK 0x0eU
0020 #define STW_CONF1_VMMC_1_8V 0x02U
0021 #define STW_CONF1_VMMC_2_85V 0x04U
0022 #define STW_CONF1_VMMC_3V 0x06U
0023 #define STW_CONF1_VMMC_1_85V 0x08U
0024 #define STW_CONF1_VMMC_2_6V 0x0aU
0025 #define STW_CONF1_VMMC_2_7V 0x0cU
0026 #define STW_CONF1_VMMC_3_3V 0x0eU
0027 #define STW_CONF1_MMC_LS_STATUS 0x10U
0028 #define STW_PCTL_REG_LO 0x1eU
0029 #define STW_PCTL_REG_HI 0x1fU
0030 #define STW_CONF1_V_MONITORING 0x20U
0031 #define STW_CONF1_IT_WARN 0x40U
0032 #define STW_CONF1_PDN_VAUX 0x80U
0033 #define STW_CONF2 0x20U
0034 #define STW_CONF2_MASK_TWARN 0x01U
0035 #define STW_CONF2_VMMC_EXT 0x02U
0036 #define STW_CONF2_MASK_IT_WAKE_UP 0x04U
0037 #define STW_CONF2_GPO1 0x08U
0038 #define STW_CONF2_GPO2 0x10U
0039 #define STW_VCORE_SLEEP 0x21U
0040
0041
0042
0043
0044
0045
0046 struct stw481x {
0047 struct i2c_client *client;
0048 struct regmap *map;
0049 };
0050
0051 #endif