Enable bootmarker proxy driver & add module to bazel module list for
gen3auto.
Change-Id: I0775c569dea2772b91ecd509edee218c139221e5
Signed-off-by: Konkumutti Sai Ram <quic_ksairam@quicinc.com>
Add qcom power telemetry hardware driver. It enables to
measure different pmic regulator power consumption data.
It exposes these data to userspace clients via powercap sysfs
interface.
Change-Id: Ie5fea39a1b4b564ca4ba8eb3c77c683e13d329a4
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
On some targets, the CC detection input is inverted. This
leads to wrong phy lane being latched and doesn't enumerate
USB in super speed. Add support to invert the polarity
of CC Detection line coming to the phy.
Change-Id: Ib8ceacabb7f043dd7b138425a973201e40a54866
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
Interrupt handler send extcon notofication based on POPI.
In probe there is possiblity that POPI extcon notification
before extcon registation, so moving interrupt registation
after extcon registation.
Change-Id: If4c3582418d7a487384622c6d0c25384f47e2e64
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
Disable charging when a debug board is detected.
Debug board is reported based on a GPIO state, add support
to sample this GPIO and disable charging by setting
the VINDP to 5.4V.
Change-Id: I8b8a0a833b4f50e24e0223cf9f2510c7e4ec8056
Signed-off-by: Ashish Chavan <quic_ashichav@quicinc.com>
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
The i2c controller device once suspended fails all the
i2c transactions. There is a possibility that an slave i2c
interrupt occurs while the device is suspended and the
interrupt callback does the i2c transactions before the controller
has resumed.
Handle this case by maintaining a suspend/resume flag and handle
the interrupt (i2c transactions) after the device has resumed.
Change-Id: I4a505d17cfe594f70fbeac8020d3116697c0806f
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
Current driver using blocking wait_event_interruptible() call with
indefinite timeout for doorbell_pending flag clear, during multi session
ranging test scenario we could see back to back doorbell events for
SOC events and q2spi_transfer will be blocked and leading host
application timeouts.
This change will remove blocking wait logic in q2spi_transfer TX path
and complete the transfer after bulk_status CR and avoid delay for
TX q2spi_transfer completions.
Change-Id: I1015be233efaf8756076d1034640bdb0464b0185
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
Remote wakeup capability from system suspend is not a requirement for
certain hardware platforms. Keep system wakeup disabled based on the DT
property "qcom,disable-wakeup", and disable the interrupt accordingly.
Change-Id: I0b82877aa51616420bef414a5aa615736b99ac00
Signed-off-by: Faisal Hassan <quic_faisalh@quicinc.com>
Enable interconnect_test module for neo target. This will help
in placing proxy test votes on selected paths for debugging.
Change-Id: I7c5892097ab01ae0ca7ffeae321c7dfe94e964fd
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>
Enable PMIC overlay related modules for neo LA platforms.
Change-Id: If145efed0ed6ed8f5b293f89e64d761768d2994a
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
Disable CONFIG_REGULATOR_DEBUG_CONTROL for autogvm since in irq disable
state get_vlotage call from frontend to backend would lead to sleep call.
Change-Id: I3fcdbf0f573f75932607414b76d8b6b7f0095511
Signed-off-by: Vagdhan Kumar Kanukurthi <quic_vagdhank@quicinc.com>
The dwc3_msm_suspend and dwc3_msm_resume functions had
high cyclomatic complexity.
To address this, the common code for interrupt configuration
was moved to a new function dwc3_msm_interrupt_enable,
and reused thereby reducing the overall complexity.
Change-Id: Icfafa39754ff5e67cee598f86dfaec0875573f49
Signed-off-by: Rajashekar kuruva <quic_kuruva@quicinc.com>
From ufs_qcom_init, we call phy_init() to initialize
phy driver for ufs. But sometimes, the phy driver
haven't got probed yet when we call phy_init.
This causes kernel panic during phy_init_clks.
So, before proceeding for phy clock initialization,
first check if the phy handle is available or not.
Defer the probe if it is not available.
Change-Id: Iadbc4f10719de2a1150fa00a9b5ec125db429464
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
In setup worker genpool memory is freed and mapped again
which is causing qrtr_genpool_set_state function to access
NULL pointer in genpool probe.
Handle genpool memory mapping in setup worker only and remove
setting driver state in probe function to avoid genpool memory
access before mapping.
Change-Id: Iedbca688931506f0d0d6f63e9aa8af75b641f2cd
Signed-off-by: Deepak Kumar Singh <quic_deesin@quicinc.com>
Signed-off-by: Vishnu Santhosh <quic_vishsant@quicinc.com>
When supported, the local side can be rebooted and the proper clean
up needs to be done so the remote side knows to stop. Add support for
qrtr genpool to register with reboot notifier to be informed when a
reboot occurs. Have the local side transition to the correct state and
handle the reboot gracefully with the remote side.
Change-Id: I6ec7ae26a75be00d8adbde66214592d73b5a912e
Signed-off-by: Tony Truong <quic_truong@quicinc.com>
Signed-off-by: Vishnu Santhosh <quic_vishsant@quicinc.com>
Having setup irq to only signal the local side is ready limits remote
side ability to make decisions for additional use case such as remove
and reboot. Expand setup irq support by adding a state machine for the
local side. This provides the remote side additional knowledge for each
setup irq.
Change-Id: I8b2f83c1fe508cf4af8de304268d5b50a98a73d4
Signed-off-by: Tony Truong <quic_truong@quicinc.com>
Signed-off-by: Vishnu Santhosh <quic_vishsant@quicinc.com>