ramips: add MDIO bus support for RT288X
[openwrt.git] / target / linux / omap24xx / patches-2.6.38 / 520-cbus-tahvo-defines.patch
1 --- a/drivers/cbus/tahvo.h
2 +++ b/drivers/cbus/tahvo.h
3 @@ -30,12 +30,23 @@
4 #define TAHVO_REG_IDR 0x01 /* Interrupt ID */
5 #define TAHVO_REG_IDSR 0x02 /* Interrupt status */
6 #define TAHVO_REG_IMR 0x03 /* Interrupt mask */
7 +#define TAHVO_REG_CHGCURR 0x04 /* Charge current control PWM (8-bit) */
8 #define TAHVO_REG_LEDPWMR 0x05 /* LED PWM */
9 #define TAHVO_REG_USBR 0x06 /* USB control */
10 +#define TAHVO_REG_CHGCTL 0x08 /* Charge control register */
11 +#define TAHVO_REG_CHGCTL_EN 0x0001 /* Global charge enable */
12 +#define TAHVO_REG_CHGCTL_PWMOVR 0x0004 /* PWM override. Force charge PWM to 0%/100% duty cycle. */
13 +#define TAHVO_REG_CHGCTL_PWMOVRZERO 0x0008 /* If set, PWM override is 0% (If unset -> 100%) */
14 +#define TAHVO_REG_CHGCTL_CURMEAS 0x0040 /* Enable battery current measurement. */
15 +#define TAHVO_REG_CHGCTL_CURTIMRST 0x0080 /* Current measure timer reset. */
16 +#define TAHVO_REG_BATCURRTIMER 0x0c /* Battery current measure timer (8-bit) */
17 +#define TAHVO_REG_BATCURR 0x0d /* Battery (dis)charge current (signed 16-bit) */
18 +
19 #define TAHVO_REG_MAX 0x0d
20
21 /* Interrupt sources */
22 #define TAHVO_INT_VBUSON 0
23 +#define TAHVO_INT_BATCURR 7 /* Battery current measure timer */
24
25 #define MAX_TAHVO_IRQ_HANDLERS 8
26
This page took 0.042383 seconds and 5 git commands to generate.