Richard Purdie | 50a5de4 | 2005-09-13 01:25:30 -0700 | [diff] [blame] | 1 | /* |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame] | 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 | * |
Richard Purdie | 50a5de4 | 2005-09-13 01:25:30 -0700 | [diff] [blame] | 8 | */ |
| 9 | |
Richard Purdie | 2c041f4 | 2006-01-07 11:12:26 +0000 | [diff] [blame] | 10 | #include <asm/hardware/sharpsl_pm.h> |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame] | 11 | |
| 12 | /* |
| 13 | * SharpSL SSP Driver |
| 14 | */ |
Richard Purdie | 50a5de4 | 2005-09-13 01:25:30 -0700 | [diff] [blame] | 15 | struct corgissp_machinfo { |
| 16 | int port; |
| 17 | int cs_lcdcon; |
| 18 | int cs_ads7846; |
| 19 | int cs_max1111; |
| 20 | int clk_lcdcon; |
| 21 | int clk_ads7846; |
| 22 | int clk_max1111; |
| 23 | }; |
| 24 | |
| 25 | void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo); |
Richard Purdie | 9fc7896 | 2005-09-13 01:25:32 -0700 | [diff] [blame] | 26 | |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame] | 27 | |
Richard Purdie | 9fc7896 | 2005-09-13 01:25:32 -0700 | [diff] [blame] | 28 | /* |
Richard Purdie | ca4d6cf | 2008-01-02 01:09:54 +0100 | [diff] [blame] | 29 | * SharpSL/Corgi LCD Driver |
Richard Purdie | 1351e6e | 2005-09-13 01:25:33 -0700 | [diff] [blame] | 30 | */ |
Richard Purdie | ca4d6cf | 2008-01-02 01:09:54 +0100 | [diff] [blame] | 31 | void corgi_lcdtg_suspend(void); |
| 32 | void corgi_lcdtg_hw_init(int mode); |
Richard Purdie | 078abcf | 2005-11-10 17:42:29 +0000 | [diff] [blame] | 33 | |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame] | 34 | |
Richard Purdie | 078abcf | 2005-11-10 17:42:29 +0000 | [diff] [blame] | 35 | /* |
| 36 | * SharpSL Battery/PM Driver |
| 37 | */ |
Richard Purdie | 078abcf | 2005-11-10 17:42:29 +0000 | [diff] [blame] | 38 | #define READ_GPIO_BIT(x) (GPLR(x) & GPIO_bit(x)) |
| 39 | |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame] | 40 | /* MAX1111 Channel Definitions */ |
| 41 | #define MAX1111_BATT_VOLT 4u |
| 42 | #define MAX1111_BATT_TEMP 2u |
| 43 | #define MAX1111_ACIN_VOLT 6u |
Richard Purdie | 078abcf | 2005-11-10 17:42:29 +0000 | [diff] [blame] | 44 | |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame] | 45 | extern struct battery_thresh spitz_battery_levels_acin[]; |
| 46 | extern struct battery_thresh spitz_battery_levels_noac[]; |
| 47 | void sharpsl_pm_pxa_init(void); |
| 48 | void sharpsl_pm_pxa_remove(void); |
| 49 | int sharpsl_pm_pxa_read_max1111(int channel); |
| 50 | |
| 51 | |