- 05 Feb, 2013 1 commit
-
-
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:
Anirudh Ghayal <aghayal@codeaurora.org>
-
- 16 Jan, 2013 1 commit
-
-
Asish Bhattacharya authored
The noise gate is resulting in intermittent audio issue, hence disable it. CRs-Fixed: 428933 Change-Id: I0fbac13c40f06c1ad8a537bd91e5272be844fd92 Signed-off-by:
Asish Bhattacharya <asishb@codeaurora.org>
-
- 09 Jan, 2013 1 commit
-
-
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:
Mayank Rana <mrana@codeaurora.org>
-
- 08 Jan, 2013 1 commit
-
-
Mayank Rana authored
This reverts commit 5a5d7770 . With this commit USB peripheral mode won't work if there is no hardware rework done. Change-Id: Iaa4e4ace6a91c31a5e7ddb6d2f80d2cf13996848 Signed-off-by:
Mayank Rana <mrana@codeaurora.org>
-
- 07 Jan, 2013 1 commit
-
-
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:
Mayank Rana <mrana@codeaurora.org>
-
- 30 Nov, 2012 1 commit
-
-
Abhijeet Dharmapurikar authored
The JEITA specification mandates that the charge voltage and current be reduced at warmer temperatures. However it does not necessarily specify the exact warm temperature. The recommendation for the hardware is to use 45degC as the warm threshold instead of 40degC. Change-Id: I4971d605c3475949be64372dc6bd3355ed258527 Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
-
- 26 Nov, 2012 1 commit
-
-
Abhijeet Dharmapurikar authored
The current code calculates the state of charge every 20 seconds. We need to increase the frequency when the voltage drops to near cutoff values. Make the poll interval configurable, choose 1 second interval when the battery nears the cutoff voltage and 20 seconds otherwise. Change-Id: I1bc779e5890f6994442c562ee5abf37c06dc6d3d Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
-
- 12 Nov, 2012 1 commit
-
-
Xiaozhe Shi authored
Change the unit of r_sense from Milli Ohms to Micro Ohms in order to increase the precision of ccadc and current readings. Change-Id: Ic3f2c4e5bafd3a1556412005564fc0b549e6813c Signed-off-by:
Xiaozhe Shi <xiaozhes@codeaurora.org>
-
- 05 Nov, 2012 1 commit
-
-
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:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
-
- 17 Oct, 2012 1 commit
-
-
Abhijeet Dharmapurikar authored
There are hardware configurations where a battery is not present. Such hardware runs from a external power adapter. Do not invoke BMS api for reporting charge percentage instead report 100%. Also report a favourable battery temperature. Change-Id: I4f14b7419f7a90813650601638f6563422c13ae4 Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
-
- 15 Oct, 2012 1 commit
-
-
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:
Xiaozhe Shi <xiaozhes@codeaurora.org>
-
- 20 Sep, 2012 1 commit
-
-
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:
David Keitel <dkeitel@codeaurora.org>
-
- 13 Sep, 2012 1 commit
-
-
Siddartha Mohanadoss authored
PA_THERM1 is connected to MPP3. Statically map MPP3 to AMUX8 channel to support reading PA Therm temperature on PM8917. Change-Id: I66f1180b93c7544c98b5b1cd9ae1cdb9e6216782 Signed-off-by:
Siddartha Mohanadoss <smohanad@codeaurora.org>
-
- 12 Sep, 2012 1 commit
-
-
Asish Bhattacharya authored
Test results based on noise gate recommended the following settings 0x254=0xC8 (Threshold=110, preamp bias=01) 0x255=0xC1 (Hold=110, max attn=0000, mute=1) 0x256=0xB0 (decay=101, attack=10, delay=0) CRs-Fixed: 385187 Change-Id: I7276a6d0689ffb475aa8c58214fd2b00fe62f81c Signed-off-by:
Asish Bhattacharya <asishb@codeaurora.org>
-
- 29 Aug, 2012 4 commits
-
-
David Keitel authored
All CDP platforms are powered by an external DC supply. Hence set the has_dc_supply flag to allow the charger driver to handle it accordingly. Change-Id: Iacdbccbe164823d91ea72cce9d33a0ab5491a45f Signed-off-by:
David Keitel <dkeitel@codeaurora.org>
-
David Collins authored
Use PM8917 GPIO 24 to enable and disable the LCD backlight on targets which use PM8917 as WLED is not available. Change-Id: Id2fa1bb01d174d38ee9d846261750e971a96cfd2 Signed-off-by:
David Collins <collinsd@codeaurora.org>
-
David Collins authored
Add the board file board-8930-regulator-pm8917.c to capture regulator configuration and mappings for MSM8930 targets which utilize a PM8917. Add code into other MSM8930 board files to conditionally switch to the new regulator configuration values if PM8917 is detected at runtime. Change-Id: I68c1025bae45d77d1a04a8935dc7ecb2d857b8ef Signed-off-by:
David Collins <collinsd@codeaurora.org>
-
David Collins authored
Add support for boards consisting of MSM8930 + PM8917. Conditionally Remove configuration for peripherals not present in PM8917. Also remap GPIOs and MPPs as follows: GPIOs: PM8038 PM8917 1 24 2 25 3 27 4 19 5 25 6 23 7 38 8 28 9 20 10 36 11 37 12 21 MPPs: PM8038 PM8917 1 5 2 6 3 10 4 8 5 7 6 9 Change-Id: I38166aaa85271b9d7f857f27b070fc36a0d0a803 Signed-off-by:
David Collins <collinsd@codeaurora.org>
-
- 15 Aug, 2012 3 commits
-
-
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:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
-
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:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
-
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:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
-
- 13 Aug, 2012 1 commit
-
-
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:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
-
- 11 Jul, 2012 1 commit
-
-
David Keitel authored
PM8917 has a new register which allows configuring the falling USB under voltage detection (UVD) threshold from 3.85V to 4.35V in 100 mV steps. Add an API that allows to set this value per default and also only do this for PM8917 chips. Change-Id: I9b4259b43f148762ac72af40bdc79b895d9b4fc2 Signed-off-by:
David Keitel <dkeitel@codeaurora.org>
-
- 10 Jul, 2012 1 commit
-
-
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:
Manoj Rao <manojraj@codeaurora.org> Signed-off-by:
Pavankumar Kondeti <pkondeti@codeaurora.org>
-
- 06 Jul, 2012 1 commit
-
-
Jay Chokshi authored
PM8038 MPP3 is not used for USB or HDMI control. Therefore, remove the erroneous MPP initialization. CRs-fixed: 376505 Change-Id: I9f3180cca989b1ae4b8065cc7fa62804603a2c99 Signed-off-by:
Jay Chokshi <jchokshi@codeaurora.org>
-
- 19 Jun, 2012 1 commit
-
-
David Keitel authored
There is a dependency for the CCADC calibration work on the BMS driver. This prevents some devices that do not use the BMS to utilize the CCADC. Remove this dependency by moving the ccadc calibration work to the CCADC driver to avoid this. Change-Id: If43c781d6d2bc27f64dbbe594b6e81c5a5642f0b Signed-off-by:
David Keitel <dkeitel@codeaurora.org>
-
- 15 Jun, 2012 1 commit
-
-
Jay Chokshi authored
There is a bug in LPG module that results in incorrect behavior of pattern when LUT index 0 is used. So effectively there are 63 usable LUT entries. Do not use the existing 0th LUT entry. Change-Id: Icf3f7534e1138661a0248ce3c57b4d30aa9240f2 Signed-off-by:
Jay Chokshi <jchokshi@codeaurora.org>
-
- 10 May, 2012 1 commit
-
-
Asish Bhattacharya authored
Supply platform data for speaker driver with info of additional speaker inputs supported. The pmic pm8038 supports one additional input path to Speaker Power amps. Add this to pdata as part of PMIC sub devices platform data. Change-Id: I8045cc517a29853590b436f86cac5504557de049 Signed-off-by:
Asish Bhattacharya <asishb@codeaurora.org>
-
- 04 Apr, 2012 1 commit
-
-
Chandan Uddaraju authored
The WLED trigger to control the backlight will be triggered by the display driver. Change-Id: Ib3daa8caabf9884acdef7d7f71ad008079cf07c4 Signed-off-by:
Chandan Uddaraju <chandanu@codeaurora.org>
-
- 03 Apr, 2012 1 commit
-
-
Amy Maloche authored
Control RGB leds through sysfs entries. Add necessary drive lines, names, current and PWM cycles. Change-Id: I6b6174e276c2998e25619eb3e65bfe468820b84c Signed-off-by:
Amy Maloche <amaloche@codeaurora.org>
-
- 02 Apr, 2012 1 commit
-
-
Amy Maloche authored
Enable haptics on 8930 CDP Phase 2. Remove haptics support for Phase 1 CDPs as all have been upgraded to Phase 2. Configure necessary clock and gpio pins. Enable regulator to pull up i2c line for communication. Change-Id: Ifcd1f9332cce382aa99b520ca85fe4ccf08ad2f2 Signed-off-by:
Amy Maloche <amaloche@codeaurora.org>
-
- 26 Mar, 2012 1 commit
-
-
Jay Chokshi authored
The SMBC HW automatically turns on the charger LED during HW-controlled Auto Trickle Charging (ATC). After system boots up, charger SW needs to manually turn on the charger LED since the anode is connected to GND by default. Add configuration to connect the LED anode power source to VPH_PWR by default. Change-Id: I3984d747e725c0cb067ae7bda84626b132b2ffcb Signed-off-by:
Jay Chokshi <jchokshi@codeaurora.org>
-
- 21 Mar, 2012 1 commit
-
-
Anirudh Ghayal authored
Increase the pull up strength (current source pulls) from 1.5uA to 30uA for devices (MTP and XPM) which do not have external pull-ups. Change-Id: I8c95fb7127c04f4029bc85270a3b31935ad8a588 Signed-off-by:
Anirudh Ghayal <aghayal@codeaurora.org>
-
- 27 Feb, 2012 1 commit
-
-
David Keitel authored
To ensure proper battery id dectection on LiQUID and MTP use machine_is_msm8960/8064_mtp/cdp to determine which calibration data to use for battery. If platform is unknown fall back on regular battery id detection. Change-Id: I2f5629572d1e5fcac0a2feb114947b91a96f3bf0 Signed-off-by:
David Keitel <dkeitel@codeaurora.org>
-
- 10 Feb, 2012 1 commit
-
-
Amy Maloche authored
Supply platform data for White LED(WLED) with number of led strings supported, default status, max current and others. Add this pdata as part of PMIC sub devices platform data. Change-Id: Ib621bb52fb9396a7437823b48fc099de5914130b Signed-off-by:
Mohan Pallaka <mpallaka@codeaurora.org>
-
- 17 Jan, 2012 1 commit
-
-
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:
David Keitel <dkeitel@codeaurora.org>
-
- 11 Jan, 2012 1 commit
-
-
Anirudh Ghayal authored
Support volume up/down and camera focus/snapshot Change-Id: Ic4e14519cd4d7d64f4c355c8a9f3791355b14788 Signed-off-by:
Anirudh Ghayal <aghayal@codeaurora.org>
-
- 10 Jan, 2012 1 commit
-
-
Amy Maloche authored
Change-Id: I40e13cb73522bb0951675db0a3afa2910c21db12 Signed-off-by:
Amy Maloche <amaloche@codeaurora.org>
-
- 06 Jan, 2012 1 commit
-
-
Siddartha Mohanadoss authored
Add supported ADC channels and its configuration for PM8038. Configuration includes the sampling rate, channel properties and the scaling functions for the respective channels. Change-Id: I4973b80b7d72fd2776b360a8279d652b268e4125 Signed-off-by:
Siddartha Mohanadoss <smohanad@codeaurora.org>
-
- 29 Dec, 2011 1 commit
-
-
David Collins authored
Add an MSM8930 regulator board file to support the PMIC PM8038 regulators. Also add support for the 5V boost regulator and the USB OTG voltage switch. Change-Id: I6cc3254230f7dd00604c1c0aaf9e56299d7673b6 Signed-off-by:
David Collins <collinsd@codeaurora.org>
-