1*4882a593Smuzhiyun #define PALMAS 0x0 2*4882a593Smuzhiyun #define TPS659038 0x1 3*4882a593Smuzhiyun #define TPS65917 0x2 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun /* I2C device address for pmic palmas */ 6*4882a593Smuzhiyun #define PALMAS_I2C_ADDR (0x12 >> 1) 7*4882a593Smuzhiyun #define PALMAS_LDO_NUM 11 8*4882a593Smuzhiyun #define PALMAS_SMPS_NUM 8 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun /* Drivers name */ 11*4882a593Smuzhiyun #define PALMAS_LDO_DRIVER "palmas_ldo" 12*4882a593Smuzhiyun #define PALMAS_SMPS_DRIVER "palmas_smps" 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun #define PALMAS_SMPS_VOLT_MASK 0x7F 15*4882a593Smuzhiyun #define PALMAS_SMPS_RANGE_MASK 0x80 16*4882a593Smuzhiyun #define PALMAS_SMPS_VOLT_MAX_HEX 0x7F 17*4882a593Smuzhiyun #define PALMAS_SMPS_VOLT_MAX 3300000 18*4882a593Smuzhiyun #define PALMAS_SMPS_MODE_MASK 0x3 19*4882a593Smuzhiyun #define PALMAS_SMPS_STATUS_MASK 0x30 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun #define PALMAS_LDO_VOLT_MASK 0x3F 22*4882a593Smuzhiyun #define PALMAS_LDO_VOLT_MAX_HEX 0x3F 23*4882a593Smuzhiyun #define PALMAS_LDO_VOLT_MAX 3300000 24*4882a593Smuzhiyun #define PALMAS_LDO_MODE_MASK 0x1 25*4882a593Smuzhiyun #define PALMAS_LDO_STATUS_MASK 0x10 26*4882a593Smuzhiyun #define PALMAS_LDO_BYPASS_EN 0x40 27