30 Aug, 2015

1 commit


29 Aug, 2015

1 commit


15 Jul, 2015

1 commit


09 Jan, 2015

1 commit


27 May, 2014

1 commit


26 May, 2014

2 commits


27 Mar, 2014

1 commit


06 Mar, 2014

1 commit


04 Mar, 2014

2 commits

  • Also remove PFUZE_NUM to avoid below build warnings:

    CC [M] drivers/regulator/pfuze100-regulator.o
    drivers/regulator/pfuze100-regulator.c:86:2: warning: excess elements in array initializer [enabled by default]
    drivers/regulator/pfuze100-regulator.c:86:2: warning: (near initialization for 'pfuze_device_id') [enabled by default]
    drivers/regulator/pfuze100-regulator.c:93:2: warning: excess elements in array initializer [enabled by default]
    drivers/regulator/pfuze100-regulator.c:93:2: warning: (near initialization for 'pfuze_dt_ids') [enabled by default]

    Signed-off-by: Axel Lin
    Signed-off-by: Mark Brown

    Axel Lin
     
  • support pfuze200 chip which remove SW1C and SW4 based on pfuze100.

    Signed-off-by: Robin Gong
    Signed-off-by: Mark Brown

    Robin Gong
     

23 Feb, 2014

1 commit


19 Feb, 2014

1 commit

  • Since commit d7857c42 (regulator: pfuze100: Use of_get_child_by_name) we get
    the following probe failure:

    pfuze100-regulator 1-0008: Full layer: 1, Metal layer: 0
    pfuze100-regulator 1-0008: FAB: 0, FIN: 0
    pfuze100-regulator 1-0008: regulators node not found
    pfuze100-regulator: probe of 1-0008 failed with error -22

    Now that of_get_child_by_name() is used we should adjust the device_node pointer
    'np' to not get the parent node anymore.

    Suggested-by: Shawn Guo
    Signed-off-by: Fabio Estevam
    Acked-by: Sachin Kamat
    Signed-off-by: Mark Brown

    Fabio Estevam
     

15 Feb, 2014

1 commit


03 Feb, 2014

1 commit


23 Jan, 2014

2 commits


15 Jan, 2014

2 commits


10 Dec, 2013

3 commits


02 Aug, 2013

1 commit


01 Aug, 2013

1 commit

  • Simplify the equation to calculate ramp_delay.
    Below equations are equivalent:
    ramp_delay = 25000 / (2 * ramp_delay);
    ramp_delay = 50000 / (4 * ramp_delay);
    ramp_delay = 25000 / (2 * ramp_delay);
    ramp_delay = 12500 / ramp_delay;
    So we don't need to read BIT6 of rdev->desc->vsel_reg for applying different
    equations.

    Also use rdev->desc->vsel_reg instead of run-time calculate register address.

    Signed-off-by: Axel Lin
    Reviewed-by: Robin Gong
    Signed-off-by: Mark Brown

    Axel Lin
     

30 Jul, 2013

1 commit

  • Current code adjust min_uV and uV_step but missed adjusting the n_voltages
    setting.

    When BIT6 is clear:
    n_voltages = (1975000 - 400000) / 25000 + 1 = 64
    When BIT6 is set:
    n_voltages = (3300000 - 800000) / 50000 + 1 = 51

    The n_voltages needs update because when BIT6 is set 0x73 ~ 0x7f are reserved.
    When using regulator_list_voltage_linear, the n_voltages does matter here
    because wrong n_voltages setting make the equation return wrong result.
    e.g. if selector is 63, regulator_list_voltage_linear returns
    800000 + (50000 * 63) = 4000000
    It should return -EINVAL if the selector is in the range of 51 ~ 63.

    Signed-off-by: Axel Lin
    Signed-off-by: Mark Brown

    Axel Lin
     

29 Jul, 2013

4 commits


27 Jul, 2013

1 commit


25 Jul, 2013

1 commit