smb137b.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* Copyright (c) 2010-2011, 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 __SMB137B_H__
  14. #define __SMB137B_H__
  15. /**
  16. * struct smb137b_platform_data
  17. * structure to pass board specific information to the smb137b charger driver
  18. * @chgcurrent: max current the smb137bchip can draw
  19. * @valid_n_gpio: gpio to debounce insertion/removal
  20. * @chg_detection_config: machine specific func to configure
  21. * insertion/removal gpio line
  22. * @batt_mah_rating: the battery current rating
  23. */
  24. struct smb137b_platform_data {
  25. int valid_n_gpio;
  26. int (*chg_detection_config) (void);
  27. int batt_mah_rating;
  28. };
  29. void smb137b_otg_power(int on);
  30. #endif