01 Oct, 2013

1 commit


12 May, 2013

1 commit


25 Apr, 2013

1 commit


17 Jan, 2013

1 commit


10 Jan, 2013

1 commit

  • This driver use id as array index, thus add bounder checking for id.

    This patch fixes below build warning:
    drivers/regulator/lp8788-buck.c: In function 'lp8788_buck_probe':
    drivers/regulator/lp8788-buck.c:490:8: warning: array subscript is above array bounds [-Warray-bounds]
    drivers/regulator/lp8788-buck.c:489:63: warning: array subscript is above array bounds [-Warray-bounds]

    Reported-by: Fengguang Wu
    Signed-off-by: Axel Lin
    Signed-off-by: Mark Brown

    Axel Lin
     

03 Jan, 2013

3 commits


10 Dec, 2012

2 commits


20 Nov, 2012

3 commits


29 Aug, 2012

2 commits

  • Below is the buck_pmap mapping table:

    BUCK1: mask = 1 << 0, shift = 0
    BUCK2: mask = 1 << 1, shift = 1
    BUCK3: mask = 1 << 2, shift = 2
    BUCK4: mask = 1 << 3, shift = 3

    The mask and shift can be easily calculated by:
    mask = 1 << BUCK_ID
    shift = BUCK_ID

    This patch defines BUCK_FPWM_MASK and BUCK_FPWM_SHIFT macros to replace
    buck_pmap mapping table.

    Signed-off-by: Axel Lin
    Acked-by: Milo(Woogyom) Kim
    Tested-by: Milo(Woogyom) Kim
    Signed-off-by: Mark Brown

    Axel Lin
     
  • We already know the mask in lp8788_init_dvs() function, and we can update
    the corresponding bit for default_dvs_mode in lp8788_init_dvs() function.
    This function looks not necessary to me.

    Signed-off-by: Axel Lin
    Acked-by: Milo(Woogyom) Kim
    Tested-by: Milo(Woogyom) Kim
    Signed-off-by: Mark Brown

    Axel Lin
     

20 Jul, 2012

1 commit

  • TI LP8788 PMU has 4 BUCKS and 22 LDOs.
    The voltage of BUCK1 and BUCK2 can be controlled by external gpios.
    And some LDOs also can be enabled by external gpios.
    The regmap interface is used for regulator operations.

    Signed-off-by: Milo(Woogyom) Kim
    Signed-off-by: Mark Brown

    Kim, Milo