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 | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame^] | 10 | |
| 11 | /* |
| 12 | * SharpSL SSP Driver |
| 13 | */ |
Richard Purdie | 50a5de4 | 2005-09-13 01:25:30 -0700 | [diff] [blame] | 14 | struct corgissp_machinfo { |
| 15 | int port; |
| 16 | int cs_lcdcon; |
| 17 | int cs_ads7846; |
| 18 | int cs_max1111; |
| 19 | int clk_lcdcon; |
| 20 | int clk_ads7846; |
| 21 | int clk_max1111; |
| 22 | }; |
| 23 | |
| 24 | void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo); |
Richard Purdie | 9fc7896 | 2005-09-13 01:25:32 -0700 | [diff] [blame] | 25 | |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame^] | 26 | |
Richard Purdie | 9fc7896 | 2005-09-13 01:25:32 -0700 | [diff] [blame] | 27 | /* |
Richard Purdie | 1351e6e | 2005-09-13 01:25:33 -0700 | [diff] [blame] | 28 | * SharpSL Backlight |
| 29 | */ |
Richard Purdie | 1351e6e | 2005-09-13 01:25:33 -0700 | [diff] [blame] | 30 | void corgi_bl_set_intensity(int intensity); |
| 31 | void spitz_bl_set_intensity(int intensity); |
| 32 | void akita_bl_set_intensity(int intensity); |
| 33 | |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame^] | 34 | |
Richard Purdie | 1351e6e | 2005-09-13 01:25:33 -0700 | [diff] [blame] | 35 | /* |
Richard Purdie | 9fc7896 | 2005-09-13 01:25:32 -0700 | [diff] [blame] | 36 | * SharpSL Touchscreen Driver |
| 37 | */ |
Richard Purdie | 9fc7896 | 2005-09-13 01:25:32 -0700 | [diff] [blame] | 38 | unsigned long corgi_get_hsync_len(void); |
| 39 | unsigned long spitz_get_hsync_len(void); |
| 40 | void corgi_put_hsync(void); |
| 41 | void spitz_put_hsync(void); |
| 42 | void corgi_wait_hsync(void); |
| 43 | void spitz_wait_hsync(void); |
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 | |
Richard Purdie | 078abcf | 2005-11-10 17:42:29 +0000 | [diff] [blame] | 46 | /* |
| 47 | * SharpSL Battery/PM Driver |
| 48 | */ |
| 49 | |
Richard Purdie | 078abcf | 2005-11-10 17:42:29 +0000 | [diff] [blame] | 50 | #define READ_GPIO_BIT(x) (GPLR(x) & GPIO_bit(x)) |
| 51 | |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame^] | 52 | /* MAX1111 Channel Definitions */ |
| 53 | #define MAX1111_BATT_VOLT 4u |
| 54 | #define MAX1111_BATT_TEMP 2u |
| 55 | #define MAX1111_ACIN_VOLT 6u |
Richard Purdie | 078abcf | 2005-11-10 17:42:29 +0000 | [diff] [blame] | 56 | |
Richard Purdie | b7557de | 2006-01-05 20:44:55 +0000 | [diff] [blame^] | 57 | extern struct battery_thresh spitz_battery_levels_acin[]; |
| 58 | extern struct battery_thresh spitz_battery_levels_noac[]; |
| 59 | void sharpsl_pm_pxa_init(void); |
| 60 | void sharpsl_pm_pxa_remove(void); |
| 61 | int sharpsl_pm_pxa_read_max1111(int channel); |
| 62 | |
| 63 | |