blob: 0cc1203c5befb269ad85d344a58cfbb83bc627ab [file] [log] [blame]
Richard Purdie50a5de42005-09-13 01:25:30 -07001/*
Richard Purdieb7557de2006-01-05 20:44:55 +00002 * 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 *
Richard Purdie50a5de42005-09-13 01:25:30 -07008 */
9
Dmitry Eremin-Solenikov78731d32009-03-28 18:18:51 +030010#include <mach/sharpsl_pm.h>
Richard Purdieb7557de2006-01-05 20:44:55 +000011
12/*
Richard Purdie078abcf2005-11-10 17:42:29 +000013 * SharpSL Battery/PM Driver
14 */
Richard Purdie078abcf2005-11-10 17:42:29 +000015#define READ_GPIO_BIT(x) (GPLR(x) & GPIO_bit(x))
16
Richard Purdieb7557de2006-01-05 20:44:55 +000017/* MAX1111 Channel Definitions */
18#define MAX1111_BATT_VOLT 4u
19#define MAX1111_BATT_TEMP 2u
20#define MAX1111_ACIN_VOLT 6u
Richard Purdie078abcf2005-11-10 17:42:29 +000021
Pavel Machek0ba01eb2009-10-22 22:16:34 +020022extern struct battery_thresh sharpsl_battery_levels_acin[];
23extern struct battery_thresh sharpsl_battery_levels_noac[];
Richard Purdieb7557de2006-01-05 20:44:55 +000024int sharpsl_pm_pxa_read_max1111(int channel);
25
26