2 * Copyright (c) 2004-2005 Richard Purdie
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.
10 #include <asm/hardware/sharpsl_pm.h>
15 struct corgissp_machinfo {
25 void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo);
31 void corgi_bl_set_intensity(int intensity);
32 void spitz_bl_set_intensity(int intensity);
33 void akita_bl_set_intensity(int intensity);
37 * SharpSL Touchscreen Driver
39 unsigned long corgi_get_hsync_len(void);
40 unsigned long spitz_get_hsync_len(void);
41 void corgi_put_hsync(void);
42 void spitz_put_hsync(void);
43 void corgi_wait_hsync(void);
44 void spitz_wait_hsync(void);
48 * SharpSL Battery/PM Driver
51 #define READ_GPIO_BIT(x) (GPLR(x) & GPIO_bit(x))
53 /* MAX1111 Channel Definitions */
54 #define MAX1111_BATT_VOLT 4u
55 #define MAX1111_BATT_TEMP 2u
56 #define MAX1111_ACIN_VOLT 6u
58 extern struct battery_thresh spitz_battery_levels_acin[];
59 extern struct battery_thresh spitz_battery_levels_noac[];
60 void sharpsl_pm_pxa_init(void);
61 void sharpsl_pm_pxa_remove(void);
62 int sharpsl_pm_pxa_read_max1111(int channel);