mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
ca4d6cfcee
This patch refactors the code in corgi_lcd.c moving it to the board specific corgi and spitz files where appropriate instead of the existing ifdef mess which hinders readability. Fix spitz_get_hsync_len() to call get_hsync_invperiod so pxafb can be compiled as a module. The confusing variables which represent the inverse horizintal sync period are renamed to "invperiod" consistently. An incorrect comment in corgi_ts.c is also corrected. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
52 lines
1.0 KiB
C
52 lines
1.0 KiB
C
/*
|
|
* 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 <asm/hardware/sharpsl_pm.h>
|
|
|
|
/*
|
|
* SharpSL SSP Driver
|
|
*/
|
|
struct corgissp_machinfo {
|
|
int port;
|
|
int cs_lcdcon;
|
|
int cs_ads7846;
|
|
int cs_max1111;
|
|
int clk_lcdcon;
|
|
int clk_ads7846;
|
|
int clk_max1111;
|
|
};
|
|
|
|
void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo);
|
|
|
|
|
|
/*
|
|
* SharpSL/Corgi LCD Driver
|
|
*/
|
|
void corgi_lcdtg_suspend(void);
|
|
void corgi_lcdtg_hw_init(int mode);
|
|
|
|
|
|
/*
|
|
* 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 spitz_battery_levels_acin[];
|
|
extern struct battery_thresh spitz_battery_levels_noac[];
|
|
void sharpsl_pm_pxa_init(void);
|
|
void sharpsl_pm_pxa_remove(void);
|
|
int sharpsl_pm_pxa_read_max1111(int channel);
|
|
|
|
|