Root/
1 | /* |
2 | * Copyright 2012 Creative Product Design |
3 | * Marc Reilly <marc@cpdesign.com.au> |
4 | * |
5 | * This program is free software; you can redistribute it and/or modify it under |
6 | * the terms of the GNU General Public License version 2 as published by the |
7 | * Free Software Foundation. |
8 | */ |
9 | #ifndef __DRIVERS_MFD_MC13XXX_H |
10 | #define __DRIVERS_MFD_MC13XXX_H |
11 | |
12 | #include <linux/mutex.h> |
13 | #include <linux/regmap.h> |
14 | #include <linux/mfd/mc13xxx.h> |
15 | |
16 | #define MC13XXX_NUMREGS 0x3f |
17 | |
18 | struct mc13xxx; |
19 | |
20 | struct mc13xxx_variant { |
21 | const char *name; |
22 | void (*print_revision)(struct mc13xxx *mc13xxx, u32 revision); |
23 | }; |
24 | |
25 | extern struct mc13xxx_variant |
26 | mc13xxx_variant_mc13783, |
27 | mc13xxx_variant_mc13892, |
28 | mc13xxx_variant_mc34708; |
29 | |
30 | struct mc13xxx { |
31 | struct regmap *regmap; |
32 | |
33 | struct device *dev; |
34 | const struct mc13xxx_variant *variant; |
35 | |
36 | struct mutex lock; |
37 | int irq; |
38 | int flags; |
39 | |
40 | irq_handler_t irqhandler[MC13XXX_NUM_IRQ]; |
41 | void *irqdata[MC13XXX_NUM_IRQ]; |
42 | |
43 | int adcflags; |
44 | }; |
45 | |
46 | int mc13xxx_common_init(struct mc13xxx *mc13xxx, |
47 | struct mc13xxx_platform_data *pdata, int irq); |
48 | |
49 | void mc13xxx_common_cleanup(struct mc13xxx *mc13xxx); |
50 | |
51 | #endif /* __DRIVERS_MFD_MC13XXX_H */ |
52 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9