Commit graph

575618 commits

Author SHA1 Message Date
Subbaraman Narayanamurthy
bd811f3afd qpnp-fg-gen3: Add support to configure force battery profile loading
Currently, FG_GEN3 driver loads the battery profile if it finds
out the profile loaded earlier doesn't match with the available
profile. This will be done when the profile integrity bit is
set already. Make this force profile loading as a configurable
parameter through a device tree property.

While at it, add a module parameter to dump the profile contents
conditionally. This will be helpful in debugging.

Change-Id: Ibaff55aa5434ee283e6d597485d193e9e52bb74e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-10 09:44:04 -07:00
Nicholas Troast
9435c04228 qpnp-fg-gen3: disable msoc-full and bsoc-delta IRQs as wakeup sources
msoc-full is not used to determine when the battery is full. The charger
will wakeup the device when it has terminated charging indicating that
the battery is full. Disable the msoc-full IRQ as a wakeup source.

The msoc-delta IRQ is used to wakeup the device when the SOC changes
therefore having the bsoc-delta IRQ as a wakeup source is unnecessary.
Disable the bsoc-delta IRQ as a wakeup source.

Change-Id: Iab7087ce3d6727abc852d3a84590cfa570ec584d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-10-10 09:44:03 -07:00
Subbaraman Narayanamurthy
5b6c4f8f1b qpnp-fg-gen3: change the encoding for delta soc threshold
Currently, delta SOC threshold is written as a 8 bit value but
the encoding is in 11 bits. This will cause the delta SOC
threshold programmed to a lower value causing interrupts to fire
quickly. Change the numerator of delta SOC SRAM parameter so that
the delta SOC threshold will be set correctly. Maximum possible
threshold will be 12.45% (1/2048 * 255).

Change-Id: Ia908c917d71939b9d72b16ddca3400a692540bf3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-10 09:44:02 -07:00
Subbaraman Narayanamurthy
16b979380c ARM: dts: msm: add CC_CV threshold to itech/ascent FG_GEN3 battery profiles
Configure CC_CV threshold voltage to 4.34V for both itech and
ascent battery profiles that will be used by GEN3 fuel gauge
on pmicobalt.

CRs-Fixed: 1068593
Change-Id: I7df3d343afa62ffdbf6f5db8c7fc7d94e2f0e3a0
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-10 09:44:02 -07:00
Subbaraman Narayanamurthy
5870397614 power: qpnp-fg-gen3: add support to configure VBtGTFltTh and VBtFull
Based on the battery profile parameters, Vbatt greater than float
voltage and full voltage thresholds needs to be configured. Add
support for the same. Since this needs the battery profile
parameters to be read in advance before the hardware is
initialized, shuffle the code to get battery profile early.

CRs-Fixed: 1068593
Change-Id: If5df62d933cc653a276967b3d16c080c6d4ecb2e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-10 09:43:33 -07:00
Subbaraman Narayanamurthy
166e851cfd qpnp-smb2: smb-lib: add charge_done property
Currently, charging status is shown as full for both the charge
termination and inhibit cases. However, there is a need to know
when the charge termination really happens.

Add charge_done property to qpnp-smb2 driver so that the clients
can read that property to distinguish termination and inhibit.

Change-Id: If2bd750af412adf1eea7b913caed9a3eb3b763db
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-06 14:55:15 -07:00
Nicholas Troast
40af50ac19 smb-lib: report not charging when battery is missing
When the battery is missing from the device the battery power supply
will still report that it is charging. Fix this by reporting the charge
status as "not charging" when the battery is missing.

Change-Id: I1150ccaa722109f3ea6a4a10e026709d3686e28b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-10-06 14:55:14 -07:00
Subbaraman Narayanamurthy
477a7554f3 qpnp-smb2: do not configure BATT_OV to end charging cycle
Currently, we configure charger to end the charging cycle when
battery overvoltage is detected. This ends up the charging cycle
prematurely sometimes when charging phase transitions from fast
to taper. Disable this.

Change-Id: I8ac486fcb10e823671a8e8b438b7fc76a8969b7c
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-06 14:55:13 -07:00
Linux Build Service Account
8ec8b328f3 Merge "msm: mdss: fix 32-bit compilation errors in MDSS PP/interfaces" 2016-10-06 07:14:28 -07:00
Padmanabhan Komanduru
96616eab7e msm: mdss: fix 32-bit compilation errors in MDSS PP/interfaces
Add required changes to fix 32-bit compilation issues in
MDSS PP and DP/HDMI interface drivers.

Change-Id: I0b342c0307b257cb8c66fcae73dd94d0fb3122db
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2016-10-06 03:26:04 -07:00
Linux Build Service Account
cde2fda56d Merge "arm/arm64: Kconfig: Add support to use the CLK_QCOM for MSMfalcon" 2016-10-06 01:07:20 -07:00
Linux Build Service Account
e7f64f186c Merge "hwmon: qpnp-adc-common: Clamp voltage value" 2016-10-06 01:07:19 -07:00
Linux Build Service Account
07c163a9f0 Merge "iio: rradc: Remove scaled support for battery thermistor" 2016-10-06 01:07:19 -07:00
Linux Build Service Account
3e782b71c6 Merge "ARM: dts: msm: Configure bimc-bwmon4 only for msmcobaltv2" 2016-10-06 01:07:17 -07:00
Linux Build Service Account
6312438224 Merge "sched: Fix a division by zero bug in scale_exec_time()" 2016-10-06 01:07:16 -07:00
Linux Build Service Account
62a52467b5 Merge "ARM: dts: msm: Vote for 681 MHz DDR for Fmax of all CPU speed bins" 2016-10-06 01:07:16 -07:00
Linux Build Service Account
5ab0b9529f Merge "clk: qcom: Add support for RPM clocks for MSMfalcon" 2016-10-06 01:07:15 -07:00
Linux Build Service Account
3ea0533e23 Merge "clk: qcom: Add support for gfx clock to ping pong PLLs" 2016-10-06 01:07:14 -07:00
Linux Build Service Account
b3cc3d0447 Merge "usb: gadget: f_qc_rndis: Add support for configfs" 2016-10-06 01:07:13 -07:00
Linux Build Service Account
4310d71096 Merge "usb: gadget: f_qc_rndis: Add RNDIS support using IPA over BAM2BAM" 2016-10-06 01:07:13 -07:00
Linux Build Service Account
7b6f74a97a Merge "ASoC: msm: qdsp6v2: Update device mapping for 7 channel" 2016-10-06 01:07:12 -07:00
Linux Build Service Account
3232720034 Merge "ARM: dts: msm: add ref_clk entries needed for DisplayPort" 2016-10-06 01:07:11 -07:00
Linux Build Service Account
80baa5e329 Merge "msm: mdss: increase SMMU mapping range for all context banks" 2016-10-06 01:07:10 -07:00
Linux Build Service Account
9a687ed9d5 Merge "defconfig: enable secure touch option for Synaptics 2.0 for msmcobalt" 2016-10-06 01:07:09 -07:00
Linux Build Service Account
c50041fa03 Merge "msm: camera: isp: Fix overflow recovery" 2016-10-06 01:07:05 -07:00
Linux Build Service Account
c90a12889b Merge "defconfig: msm: disable RMI4 dev module" 2016-10-06 01:07:04 -07:00
Linux Build Service Account
ab2db18add Merge "icnss: Ignore PD down if WLAN FW doesn't exists" 2016-10-06 01:07:03 -07:00
Linux Build Service Account
9033361e55 Merge "icnss: Handle graceful Modem shutdown" 2016-10-06 01:07:02 -07:00
Linux Build Service Account
56f3d47776 Merge "qpnp-smb2: smb-lib: expose step charging via battery psy properties" 2016-10-06 01:06:56 -07:00
Linux Build Service Account
b7c342065e Merge "msm: sps: correct device base address for register dumping" 2016-10-06 01:06:55 -07:00
Linux Build Service Account
7782a824e1 Merge "ARM: dts: msm: Add Temperature sensor support for msmtriton" 2016-10-06 01:06:54 -07:00
Linux Build Service Account
1483f4d713 Merge "thermal: tsens: Enable TSENS for msmtriton" 2016-10-06 01:06:53 -07:00
Taniya Das
e5335ad216 arm/arm64: Kconfig: Add support to use the CLK_QCOM for MSMfalcon
MSMfalcon requires to use COMMON_CLK and COMMON_CLK_QCOM as the clock
framework. Fix the following for CLK_QCOM
 - Add new configs for common clock framework.
 - Remove compilation of audio-ext for COMMON_CLK.
 - Remove ARCH hamster and cobalt from falcon defconfig.
 - Remove ARCH falcon from cobalt defconfig.

Change-Id: I560d62f9698ddf73848186a6740632735d574b0f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-06 10:17:35 +05:30
Linux Build Service Account
d1db9d219b Merge "soc: qcom: Use syncronization while freeing the qmi_client data" 2016-10-05 19:29:28 -07:00
Linux Build Service Account
7cfcfc9a09 Merge "Revert "scsi: ufs: gate ref_clk during aggressive clk gating"" 2016-10-05 19:29:27 -07:00
Linux Build Service Account
2721b89e03 Merge "msm: sensor: validate the i2c table index before use" 2016-10-05 19:29:26 -07:00
Linux Build Service Account
fa1a6d77a8 Merge "ARM: dts: msm: Update VMEM bw for msmcobalt" 2016-10-05 19:29:25 -07:00
Linux Build Service Account
8d467fa530 Merge "power: bcl: Listen to battery power supply notification for soc" 2016-10-05 19:29:25 -07:00
Linux Build Service Account
9d4ed2cb20 Merge "sched: Fix integer overflow in sched_update_nr_prod()" 2016-10-05 19:29:24 -07:00
Linux Build Service Account
52ae4541e4 Merge "msm: kgsl: Reschedule idle work in case transition to idle state fails" 2016-10-05 19:29:23 -07:00
Linux Build Service Account
165da9cba0 Merge "clk: msm: clock-osm: Fix for programming the APM threshold on MSMCOBALT" 2016-10-05 19:29:22 -07:00
Linux Build Service Account
5a534a3946 Merge "clk: msm: clock-osm: Fix check to write to the LLM OVERRIDE register" 2016-10-05 19:29:22 -07:00
Linux Build Service Account
3ee94074c3 Merge "rmnet_data: Changing format specifier to %pK" 2016-10-05 19:29:21 -07:00
Linux Build Service Account
7fe293fab6 Merge "defconfig: add the iommu options on msmfalcon" 2016-10-05 19:29:20 -07:00
Linux Build Service Account
d4ee4ea3cf Merge "coresight: hwtracing: fix dangling pointer issues" 2016-10-05 19:29:20 -07:00
Linux Build Service Account
ae90b14a59 Merge "input: synaptics_dsx: allocate heap memory for temp buf" 2016-10-05 19:29:19 -07:00
Linux Build Service Account
fb89803f09 Merge "sched: Add a device tree property to specify the sched boost type" 2016-10-05 19:29:18 -07:00
Linux Build Service Account
fa6c7033dc Merge "wil6210: extract firmware version from file header" 2016-10-05 19:29:18 -07:00
Linux Build Service Account
f88da36dc8 Merge "arm: topology: Allow specifying the CPU efficiency from device tree" 2016-10-05 19:29:17 -07:00
Linux Build Service Account
f9d64cd4c7 Merge "ARM: dts: msm: add support for qdss nodes on msmfalcon" 2016-10-05 19:29:16 -07:00