source: trunk/target/linux/omap24xx/patches-2.6.38/520-cbus-tahvo-defines.patch @ 25746

Last change on this file since 25746 was 25746, checked in by mb, 5 years ago

omap24xx: Add 2.6.38 files

File size: 1.4 KB
  • drivers/cbus/tahvo.h

    old new  
    3030#define TAHVO_REG_IDR           0x01    /* Interrupt ID */ 
    3131#define TAHVO_REG_IDSR          0x02    /* Interrupt status */ 
    3232#define TAHVO_REG_IMR           0x03    /* Interrupt mask */ 
     33#define TAHVO_REG_CHGCURR       0x04    /* Charge current control PWM (8-bit) */ 
    3334#define TAHVO_REG_LEDPWMR       0x05    /* LED PWM */ 
    3435#define TAHVO_REG_USBR          0x06    /* USB control */ 
     36#define TAHVO_REG_CHGCTL        0x08    /* Charge control register */ 
     37#define  TAHVO_REG_CHGCTL_EN            0x0001  /* Global charge enable */ 
     38#define  TAHVO_REG_CHGCTL_PWMOVR        0x0004  /* PWM override. Force charge PWM to 0%/100% duty cycle. */ 
     39#define  TAHVO_REG_CHGCTL_PWMOVRZERO    0x0008  /* If set, PWM override is 0% (If unset -> 100%) */ 
     40#define  TAHVO_REG_CHGCTL_CURMEAS       0x0040  /* Enable battery current measurement. */ 
     41#define  TAHVO_REG_CHGCTL_CURTIMRST     0x0080  /* Current measure timer reset. */ 
     42#define TAHVO_REG_BATCURRTIMER  0x0c    /* Battery current measure timer (8-bit) */ 
     43#define TAHVO_REG_BATCURR       0x0d    /* Battery (dis)charge current (signed 16-bit) */ 
     44 
    3545#define TAHVO_REG_MAX           0x0d 
    3646 
    3747/* Interrupt sources */ 
    3848#define TAHVO_INT_VBUSON        0 
     49#define TAHVO_INT_BATCURR       7 /* Battery current measure timer */ 
    3950 
    4051#define MAX_TAHVO_IRQ_HANDLERS  8 
    4152 
Note: See TracBrowser for help on using the repository browser.