[ARM] pxa: move pxa310 specific MMC3 clk out of generic pxa3xx.c
[deliverable/linux.git] / arch / arm / mach-pxa / sharpsl.h
CommitLineData
50a5de44 1/*
b7557de4
RP
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 *
50a5de44
RP
8 */
9
2c041f4b 10#include <asm/hardware/sharpsl_pm.h>
b7557de4
RP
11
12/*
13 * SharpSL SSP Driver
14 */
50a5de44
RP
15struct 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
25void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo);
9fc7896b 26
b7557de4 27
1351e6e0 28/*
ca4d6cfc 29 * SharpSL/Corgi LCD Driver
1351e6e0 30 */
ca4d6cfc
RP
31void corgi_lcdtg_suspend(void);
32void corgi_lcdtg_hw_init(int mode);
078abcf9 33
b7557de4 34
078abcf9
RP
35/*
36 * SharpSL Battery/PM Driver
37 */
b7557de4 38#define READ_GPIO_BIT(x) (GPLR(x) & GPIO_bit(x))
078abcf9 39
b7557de4
RP
40/* MAX1111 Channel Definitions */
41#define MAX1111_BATT_VOLT 4u
42#define MAX1111_BATT_TEMP 2u
43#define MAX1111_ACIN_VOLT 6u
078abcf9 44
078abcf9
RP
45extern struct battery_thresh spitz_battery_levels_acin[];
46extern struct battery_thresh spitz_battery_levels_noac[];
b7557de4
RP
47void sharpsl_pm_pxa_init(void);
48void sharpsl_pm_pxa_remove(void);
49int sharpsl_pm_pxa_read_max1111(int channel);
078abcf9 50
078abcf9 51
This page took 0.27037 seconds and 5 git commands to generate.