Enable bq27xxx_battery modules for neo LE/LA platforms.
Add bq27xxx_battery.ko to modules.list.neo_le and
module.list.neo_la, to enable loading during first
stage init.
Change-Id: I7261b3ed0143100edd20bdf49b8101417da78429
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Currently, snapshot is triggered even during reset path.
Due to this, faultcount is incremented twice for each fault
that involves recovery. Fix this by preventing snapshot
trigger during reset path.
Also, remove setting gmu_fault in gmu_core_fault_snapshot
as it is done inside kgsl_device_snapshot.
Change-Id: I5db423263f4975bb80e68101b568e14a460c1bf5
Signed-off-by: Raviteja Narayanam <quic_ravnar@quicinc.com>
Right now ISR is handling the respective Error bits but it's missing
to handle primary check to enter into the condition before handling
the error.
This change adds the error bit check and then handles those error
interrupts. Also remove GP_IRQ_0_EN which is not of use for i2c.
Change-Id: Ided8b80cf8456cc0452422f587abeac9bcd76563
Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
RC mode is enabled in the RTL build only for previous targets.
That is missed in the anorak target.
Adding that change so that if it missed in the future targets also
driver handling that.
Change-Id: I4b1809477b348dba2134991700905dfa3a28df63
Signed-off-by: Krishna chaitanya chundru <quic_krichai@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>
Enalbe AW2016 LED driver for neo_le platform.
Change-Id: Ide17d287dc1669e3e1471b87686db1cf9d970400
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Update the blink sysfs node name to "breath"
to make sure the userspace code can access it
correctly. Meanwhile, replace msleep() with
usleep_range() for better sleeping delay precision,
and update the device sysfs node permission to 0644.
Change-Id: I0957087747fcf01f5a036f25c44ce83787b071a9
Signed-off-by: Hui Liu <huliu@codeaurora.org>
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Add initial driver for AW2016 LED device
which can support up to 3 LED channels.
Signed-off-by: liweilei <liweilei@awinic.com>
Git-commit: ed6556f262cf7e2086d7728c2f752be4cf94b4d1
Git-repo: https://github.com/awinic-driver/aw2016.git
[huliu@codeaurora.org: move the driver to leds folder
and make corresponding changes in Kconfig and Makefile,
also remove the dtsi config file and modify the code
style.]
Signed-off-by: Hui Liu <huliu@codeaurora.org>
Change-Id: I252ca2710d393ff6dcbb691a2a530433ffbd21e3
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
There can be race where cross vm thread is closing the backend
device while mmio initialization is in place which could
result in NULL pointer dereference issue.
While at it, also handle it at some of similar place where
this race could occur by protecting with appropriate lock.
Change-Id: I6d01071ce452a95e6f5483a6de12c60d3ae41a65
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Sometime remote may try to send packet before receive callback is
assigned. Which can result in dropping of packets.
Acknowledge intent request but queue the intent only when receive
callback assignment is complete.
Change-Id: I6866132ab2fab5e0d0db34085eb85cc41abbd385
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
Create new kgsl debugfs node 'gpu_client_pf' to configure
A6xx/Gen7_UCHE_CLIENT_PF register during runtime. This would
help identify the faulting block ID and make debugging easier.
Change-Id: I35d110eded33ec3d4e5727553f931e0ecc8e65ca
Signed-off-by: Rohan Sethi <quic_rohsethi@quicinc.com>
Add spinlock irqsave and restore variants to intent
lock to avoid race and hogging the cpu in glink send
and receive path.
Change-Id: Id5ae417e3199d23cd405b25c520fa8230a780456
Signed-off-by: Sivaji Boddupilli <quic_boddupil@quicinc.com>
Add the LLCC slice configuration for the scratchpad
memory for neo.
Change-Id: I848d8c6e509378ed823c3d52785d7795203c4339
Signed-off-by: Kaushal Kumar <quic_kaushalk@quicinc.com>
Add register program sequence for LLCC scratchpad activation
and sleep functionality. The write sequence is broadcasted
to each of the scratchpad instances.
Change-Id: I5a86bd14a4dc9854e050435d5ee9baa2f2620023
Signed-off-by: Kaushal Kumar <quic_kaushalk@quicinc.com>
Enable QoS for the master ports on Parrot with
predefined values for priority and urgency.
Change-Id: I6e6581bd3170c1ecdd9abc76ba12cbe3207730b2
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
Add support for wlan chip PON/POFF Sequence via PMIC.
In some platforms the actually PMIC/LDOs that supply
the WLAN chip are driven by another PMIC GPIO.
Change-Id: If670ac2af7931c01de0a87b2daaa87a9adf3aedf
CRs-Fixed: 3207596
Signed-off-by: nakul kachhwaha <quic_nkachhwa@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>