1. 05 Feb, 2013 1 commit
    • Anirudh Ghayal's avatar
      power: pm8921-bms: Enable batt alarm · 6fe4ffa6
      Anirudh Ghayal authored
      
      Set the batt alarm to wake up the system if the
      battery voltage falls below a threshold. This is to
      make sure that the device does not shutdown abruptly
      without any notification.
      
      Hold the low voltage wakelock to prevent the device
      from going to sleep immediately after the low voltage
      notification.
      
      Change-Id: Ifaeeeb27bd85f9c95f026ac3565681432e247b02
      Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
      6fe4ffa6
  2. 16 Jan, 2013 1 commit
  3. 09 Jan, 2013 1 commit
    • Mayank Rana's avatar
      8930: Use MPP line for USB ID detection · 7e574162
      Mayank Rana authored
      
      0n 8930 with PMIC 8917, USB ID line is not connected
      to PMIC instead it is routed using MPP line. This
      change adds support to configure MPP01 as input pin
      and uses IRQ line for MPP01 for USB ID detection.
      
      By default, this feature is disable as it is required
      to have rework (i.e. external 30k pullup on MPP01 line)
      with used hardware.
      
      To enable this feature:
      set usb_host_mode_pm8917=1 as boot param
      
      CRs-Fixed: 438131
      Change-Id: I7a3ef8cfc179b3504216673cf9e817b93e7a4b5d
      Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
      7e574162
  4. 08 Jan, 2013 1 commit
  5. 07 Jan, 2013 1 commit
    • Mayank Rana's avatar
      8930: Use MPP line for USB ID detection · 5a5d7770
      Mayank Rana authored
      
      On 8930 with PMIC 8917, USB ID line is not connected
      to PMIC instead it is routed using MPP line. This
      change configures MPP01 as input pin and uses IRQ
      line for MPP01 for USB ID detection.
      
      CRs-Fixed: 438131
      Change-Id: Ieba04331f6128ca651045221e8913f085fece795
      Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
      5a5d7770
  6. 30 Nov, 2012 1 commit
  7. 26 Nov, 2012 1 commit
  8. 12 Nov, 2012 1 commit
  9. 05 Nov, 2012 1 commit
    • Abhijeet Dharmapurikar's avatar
      power: pm8921-charger: calculate safety time · 77b1f6bf
      Abhijeet Dharmapurikar authored
      
      We observed that to fully charge a depleted battery with a 500mA source
      the default safety time of 180 minutes is insufficient. The safety timer
      kicks in at around 95% and stops charging the battery.
      
      Instead of assuming a default of 180 minutes, calculate the charge time
      required based on battery capacity and the minimum possible charge
      current. Add a 20 minute buffer period to this calculated safety time.
      
      CRs-Fixed: 414619
      Change-Id: I08d8d319d096c050ae53d90eeac293c9b1bab2bf
      Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
      77b1f6bf
  10. 17 Oct, 2012 1 commit
  11. 15 Oct, 2012 1 commit
    • Xiaozhe Shi's avatar
      power: pm8921-charger: resume charging based on SOC · 14e8fa1e
      Xiaozhe Shi authored
      
      At EOC, the battery is disconnected from the charger and starts
      discharging. This can result in SOC dropping to around 93% before
      charging starts again.
      
      Manually set the CHG_VBAT_DET threshold high to restart charging once SOC
      drops below keep_charge_percent.
      
      CRs-Fixed: 404909
      Change-Id: I07577d1aa57bfa4bee40b52c18b5bfcb1cdb7070
      Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
      14e8fa1e
  12. 20 Sep, 2012 1 commit
    • David Keitel's avatar
      power: pm8921-charger: enable battery alarm · 8b079fb3
      David Keitel authored
      
      During UVLO events the charger hardware may lock up
      if it is in hardware clock switching mode.
      
      To fix this add a battery alarm with a lower threshold
      that disables hardware clock switching.
      
      When the system is awake the resume callback ensures
      that the charger is running off of the 19.2 MhZ clock
      which does not allow the charger to lock up. Therefore
      if the battery alarm wakes up the device before hitting
      UVLO the charger hardware will not be in hardware clock
      switching mode.
      
      CRs-Fixed: 374607
      Change-Id: I11938c569a25b026ee6b7b5125cec930676ec01d
      Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
      8b079fb3
  13. 13 Sep, 2012 1 commit
  14. 12 Sep, 2012 1 commit
  15. 29 Aug, 2012 4 commits
  16. 15 Aug, 2012 3 commits
    • Abhijeet Dharmapurikar's avatar
      power: pm8921-bms: charging curve adjustments · d6d66c7d
      Abhijeet Dharmapurikar authored
      
      It was observed that while charging the reported soc sometimes reaches
      100% before end of charging happens. At other times it does not reach
      100% at end of charge and a abrupt jump to 100% soc happens.
      
      Fix this by linearly increasing soc based on battery charge current
      after constant voltage phase is reached. Constant voltage phase is
      reached when battery voltage reaches the max value.
      
      Also once constant voltage phase is reached and the voltage or charge
      current decreases keep reporting the earlier soc. This could be because
      of a transient system load.
      
      Change-Id: I14c2f42d7897041db038ce85ce1124cf1ef261af
      Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
      d6d66c7d
    • Abhijeet Dharmapurikar's avatar
      power: pm8921-bms: limit voltage correction · 720b00ea
      Abhijeet Dharmapurikar authored
      
      The "adjust_soc" algorithm where we change the open circuit voltage
      (ocv) in steps so that the state of charge (soc) starts approaching
      the estimated soc, causes nonlinearity in the soc curves if an incorrect
      resistance value is fed to the algorithm.
      
      As battery ages and temperature changes, it is hard to estimate the
      exact battery resistance.
      
      So to fix the nonlinearity, limit the amount by which the ocv is
      changed. Make it proportional to the current, i.e. change ocv by
      small amounts in light load and let it change by proportionally
      large amounts in heavy load situations.
      
      Also, make the point where the soc is adjusted configurable via platform
      data instead of forcing it to 25%.
      
      Change-Id: Idc141e6bf3172dab278afe1900f5a1f9cdd624dd
      Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
      720b00ea
    • Abhijeet Dharmapurikar's avatar
      power: pm8921-bms: use shutdown soc if it is within limits · 602dc279
      Abhijeet Dharmapurikar authored
      
      When a strong battery is removed, it was seen that the battery voltage
      lines on the phone take about five to six seconds to go below 2.1volts
      where the pmic resets all the battery backed registers.
      
      If a new battery is plugged in within this time the driver will force
      the shutdown soc on this battery which is incorrect.
      
      Compare the shutdown soc with the calculated soc and if they are
      different than a configurable limit, simply discard the shutdown soc
      and use the calculated soc.
      
      Change-Id: I02e7c78eb5e9df0127ce7e78b0bd9792a8141039
      Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
      602dc279
  17. 13 Aug, 2012 1 commit
    • Abhijeet Dharmapurikar's avatar
      power: pm8921-bms: remove Dynamic Unusable Charge algorithm · a51c87b1
      Abhijeet Dharmapurikar authored
      
      The dynamic UUC algorithm changes the UUC as load, state of charge and
      temperature changes. This uncontrolled behaviour causes unacceptable
      jumps in state of charge numbers.
      
      Replace the dynamic UUC algorithm with a simple average current based
      UUC. The average current is calculated by remembering the load for last
      few (16) samples. Also to maintain a reasonable UUC while charging, a
      load of 300mA is assumed.
      
      Note that the first time UUC is calculated we don't have load samples
      and in that case the instantaneous current is used.
      
      Since we now don't change the UUC with respect to max possible load
      (itest), the usage of this value is removed.  Also instead of failure
      voltage we introduce cutoff voltage which represents the loaded voltage
      by which the battery should be reported 0%.
      
      Change-Id: Ia640164ee2c9690537308d4e840953824ba15b58
      Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
      a51c87b1
  18. 11 Jul, 2012 1 commit
  19. 10 Jul, 2012 1 commit
    • Manoj Rao's avatar
      msm_fb: MHL: Board file changes for Integrated MHL · c6d904ce
      Manoj Rao authored
      
      8x30 FLUID device has integrated solution for MHL.
      Power and GPIO related changes for MHL feature
      is added. This is the first solution
      where 8334 chipset is integrated as the MHL tx. The power
      up for rails and MUX selection is specific to 8x30, since
      8960 doesn't yet have this solution. This change also
      includes the change to move the power and GPIO functions
      to the driver from the board file.
      
      Change-Id: I63219fb2fabf8af611792f0a4f71699553297d84
      Signed-off-by: default avatarManoj Rao <manojraj@codeaurora.org>
      Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
      c6d904ce
  20. 06 Jul, 2012 1 commit
  21. 19 Jun, 2012 1 commit
  22. 15 Jun, 2012 1 commit
  23. 10 May, 2012 1 commit
  24. 04 Apr, 2012 1 commit
  25. 03 Apr, 2012 1 commit
  26. 02 Apr, 2012 1 commit
  27. 26 Mar, 2012 1 commit
  28. 21 Mar, 2012 1 commit
  29. 27 Feb, 2012 1 commit
  30. 10 Feb, 2012 1 commit
  31. 17 Jan, 2012 1 commit
    • David Keitel's avatar
      msm: 8930: enable charger, bms and ccadc · c72d819b
      David Keitel authored
      
      Enable charger for PM8038 platform and its dependent devices.
      This is required to enable charging on devices using PM8038.
      
      Also change gpio mux configuration to make sure that VBUS
      is not pulled high when gpio_request is made.
      
      Change-Id: Id64bc3846090bcaedf00f5f9177930618fa61605
      Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
      c72d819b
  32. 11 Jan, 2012 1 commit
  33. 10 Jan, 2012 1 commit
  34. 06 Jan, 2012 1 commit
  35. 29 Dec, 2011 1 commit