summit,smb347-charger.h 627 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: (GPL-2.0-or-later or MIT) */
  2. /*
  3. * Author: David Heidelberg <[email protected]>
  4. */
  5. #ifndef _DT_BINDINGS_SMB347_CHARGER_H
  6. #define _DT_BINDINGS_SMB347_CHARGER_H
  7. /* Charging compensation method */
  8. #define SMB3XX_SOFT_TEMP_COMPENSATE_NONE 0
  9. #define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT 1
  10. #define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE 2
  11. /* Charging enable control */
  12. #define SMB3XX_CHG_ENABLE_SW 0
  13. #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW 1
  14. #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH 2
  15. /* Polarity of INOK signal */
  16. #define SMB3XX_SYSOK_INOK_ACTIVE_LOW 0
  17. #define SMB3XX_SYSOK_INOK_ACTIVE_HIGH 1
  18. #endif