palmas.h 742 B

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