Add the ioctl IOCTL_KGSL_CFF_USER_EVENT to write data to cff dump.
Define a new CFF packet cff_op_user_event for this generic user
event.
Write the surface parameter data packet and verify mem file
packet to cff dumps
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
Wait indefinitely for lpass or modem to be loaded instead of waiting
for a timeout of 5secs. The reason being downloading of images might
take long time.
CRs-fixed: 302002
Signed-off-by: Bharath Ramachandramurthy <bramacha@codeaurora.org>
MDP hardware expects source addresses to be in YCbCr order, in order to
support YCrCb, need to swap chroma planes addresses.
CRs-Fixed: 302408
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
under sys/kernel/debug/sdio_al_test directory there will be all files,
that by writing to them, the spesific test will be executed.
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Digital Mic 4 and 5 are applicable to FLUID, MTP and CDP
whereas Digital Mic 6 is present only on CDP. Add audio map
for these mics assuming FLUID as the default device.
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
In order for the external modem to properly respond to
a panic, it must be out of low power mode. Ensure the
external modem is woken up before leaving the panic
handler.
CRs-Fixed: 303416
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
For corrupted VOL header in the middle of playback
core is returning UNKNOWN PROFILE error and is being
treated as Fatal error and playback is getting aborted.
Now handling it as sequence header fail/recoverable
error.
CRs-Fixed: 302549
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
Register handler for SMSM_RESET notifications and watchdog
interrupts from the DSPS. And add support for reset via
IOCTL from user-mode application.
Signed-off-by: Wentao Xu <wentaox@codeaurora.org>
Some of the code in the hotplug path is really specific to
the Krait v1 processor, not a specific SoC version. Replace
these checks with one that is more precise.
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
This field of the chip_id was forced to 0 because userspace
got confused when it was a different value. Userspace has
been corrected to deal with the correct patch ids.
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
When SW writes to MCI_POWER, MCI_CLK, MCI_CMD and MCI_DATA_CTL
registers, the register write operation is completed after
3HCLK + 2 MCLK clock cycles. SW should access these registers
only after the register write operation is completed.
This synchronization delay can't be ignored, especially in case
the MCLK is slow (e.g. 400 KHz).
Special status bit is defined to wait properly for register
write completion bit MCLK_REG_WR_ACTIVE of MCI_STATUS2 register.
SW should always wait until bit MCLK_REG_WR_ACTIVE of MCI_STATUS2
register is low after writing to one of mentioned above registers
and before accessing them again.
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Watchdog bite interrupt is expected to be a level interrupt.
However when requested for this interrupt, Krait0 has trouble
in power collapse. APSS may be expecting an edge triggered
interrupt.
Acked-by: Sameer Thalappil <sameert@qca.qualcomm.com>
Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
Drivers should now use their device names to distinguish between
clocks of the same type rather than the clock name. This allows
the clock names to be updated to match the new naming convention.
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
The support for battery temperature monitoring is added in the
8921 pmic charger driver. Add parameters in the board file to
configure it.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
The pmic charger can take measures such as reducing charing
current if the input charger voltage falls below certain point.
Create api to use this feature.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Provide mechanism to set trickle, weak voltage and currents via
board file. These settings are used to configure the hardware
controlled auto trickle charging.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
pm8921 has a special hardware to monitor the battery temperature. Use
this block to program the cool and warm thresholds and reduce charging
current accordingly.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
BTM (Battery Temperature Module) thermistor lookup
table is computed based on the resistor divider's
used on the board and the specifications of the
thermistor. Its a function of temperature vs the
ADC code for PM8921 ADC and is used to set the
cool/warm thresholds on the BTM.
CRs-Fixed: 299646
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
In the case of MPEG-4 decoding with clips which have
initial frames starting with P-VOPs, green macroblocks
are seen. This is because of recon buffers used for
MPEG-4 have 0 preset values. The default values are
changed to 0x10 & 0x80 for luma and chroma to get
default color as black.
CRs-Fixed: 303298
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
This patch fixes the issue we could not seek to
another station in the TX mode when RDS was enabled.
Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
Currently only single-tiered requests are forwarded over
gateways. This raises the priority of all masters on a
particular fabric which is undesired.
This patch enables forwarding multi-tiered requests
between fabrics.
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
Drivers should now use their device names to distinguish between
clocks of the same type rather than the clock name.
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Conflicts:
arch/arm/mach-msm/board-qrdc.c
arch/arm/mach-msm/board-qt8660.c
Digital gain registers contain 8-bit two's complement
gain values. This allows gain values to span the entire
range of the gain, including negative dB gains.
Signed-off-by: Brad Rubin <brubin@codeaurora.org>
Use adc reading on the battery_id resistor to check if a battery
is valid. If it is not disable charging.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Implement API's to
- set maximum battery charging current
- disable drawing current from the source
- detect if battery is being charged and which charger source
is charging the battery
- get battery temperature
- detect battery is present
- detect usb is present
- detect dc is present
- set max trickle charging time
- set max auto charging time
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Customers of this driver wanted to log if the USB is over voltage or
under voltage. Add a print for such conditions.
Also change the name of the parameter to the pm_chg_iusbmax_set,
to reflect it is the register value, not the current value.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
When the usb is inserted the usb driver needs to be woken up for
proper enumeration of the device. Mark usb related interrupts
as wakeup interrupts.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
The driver was writing to SAFE current register instead of the
TERM current register.
Fix it.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Currently drive strength of SDC1 DATA & CMD lines are set to 10mA
but sometimes we are seeing the DATA CRC errors when eMMC
(connected to SDC1 slot) is running in DDR mode. To avoid this
DATA CRC errors, this patch increases the drive strength of
DATA and CMD lines to 16mA.
CRs-Fixed: 300095
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Since smem_alloc2 has been exported it is needed that the
shared smem allocation table be protected by a spinlock.
Signed-off-by: Angshuman Sarkar <angshuman@codeaurora.org>