* changes:
msm: board-8930: Allow SMPS 4 to be set to 1.95 V
msm: board-8930: Configure PM8038 SMPS regulators to use auto mode and LPM
msm: board: Specify force_mode and sleep_set_force_mode per regulator
msm: board: Initialize sleep_set_force_mode parameters
msm: rpm-regulator: Add sleep-set force mode parameter
Use the maximum number of channels added in the
ADC entry list in the board to check for channel
validity. This patch also adds additional checks
in the driver to validate the requested channel.
CRs-Fixed: 339631
Change-Id: I347f0d39a00b6ee12976ec2c24843626b54617d4
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
During subsystem restart we need to wait for the WCNSS to come up
and open the smd port before sending any data (command) to it
otherwise the data is lost and it will result in hci_cmd_timeout.
If there was a mechanism in place to issue subsystem_restart on
hci_cmd_timeout, it would result in repetitive subsystem_restart
without this fix.
CRs-fixed: 346227
Change-Id: I5b6098ad017455346953c63e6acef7b12eb44814
Signed-off-by: Sunny Kapdi <sunnyk@codeaurora.org>
Current driver supports only GIC based devices. Revert
the old changes such that VIC based device can use the existing
driver.
Change-Id: I77bcdc57a001f77538641a62f57d13da4f278bac
Acked-by: Kaushik Sikdar <ksikdar@qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Remove RGB base layer pipe for DSI command mode during suspend to
unstage all pipes in Mixer 0 properly
CRs-Fixed: 343233
Change-Id: Icce46ad0969536ed9819d10c0e7e01c63aed147d
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
GPU clock frequency was incorrectly requested to be 1920Mhz
instead of 192Mhz. Fixed this to correct value.
Change-Id: I6c5aa2db42b1fcffdc0dbdfcc5f98b863a8a3ee7
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
* changes:
mmc: core: Remove BROKEN_CLK_GATING quirk for WCN1314 cards
mmc: msm_sdcc: fixup for enabling MMC_CLKGATE feature for SDIO cards
mmc: core: Export mmc_set_ios so that host drivers can use it
This workaround is now handled in secure context within the call
to pas_auth_and_reset(). Remove the unnecessary code. With recent
secure image builds, the accesses performed by the removed code
had no effect anyway, since the registers involved are protected
behind an XPU.
Change-Id: If2c34517e290f44a41980c9812fff1f21e8052b7
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
If a peripheral is not registered and a driver calls
pil_force_{boot,shutdown}() the function silently returns an
error value or void. Print an error message so that log analysis
can find these problems more easily.
Change-Id: I6b535c2e7ac548b502941f37306f61890ef9b569
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
If the RPM triggers the LOW interrupt it means the RPM has error
fataled. Handle this case so we don't sit spinning on the RPM to
respond until our watchdog times out. We also check this while
polling the ack interrupt in msm_rpm_busy_wait_for_request_completion().
This should allow us to have a nice panic output in the logs
whenever the RPM has crashed and is no longer responsive.
Change-Id: Ia40b95eaffe5bbaa10b62f85ae849eb36b1384e6
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Change the RPM regulator configuration data for PM8921 SMPS 4 on
MSM8960 so that RPM requests are made with force mode = auto
instead of force mode = none. Auto mode allows the regulator to
switch automatically between HPM and LPM in hardware based on
real time current load.
Change-Id: Ide406ab8e353dcb79ab76832221deeec09f4e706
Signed-off-by: David Collins <collinsd@codeaurora.org>
Change the min_uV constraint for PMIC 8038 SMPS 4 to 1.95 V
and change the Sitar configuration data to utilize this new
lower value. All Apps use cases should be able to function
properly with SMPS 4 set to 1.95 V. Therefore, the lower voltage
should be used in order to save power.
Change-Id: Ie3ad89828aabd28234f2c953ec06be3b62e2dc13
Signed-off-by: David Collins <collinsd@codeaurora.org>
Modify the macros and initialization tables in the 8960, 8930,
and 8064 board files so that force_mode and sleep_set_force_mode
are specified individually for SMPS regulators.
Several SMPS regulators on each of these targets will need to be
set to use Auto mode instead of no force mode.
Change-Id: I71f2ec2cad347ce7cbf11cff4c9d75cc7fc02f72
Signed-off-by: David Collins <collinsd@codeaurora.org>
Change the RPM regulator configuration data for PM8038 SMPS
regulators on MSM8930 so that active set RPM requests are made
with force mode = auto instead of force mode = none. Also change
force mode to LPM for sleep set requests.
Auto mode allows a regulator to switch automatically between
HPM and LPM in hardware based on real-time current load. Forced
LPM is utilized in the sleep set because it allows for
additional power savings beyond auto mode.
Change-Id: I02ece53063d50d80ad62f33d62899ef631d731aa
Signed-off-by: David Collins <collinsd@codeaurora.org>
Fill in the sleep_set_force_mode parameter in the configuration
macros for all targets that use the rpm-regulator driver. The
sleep-set value should match the active-set value for now. This
ends up being "none" in all cases.
Change-Id: Ia96e2341b651ffcb49438a6d6ec51374e2330079
Signed-off-by: David Collins <collinsd@codeaurora.org>
Add a new sleep_set_force_mode parameter into the rpm-regulator
driver platform data structure. Modify sleep-set requests to use
this value for force mode.
This parameter is intended to be used to capture platform
specific mode requirements for certain regulators which cannot
be managed by modifying peak current (ip) alone.
Change-Id: I7f25e546ae7feef1b5e8312a4198e855312a58c7
Signed-off-by: David Collins <collinsd@codeaurora.org>
enable V4l2 (video for linux 2) support for camera in
7627a and 8625 targets.
Change-Id: I2c2413272dcd46505832054b13f74fb9e2aff2b9
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Replace calls to clk_enable()/clk_disable() with calls to
clk_prepare_enable()/clk_unprepare_disable(). This is safe to do
because all these calls are made from non-atomic context.
Change-Id: I8bbb2c5df9a23796b808d4f882ffdb04319477ea
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Send disable event when FM turn off is completed
so that file descriptor can be released safely
CRs-Fixed: 339470
Change-Id: Ib66f4cd79a470498404a07759d730504f6615e33
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
If HPHL and HPHR have relatively high impedance, internal MBHC HPHL
trigger cannot trigger so results in headphone/headset detection
failure.
Utilize MIC trigger as well as HPHL trigger in order to detect headphone
and headset which have high impedance on headphone line.
CRs-fixed: 339390, 337590, 336847, 334339
Change-Id: Ibfd4ba254197233f2b5e253f5d1fa2a98c848c97
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Spurious mdm status interrupt is very early during bootup causing
hsic enumeration and low power mode failures. Ignore status
interrupt if mdm is not booted yet or by checking mdm ready flag.
Change-Id: I5db682e28386e3d9479fccd78c67da593a9f16ec
Signed-off-by: Vamsi Krishna <vskrishn@codeaurora.org>