Commit Graph

256614 Commits

Author SHA1 Message Date
Sushmita Susheelendra
41f8fa3306 msm: kgsl: Add CFF user event ioctl to write data to cff dumps
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>
2011-10-03 16:17:02 -07:00
Bharath Ramachandramurthy
e0b5532197 msm: audio: qdsp6v2: Wait indefinitely for subsystems to be loaded.
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>
2011-10-03 16:17:02 -07:00
Adrian Salido-Moreno
33dc7b93d4 msm_fb: display: fix YCrCb planar input format support in mdp
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>
2011-10-03 16:17:01 -07:00
Yaniv Gardi
0e8a5ade33 msm: sdio: creating a debugfs tree of nodes for testing purposes
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>
2011-10-03 16:17:00 -07:00
Praveena Pachipulusu
8b621e4279 input: cyttsp-i2c: Change the permission of firmware sysfs entries
CRs-fixed: 302911
Signed-off-by: Praveena Pachipulusu <pveena@codeaurora.org>
2011-10-03 16:17:00 -07:00
Bhalchandra Gajare
a0101bac77 ASoC: msm8960: Enable physical digital mics 4,5 and 6
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>
2011-10-03 16:16:59 -07:00
Bhalchandra Gajare
7cf018e812 ASoC: WCD9310: Enable digital mic 4,5 and 6 inputs
Enable the codec input lines for digital mic 4,5 and 6.

Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2011-10-03 16:16:59 -07:00
Laura Abbott
e31d133d4c msm: charm: Wake up the external modem when panicking
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>
2011-10-03 16:16:58 -07:00
Rajeshwar Kurapaty
0a0fe6a2a6 vidc: 720p: Handle profile unknown as bitstream error.
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>
2011-10-03 16:16:58 -07:00
Bryan Huntsman
24161a643a Revert "msm: 8960: WCNSS restart module, removed Watchdog bite IRQ"
This reverts commit 895293124ddd122607221e908e99f150bc074c2d.

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2011-10-03 16:16:57 -07:00
Bryan Huntsman
60c9b4b05e Revert "wcnss: Cancel Apps vote for Riva and Iris regulators once Riva is up"
This reverts commit b120278042ddbccac9627186c3f691ff4614372e.

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2011-10-03 16:16:56 -07:00
Abhijeet Dharmapurikar
5caa02c3ff mfd: pm8921-core: print restart reason
log the restart reason in the probe function.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:16:56 -07:00
Neil Leeder
b618ec2b43 msm: build pmu.o for 7x27a
Add pmu support for 7x27a

Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
2011-10-03 16:16:55 -07:00
Wentao Xu
a55500bdd4 msm: dsps: DSPS support for Sub System Restart (SSR)
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>
2011-10-03 16:16:55 -07:00
Matt Wagantall
27663840be msm: acpuclock-8960: Replace socinfo use with cpu_is_krait_v1()
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>
2011-10-03 16:16:54 -07:00
Jeremy Gebben
2f789d14b8 msm: kgsl: stop forcing hw patchid to 0 for 8x60 and 8960
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>
2011-10-03 16:16:54 -07:00
Sushmita Susheelendra
fbb46aabd3 msm: kgsl: Fix ringbuffer command names
The prefix PM4_ was changed to CP_.

Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2011-10-03 16:16:53 -07:00
Mat Martineau
f058a44078 Bluetooth: Revert "Bluetooth: Increase AUTO_OFF timeout for HCI devices"
This reverts commit 24fac10d7e110035f61cf4bd69018adc84f15fc1.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
2011-10-03 16:16:52 -07:00
Neil Leeder
caf114bc5d msm: rename PMU irq for 7xxx
Make the name the same as for other platforms so it can be
used by the common code in pmu.c

Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
2011-10-03 16:16:52 -07:00
Stephen Boyd
973e4bae4b msm: clock-8960: Support QDSS clocks
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 16:16:51 -07:00
Subhash Jadavani
8f13e5b3e4 mmc: msm_sdcc: check MCLK_REG_WR_ACTIVE bit for register write completion
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>
2011-10-03 16:16:51 -07:00
Ankur Nandwani
b7f0284e06 wcnss: Cancel Apps vote for Riva and Iris regulators once Riva is up
Acked-by: Kumar Anand <kanand@qca.qualcomm.com>
Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
2011-10-03 16:16:50 -07:00
Ankur Nandwani
67f29373f6 msm: 8960: WCNSS restart module, removed Watchdog bite IRQ
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>
2011-10-03 16:16:50 -07:00
Matt Wagantall
e1a86060db msm: clock: Use device names to distinguish between ADM clocks
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>
2011-10-03 16:16:49 -07:00
Matt Wagantall
37ce38431e msm: clock: Rename SDC clocks to match new naming convention
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:16:48 -07:00
Matt Wagantall
62cf63ea8e msm: clock: Rename unused GSBI clocks to match new naming convention
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:16:48 -07:00
Abhijeet Dharmapurikar
3405933cf3 msm: board-8960: add parameters for BTM
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>
2011-10-03 16:16:47 -07:00
Abhijeet Dharmapurikar
6fe50a87c3 power: pm8921-charger: api to control input regulation
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>
2011-10-03 16:16:47 -07:00
Abhijeet Dharmapurikar
26cef9c5c9 power: pm8921-charger: api to control trkl charging
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>
2011-10-03 16:16:46 -07:00
Abhijeet Dharmapurikar
86eea30873 power: pm8921-charger: implement temperature control
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>
2011-10-03 16:16:46 -07:00
Siddartha Mohanadoss
93249a9485 mfd: pm8921-adc: Add BTM thermistor table
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>
2011-10-03 16:16:45 -07:00
Rajeshwar Kurapaty
48bc4ee915 vidc: 720p: Memset MPEG-4 recon buffers to black
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>
2011-10-03 16:16:44 -07:00
Ankur Nandwani
8f972e5c91 radio: iris: fix the seek bug during FM TX
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>
2011-10-03 16:16:44 -07:00
Gagan Mac
85c704939f msm: msm_bus: Enable support for multi-tiered requests
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>
2011-10-03 16:16:43 -07:00
Matt Wagantall
ac294855f6 msm: clock: Rename all I2C/SPI clocks to 'core_clk' or "iface_clk"
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
2011-10-03 16:16:43 -07:00
Jeff Hugo
33dbc0052a Revert "msm: bam_dmux: switch to polling on DL"
This reverts commit 54d6f481f288753b653b52dc55e8ca96cb7ad14a.

CRs-Fixed: 302704
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
2011-10-03 16:16:42 -07:00
Bradley Rubin
410383f143 ASoC: WCD9310: Use SOC_SINGLE_S8_TLV for digital gains
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>
2011-10-03 16:16:42 -07:00
Helen Zeng
2095e57b1d ASoc: msm: qdsp6: Change packet size to support PCM WB.
Change the packet size to support PCM WB.

Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
2011-10-03 16:16:41 -07:00
Mat Martineau
c78ee412f7 Bluetooth: Increase AUTO_OFF timeout for HCI devices
The previous timeout (2 seconds) was too short for use with the 8960.
New timeout is 20 seconds.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
2011-10-03 16:16:40 -07:00
Stephen Boyd
cc7242351e msm: pil-8960: Support secure PIL for RIVA
Secure side supports RIVA boot now. Add support for RIVA boot
with secure PIL.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 16:16:40 -07:00
Abhijeet Dharmapurikar
be6bd8ce1b power: pm8921-charger: add support for invalid battery
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>
2011-10-03 16:16:39 -07:00
Abhijeet Dharmapurikar
b24e2c3810 power: pm8921-charger: various apis
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>
2011-10-03 16:16:39 -07:00
Abhijeet Dharmapurikar
485a053da3 power: pm8921-charger: code cleanup
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>
2011-10-03 16:16:38 -07:00
Abhijeet Dharmapurikar
e27d809933 power: pm8921-charger: wakeup upon usb-insertion/removal
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>
2011-10-03 16:16:38 -07:00
Abhijeet Dharmapurikar
71816fde13 power: pm8921-charger: fix termination current
The driver was writing to SAFE current register instead of the
TERM current register.

Fix it.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:16:37 -07:00
Anup Dasari
ad899705e7 defconfig: msm7x27a: Enable DM_CRYPT and CRYPTO_TWOFISH configs
these config options are required to install some of the userspace
applications on sdcard

Signed-off-by: Anup Dasari <adasari@codeaurora.org>
2011-10-03 16:16:36 -07:00
Subhash Jadavani
da8b6881a9 msm: 8960: increase the drive strength for SDC1 DATA & CMD lines
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>
2011-10-03 16:16:36 -07:00
Nagamalleswararao Ganji
2ca30356bd msm_fb: display: Fix DSI PLL/clock warnings
CRs-Fixed: 300073
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2011-10-03 16:16:35 -07:00
Angshuman Sarkar
7ee0dca520 msm: smd: add spinlock to smem_get_entry
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>
2011-10-03 16:16:35 -07:00
Sahitya Tummala
d9df327068 mmc: changes to get SDCC work with multi-target binary for 8960 and 8064
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2011-10-03 16:16:34 -07:00