mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[ARM] 2882/1: pxa2xx_sharpsl: Update PCMCIA driver to support variety of new hardware
Patch from Richard Purdie This patch updates the PCMCIA pxa2xx_sharpsl driver to support multiple scoop devices by adding a scoop to pcmcia slot mapping structure. It adds platform support for poodle, is known to work on spitz (which is dual slot) and should also support collie with a minor amount of further work. Signed-off-by: Richard Purdie <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
027da01d73
commit
0ce7625f3c
5 changed files with 105 additions and 52 deletions
|
|
@ -40,6 +40,19 @@ struct scoop_config {
|
|||
unsigned short io_dir;
|
||||
};
|
||||
|
||||
/* Structure for linking scoop devices to PCMCIA sockets */
|
||||
struct scoop_pcmcia_dev {
|
||||
struct device *dev; /* Pointer to this socket's scoop device */
|
||||
int irq; /* irq for socket */
|
||||
int cd_irq;
|
||||
const char *cd_irq_str;
|
||||
unsigned char keep_vs;
|
||||
unsigned char keep_rd;
|
||||
};
|
||||
|
||||
extern int scoop_num;
|
||||
extern struct scoop_pcmcia_dev *scoop_devs;
|
||||
|
||||
void reset_scoop(struct device *dev);
|
||||
unsigned short set_scoop_gpio(struct device *dev, unsigned short bit);
|
||||
unsigned short reset_scoop_gpio(struct device *dev, unsigned short bit);
|
||||
|
|
|
|||
Loading…
Reference in a new issue