As per the hardware documentation, add support for configuring
ESR tight and broad filters for normal and low temperature. This
is needed as the low temperature ESR filter coefficients are not
functional in the hardware.
All the filter values (in terms of percentage) can be configured
through the device tree. When the battery temperature goes below
10 C or user configured temperature threshold, ESR filter values
of room temperature will be applied to ESR low temperature
filters. Once the battery temperature goes above 10 C, original
values will be applied back to ESR low temperature filters.
Change-Id: I347f194f96ace3036a3c49efe0306d9f909cef36
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Battery missing detection interrupt fires prematurely for higher
battery ID values than the desired range. Fix this by disabling
BMD when battery is re-inserted and enable it after obtaining the
battery ID.
While at it, update the battery type shown in particular when a
battery profile is not available.
Change-Id: Ia5458a85289e47bda0a9f4bc59683af695974bc5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
In certain cases like battery hotswap where a strong charger is
connected and battery is re-inserted, the expectation from the
user is to reload the battery profile. This cannot happen unless
a dVdd reset happens and wipes out FG SRAM. To help with the
aforementioned scenario, clear the profile integrity bit every
time when the battery is re-inserted. This way, FG driver will
reload the profile everytime upon battery insertion.
When the battery is missing, cycle counters cannot be cleared as
the access to FG SRAM might not succeed. Hence remove it from the
battery removal path. It will be cleared anyways when the profile
is loaded after the battery is inserted.
While at it, show the cached value of battery_id instead of
reading it every time from RR_ADC peripheral. When the battery is
re-inserted, battery id is obtained from RR_ADC driver anyways
which is sufficient.
Change-Id: I0b9566f7a9fcc81e26e68280382e2d960c49eeb5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Add support to dump FG SRAM periodically based on the module
parameters. This will be useful for debugging purpose.
To enable FG SRAM dump,
echo 1 > /sys/module/qpnp_fg_gen3/parameters/sram_dump_en
To disable FG SRAM dump,
echo 0 > /sys/module/qpnp_fg_gen3/parameters/sram_dump_en
To set FG SRAM dump period,
echo 15000 > /sys/module/qpnp_fg_gen3/parameters/sram_dump_period_ms
Change-Id: Ib4bae7f67100a4bda1e4b996f2fbaeb86da979d2
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
In transfer_busy_time(), the new_task flag is set based on the active
window count prior to the call to update_task_ravg(). update_task_ravg()
however, can then increment the active window count and consequently
the new_task flag above becomes stale. This is turn leads to inaccurate
accounting whereby update_task_ravg() does accounting based on the fact
that the task is not new whereas transfer_busy_time() then continues to
do further accounting assuming that the task is new. The accounting
discrepancies are sometimes caught by some of the scheduler BUGs.
Fix the described problem by moving the check is_new_task() after the
call to update_task_ravg(). Also add two missing BUGs that would catch
the problem sooner rather than later.
Change-Id: I8dc4822e97cc03ebf2ca1ee2de95eb4e5851f459
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Modify cpu node information used by etm save
restore nodes. Etm save restore is used to
save etm data across power collapse.
CRs-fixed: 1056777
Change-Id: Ib00f5098412e0dbfd7aea81594129ddaa15664b9
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
Add sdhc1 to support eMMC for sdm660 QRD.
CRs-Fixed: 1103296
Change-Id: I764845530559ef8a7fc81ae3307f599e07d342dd
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
QOS setting defines the priority and privilege levels
for VCodec hardware and the CPU. Enable the privilege
and priority for Core0 to Core5. Set the priority as
P2 for Core0 and rest as P1. Set the privilege for
Core0 as P2 and rest as P1.
CRs-Fixed: 1103405
Signed-off-by: Manikanta Sivapala <msivap@codeaurora.org>
Change-Id: I6b3f13b55bc153f81672fe82395e1fb6ee1ea333
Add camera related device nodes for sdm660 qrd.
That includes front/rear/aux sensor device nodes, and
corresponding eeprom/actuator/ois device nodes.
Change-Id: I67bcbd96f87e4d362b130e323f0fcc71642fa5a4
Signed-off-by: Kui Wang <kuiw@codeaurora.org>
Rndis_ipa loopback functionality at rndis_ipa driver
is a debug functionality that is not used.
Change-Id: Ibbcb26d3871cffeb46b028efcf4d428e88eb9e10
CRs-fixed: 1104431
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
On WDI-disable, Apps-IPA needs send QMI to inform
Q6-IPA to lift the delay and drain the pending UL
data in IPA to prevent IPA-UC crash.
Change-Id: Idb4d525b46d29b6ae283987c7b8707852ac810d4
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
wil6210 is required for 11ad card that is present
in qrd-skuk. Hence update the device node status
to reflect this.
Change-Id: I9f2461551a67b757064ee88f609fc8e2c9d75211
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
Added changes to update WB OT settings for
SDM660 based on QOS recommendations
Change-Id: I6a4dfe3f6ef88547c6c67750edb1cd2c2404429e
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
Add logic to register common sound controls
to ALSA SoC in both internal and external codec
machine drivers.
CRs-Fixed: 1106498
Change-Id: If5e210fb1f4a5684da4dab7ef567a588e0166d83
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Provide the support to enable MCLK output to external
audio connections. Also, update configuration to set
bit clock as EBIT in slave mode.
CRs-Fixed: 1094763
Change-Id: If07f31a6c37c7b8b23eb74b25a1e15990043cb92
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Update notifier function to use platform device correctly
in order to fix Audio SSR on external codec.
CRs-Fixed: 1094763
Change-Id: I67fc099c30ad097d0be3a2c9fc92a31ce61368f7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
mmssnoc_a_clk_cpu_vote clock is not required on msm8996, so
remove the clock instance for the same.
Change-Id: Ibf1cbb9dc67c9255df09c32a67c320f8bb3ecbc7
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Add initial device tree support and socinfo support for
SDA630.
Change-Id: If2a60c27d5870f3738d77564d392efffece892ac
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Add initial device tree support for CDP, MTP and RCM
platforms of SDM630.
Change-Id: I77d221a632a2eaf5ad84d46926e8f85377c0d813
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>