The QBT1000 driver provides an API for communicating
with trustzone applications and handles firmware event
interrupts.
The driver supports the following features:
- loading and unloading trustzone applications
- sending commands to trustzone applications
- voting/un-voting for clocks before/after making
a trustzone call
- receiving firmware events, signalled by interrupts,
and providing them to the driver client
- sending a key event in response to firmware finger
detect events
Change-Id: I1d9d7a6b6bd2d3420a28a8c09868143bb9bd3b27
Signed-off-by: Lior Barenboim <liorb@codeaurora.org>
USB3 core expects pipe clock input for USB connection establishment
and functionality working. In case of maximum speed of USB3 core set
to HS/FS mode, it is required to disable pipe clock requirement and
instead use UTMI clock from HS PHY as clock input. Hence disable
this pipe clock requirement for the case, where maximum speed is set
to FS as well.
Change-Id: Ife9d6a16e1607b40c71eb1897947bf4645ac9561
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Safety timer is using an offset of 1ms whereas it should use
10ms. Fix the calculation to configure safety timer properly.
CRs-Fixed: 1076402
Change-Id: If06c421c559277066cf9ffd86e71fe366ab7bf8d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Currently, the code calculated to write to ITARGET based on the
brightness level or current is off by 2 bits. Fix it.
CRs-Fixed: 1079311
Change-Id: I58421ba7f784f7467015a5943aecc2dd0022145a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
During subsystem restart, when restart of the codec DSP is attempted,
the status is already moved to codec up whereas driver is checking
for codec down. This causes the initialization of components to be
skipped and codec dsp does not come back online. Change fixes the
condition check to make sure the correct sequence is followed.
CRs-Fixed: 1080392
Change-Id: I05345b8f5d108e59863ee4e37ed75fd32a284ee5
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Enabling only the required memory for codec DSP helps reduce power
consumption with codec DSP is not used. Update the memory enable/
disable sequence such that the switchable memory domain is enabled
only when the codec DSP is being used.
CRs-Fixed: 1075303
Change-Id: I0552bf8a48c214b89e160fe4df145973f02c2788
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
reset_hmp_stats was moved to another file and when CONFIG_CFS_BANDWIDTH
is enabled there is code still referencing this in the original file
causing compilation error.
Change-Id: Iab7fc8551b628c443ce751026b06c5ff4ebba39a
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Code does not compile with CONFIG_CFS_BANDWIDTH.
Change-Id: Idb74e9df4fcb55085ac869f5ba273cef4a3eb9eb
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Currently the AVDD TRIM registers are being configured incorrectly.
Update the sequence to configure the TRIM register and the OVP
register based on predetermined values mapped to the target voltage
specified in the device tree. Also add support for performing
masked writes to the wled registers.
CRs-Fixed: 1082047
Change-Id: I4c99b598d5f484368712eab239f7de70b727c2aa
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Currently, for doing a secure write to the peripheral register,
secure access is acquired at the call site before writing to the
register. Optimize this by adding an API to do secure writes.
When a secure write is attempted, it should be atomic and not
raced with normal write. Add a mutex lock to synchronize the
normal and secure writes. While at it, fix the data parameter
passed to qpnp_wled_write_reg() as that doesn't really need a
pointer.
CRs-Fixed: 1082047
Change-Id: I6a678d9133b06dda2de1c6cfe4bbafacc594f299
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
There are some features which needs to be enabled based on the
PMIC. PMIC information such as subtype, revision can be obtained
from revid peripheral. Hence add support to read pmic revid.
CRs-Fixed: 1082047
Change-Id: If0646f5ae111f75ababc405cbd2f7bcea899360e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Add support for both HI04 and JDI/Rohm with DDIC
synchronization.
Change-Id: Ib6bddd5f43b41660304d240db39f4e273ede3af0
Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
The clock index used for registering the clock and
the index used by clients for clk_get does not match.
Fix the same by updating to the clock index used by clients.
Change-Id: I1b614cb70aa43087c122ce6c42305491e5f5b34b
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Fix compilation errors for Goodix touch driver for msm-4.4
kernel after porting the driver. This includes replacing the
deprecated api(s) with proper ones and changing code for
proper compilation.
Change-Id: I2abd67a8ff647165ddedb385e80f8705d73d3100
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
This allows an option to configure a single beacon tx rate for an AP.
Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211.git
Git-commit: a7c7fbff6a408d00431c705bbe3dfc5f51e3f1c4
CRs-fixed: 1025311
Change-Id: I5f9627964d86c51cb8fb0c5c5f7c9f5f2e19b3e7
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
Add support for Modem PIL which facilitates the loading of Modem
firmware, authentication and bringing it out of reset.
Change-Id: I42a47e4386ca7a1bbbec428c8d2cbe307634cd1e
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
Add support for Modem PIL which facilitates the loading of Modem
firmware, authentication and bringing it out of reset.
Change-Id: I3e700bdae21b6e18b28cf5982e42e73d7ae953a5
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
Update the reset sequence to support qdspv62-1-5 for MSMFALCON.
Also Enable one more memory bank during reset sequence for MSMFALCON.
Change-Id: Ib0d27c13c0ebdfac629c1469c9a91a0b84d03640
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
clk_set_flags would fail for clients using the
branch memory flags as the macros vary between the
COMMON_CLK_QCOM and COMMON_CLK_MSM. Fix the same by
adding the enum definitions.
Change-Id: I30cd3fb0435e085e76a60043b80b6ff7aded2819
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
trace_sched_update_task_ravg relies on NULL pointers to ensure that
it doesn't access them. Make sure that when a task exits, these
pointers are set to NULL. Otherwise any call to update_task_ravg()
between sched_exit() and releasing the task structure will access
bogus pointers. In some cases those memory locations are unmapped
and cause a kernel panic.
Change-Id: I9eebb4fb35aca2c8424bfb29ae9d833650dc5ad4
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Enabling WDOG status register by default has power penalty.
Add support to allow the register to be configured via debugfs
instead.
CRs-Fixed: 1081757
Change-Id: I13156d82f544cd28a1579c23b18182c879c85767
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Device suspend fails because of un-interruptible blocking read
function. Use wait_for_completion_interruptible API instead of
wait_for_completion to allow device suspend.
Change-Id: Ia537e776d0b322d56cd6003f95cdded5e695ceeb
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
When system timeouts to pull register state, we do wsi error
recovery, which causes an AHB bus hang. Fix this by doing top
level reset instead of wsi error recovery.
CRs-Fixed: 1080014
Change-Id: Ic5dbac9c2cd31f3193ede7cdc64249f7514e3e98
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
When there is a fatal error on ADSP, audio subsystem restart(SSR)
gets triggered. As a part of audio SSR, trigger codec DSP
SSR to reset the codec DSP state.
Change-Id: Id9cbda04a4c36070e52919d3a34ebc871ac22a8e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Enable VDD_GFX CPR aging adjustments for MSMCOBALTv2 parts with
CPR fusing revision greater than or equal to 2. At most 15 mV
can be added onto the open-loop and closed-loop voltage as a
result of an aging measurement at runtime. This maximum 15 mV
adjustment was previously accounted for in the fixed open-loop
and closed-loop voltage adjustments. Therefore, remove 15 mV
from both the open-loop and closed-loop voltage adjustments for
all corners.
Change-Id: I44487bfcb4e21d76948cd836ad2dae18bc3d22f4
CRs-Fixed: 1081084
Signed-off-by: David Collins <collinsd@codeaurora.org>
WCD9335 codec has single master clock supply widget for both
playback and recording paths. Adding separate clock supply
for playback and recording paths will help handle low power
audio recording usecases without affecting playback usecases.
Change is to enable separate clock supply widgets for playback
and recording paths.
CRs-Fixed: 1022917
Change-Id: Ia02a1ffed911498dd6eb5df246e6da68a7802a92
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>