smb349.h 1000 B

1234567891011121314151617181920212223242526272829303132
  1. /* Copyright (c) 2012 The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful;
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef __SMB349_H__
  14. #define __SMB349_H__
  15. #define SMB349_NAME "smb349"
  16. /**
  17. * struct smb349_platform_data
  18. * structure to pass board specific information to the smb137b charger driver
  19. * @chg_current_ma: maximum fast charge current in mA
  20. * @en_n_gpio: gpio to enable or disable charging
  21. * @chg_susp_gpio: put active low to allow chip to suspend and disable I2C
  22. */
  23. struct smb349_platform_data {
  24. int en_n_gpio;
  25. int chg_susp_gpio;
  26. int chg_current_ma;
  27. };
  28. #endif