Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 815c4163b6c8ebf8152f42b0a5fd015cfdcedc78 authored by Linus Torvalds on 05 July 2010, 03:22:50 UTC
Linux 2.6.35-rc4
Tip revision: 815c416
sharpsl.h
/*
 * Copyright (c) 2004-2005 Richard Purdie
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 */

#include <mach/sharpsl_pm.h>

/*
 * SharpSL Battery/PM Driver
 */
#define READ_GPIO_BIT(x)    (GPLR(x) & GPIO_bit(x))

/* MAX1111 Channel Definitions */
#define MAX1111_BATT_VOLT   4u
#define MAX1111_BATT_TEMP   2u
#define MAX1111_ACIN_VOLT   6u

extern struct battery_thresh sharpsl_battery_levels_acin[];
extern struct battery_thresh sharpsl_battery_levels_noac[];
int sharpsl_pm_pxa_read_max1111(int channel);


back to top