sharpsl.h 658 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2004-2005 Richard Purdie
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. */
  9. #include <mach/sharpsl_pm.h>
  10. /*
  11. * SharpSL Battery/PM Driver
  12. */
  13. #define READ_GPIO_BIT(x) (GPLR(x) & GPIO_bit(x))
  14. /* MAX1111 Channel Definitions */
  15. #define MAX1111_BATT_VOLT 4u
  16. #define MAX1111_BATT_TEMP 2u
  17. #define MAX1111_ACIN_VOLT 6u
  18. extern struct battery_thresh sharpsl_battery_levels_acin[];
  19. extern struct battery_thresh sharpsl_battery_levels_noac[];
  20. int sharpsl_pm_pxa_read_max1111(int channel);