Changing the type from long to u32 of the buffer that is used to
read data from the RNG hardware to reflect the size of the HW
register
Change-Id: I54e8eeae40a66c8033637044e627023150d6c411
Acked-by: Baranidharan Muthukumaran <bmuthuku@qti.qualcomm.com>
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
Resolve race condition between initializing the mutex vs hwrng
register.
Remove the HWRNG FIFO, not required in Software.
Change-Id: I9fa3e5c7e2e9e14feb88a4656dcfab7dec3cbd67
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
This patch adds calls to enable and disable bus bandwidth
for every RNG Read call.
Change-Id: Ia1ac31ffa79a8be2761c243eee9bf87f25422c24
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
PMIC 1.0 hardwares need trimming of 2.2k internal resisitor.
From 2.0 HW trimming is expected to be done at Factory.
So perform trim only for 1.0 HW.
CRs-Fixed: 691749
Change-Id: Ia765962da68ece20770db24b88ce3fde6ecda104
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
Codec clock should be enabled when vifeedback path for speaker
protection is enabled.
Change adds the routing entries to enable the codec clock for
speaker protection vi capture feedback path for 8994.
Change-Id: I8b38c3f42265307a6adc46e7f86df078b47f65fd
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
The stark based wireless charger need not delay drawing current from
DC path. The wireless insertion work was created just to provide the
delay after the pad was detected to be present.
Remove this code.
Change-Id: I952d395fe77c6e07012f491691598b3feac1303f
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Enable the CPR controller to control the APC
voltage.
Change-Id: I68fcb0b220af09ba93157673e8c6d2127f660ad4
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
MSM8939 has CPR for controlling voltage on VDD_APC.
Also, VDD_APC is supplied from external buck regulator.
Update voltage step_size and CPR step_quotient values
according to external buck regulator in use.
Change-Id: I31af6c26a3d1e54da5cc89f1e663d2f85f604cd9
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
This change fixes error message that falsely was printed out
unconditionally.
A fix condition is now added.
Change-Id: I8d70d7f27c7dc122ecda64bea1a51f0044047e5b
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Property name for led flash and torch is modifed, change in
flash driver to support new property, also maintain
backward compatibility.
Change-Id: Id9284aed9b75dca0dbf52491a3fcceb5491a5783
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
On some platforms the SSPHY and HSPHY are actually shared
multi-port PHYs that are paired with separate DWC3 controllers.
In this case suspending into low power mode must not be allowed
unless all instances are suspended. Add reference counting to
keep track of when all ports have suspended before allowing PHY
to be placed in low power mode.
The approaches used for the SS versus the HS PHY are slightly
different, so the reference counting semantics differ as follows:
- The HS PHY instances can be operated more or less indepedently,
as each port has its own set of QSCRATCH registers. The only
exception is the PHY reset, which is managed by the primary
instance. So the reference counter is added as a static global
to keep track across multiple instances of when to allow reset.
- The SS PHY instances can share a single device driver instance,
as only the primary controller QSCRATCH registers are useful.
Both controllers can then share the same PHY device, so reference
counting is added within the instance structure and is used to
prevent powering off the PHY until all instances have called
set_suspend(0).
Change-Id: Ia5a03ff711d60da84bec8bd9086b70c386de0b93
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Add support to report the battery resistance which
is a half float point encoded value as the following
power supply property:
* POWER_SUPPLY_PROP_RESISTANCE
Change-Id: I6630c276579d7166a64c665cdfde99fc1d0d247e
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Add code to periodically update the readings of the following
power supply properties:
* POWER_SUPPLY_PROP_VOLTAGE_NOW
* POWER_SUPPLY_PROP_VOLTAGE_OCV
* POWER_SUPPLY_PROP_TEMP
* POWER_SUPPLY_PROP_CURRENT_NOW
The properties are updated in 30 second increments, unless
a fg_power_get_property happens prior, then a pending work
queue is canceled and the work is scheduled within 1 second
of the request.
Note that if a client abuses the userspace the work sync
will not be able to be rescheduled and thus may lead
to stale cached values.
Change-Id: I3b13c91253f67d6545a2119764098a44a86338bf
Signed-off-by: David Keitel <dkeitel@codeaurora.org>