Commit Graph

256534 Commits

Author SHA1 Message Date
Pavankumar Kondeti
b7f53dc2da USB: gadget: Remove spoof disconnect workaround in ci13xxx_msm
The spoof disconnect workaround puts PHY in non-driving mode after
pull-up is disabled.  Some times pull-up is not getting enabled when
PHY is in non-driving mode.  As this workaround is not applicable for
28-nm PHY, remove it.

CRs-Fixed: 302394
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2011-10-03 16:16:16 -07:00
Kevin Chan
2d31d27a3a msm: camera: Add new function to msm_camera_i2c
Add new function to handle device settings with varying data length.
Sensor vendors usually give us settings with consistent data length,
etc. group of byte or groups or word.
This new structure and function will handle cases when the data length
changes often.

Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2011-10-03 16:16:15 -07:00
Stepan Moskovchenko
70dc7cfdae msm: socinfo: Add support for detecting Krait v1
Add a function to query whether the system is running on an
early sample of the Krait processor.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-03 16:16:15 -07:00
Stepan Moskovchenko
eff783a019 msm: socinfo: Move read_msm_cpu_type into socinfo.c
Since socinfo.c is now built on all targets, it is safe to
uninline this function and move it into socinfo.c.
Something this big should not be inlined, anyway.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-03 16:16:14 -07:00
Ankit Premrajka
f94bcc6852 msm: camera: add config identifier to control command structure.
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2011-10-03 16:16:14 -07:00
Lucille Sylvester
611d0d9e5b msm: Add idle_stats_device infrastructure
Add a core infrastructure for transmitting idle stats to user
space for use by other devices in the system such as the GPU.

Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
2011-10-03 16:16:13 -07:00
Mona Hossain
d0c032ba69 crypto: Fix memory allocated for ignoring data
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
2011-10-03 16:16:12 -07:00
Shuzhen Wang
ce65086d12 camera: Export msm_isp.h to user space.
The header would hold command IDs and ISP message IDs,
which can be used by user space code.

Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
2011-10-03 16:16:12 -07:00
Vikram Mulukutla
a00149c36c acpuclock-8960: Add initial support for the APQ8064
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2011-10-03 16:16:11 -07:00
Willie Ruan
a39d1d4a48 leds: pm8xxx: fix issues in pm8xxx_led_config
LED mode set through pm8xxx_led_config API should be forced, not
OR'ed with the old value. For manual mode the brightness setting
should be done by LED trigger, not being turned on by default.

Signed-off-by: Willie Ruan <wruan@codeaurora.org>
2011-10-03 16:16:10 -07:00
Rohit Vaswani
e4763a14f1 arm: configs: Change fsm9xxx default timer
Default timer is changed from GP_TIMER to DG_TIMER

Acked-by: Kaushik Sikdar <ksikdar@qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2011-10-03 16:16:09 -07:00
Abhijeet Dharmapurikar
8676ba9056 msm: irqs: increase the number of interrupts
On 8960 and 8064 targets, the version of gic used supports
a total of 288 interrupts (16 SGI 16 PPI and 256 SPI).

Fix the NR_MSM_IRQS to reflect this increase.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:16:09 -07:00
Bradley Rubin
572c3b4884 ASoC: Create signed 8-bit volume control register
ALSA currently supports a 16-bit register which contains
two 8-bit two's complement gain values.

This patch modifies the same callback functions as the
above register type to support an 8-bit two's complement
gain register.

Signed-off-by: Brad Rubin <brubin@codeaurora.org>
2011-10-03 16:16:08 -07:00
Siddartha Mohanadoss
8ba5181216 mfd: pm8921-adc: Fix kmemleak in probe
Remove kmem allocation for adc channel list and use
the data through the platform data.

Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2011-10-03 16:16:08 -07:00
Nagamalleswararao Ganji
0b8dbd0db9 msm: board8960: fix for 8960 mdp writeback hang issue
set the correct size to the writeback buffer based on the
panel size to fix the hung issue.

Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2011-10-03 16:16:07 -07:00
Matt Wagantall
e252237237 msm: clock: Rename all UART 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>
2011-10-03 16:16:07 -07:00
Bradley Rubin
688c66a4c2 ASoC: WCD9310: Read microphone voltage twice for button interrupts
Doing two voltage readings when receiving a button press interrupt
ensures that a button was actually pressed.  Sometimes a headset
insertion or removal can trigger a button press detection, and this
patch makes sure that only true button presses cause button events
to be passed up to user space.

Signed-off-by: Brad Rubin <brubin@codeaurora.org>
2011-10-03 16:16:06 -07:00
Bradley Rubin
a7096d05fd ASoC: WCD9310: Use new ANC firmware file format
The new ANC file format allows calibration for multiple
headsets to be present in the same file.  The "ANC Slot"
control selects which slot in the file to use for
calibration.

Signed-off-by: Brad Rubin <brubin@codeaurora.org>
2011-10-03 16:16:05 -07:00
Rajesha Kini
72a8b61b22 audio: qdsp6v2: handle flush and eos in encoder driver
Updated encoder driver to handle the flush and eos.

CRs-fixed: 283541
Signed-off-by: Rajesha Kini <rkini@codeaurora.org>
2011-10-03 16:16:05 -07:00
Stepan Moskovchenko
72029d6bca msm_serial_hs_lite: Enable clocks when adding the port
Enable the GSBI bus clock when calling uart_add_one_port in
the probe function to allow a clean transition from the
early console to the regular console. The TTY layer may try
to configure the port before the early console became
deactivated, which will prematurely disable the clocks and
cause a lockup.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-03 16:16:04 -07:00
Asish Bhattacharya
7706e8ed97 ASoC: msm8960: Add support for dsp FLUSH.
The LPA player needs to issue FLUSH to dsp while doing seek.
Thus EOS needs to be moved from trigger to close api as
it needs to drop buffers to support seek after trigger stop.

Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2011-10-03 16:16:04 -07:00
Jay Chokshi
bc3d98de30 msm: 8064: Enable irq, gpio, and mpp for pm8921
Add platform data for irq, gpio, and mpp

Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2011-10-03 16:16:03 -07:00
pankaj kumar
80d7cb6114 msm: devces-msm7x27a: Fix compilation while L2 PL310 is disabled
Rename msm_cache_init to msm7x27x_cache_init to fix
the compilation when L2 PL310 is disabled.

Signed-off-by: pankaj kumar <pakuma@codeaurora.org>
2011-10-03 16:16:03 -07:00
Nagamalleswararao Ganji
4ef572eb7a defconfig: msm8960: mdp writeback for 8960
enabling the mdp writeback mode for 8960

Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2011-10-03 16:16:02 -07:00
Amy Maloche
b5c67e8d08 board: msm8660: add more delay for hw to stabilize
CRs-fixed: 301474
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-03 16:16:01 -07:00
Zhang Chang Ken
f5a4bbe4a0 input: cy8c_ts: Add support for TMA340 TS controller
This controller uses the same packet format as TMA300

Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org>
2011-10-03 16:16:01 -07:00
Patrick Lai
3043fbaf3c ASoC: wcd9310: Enable platform-specific micbias configuration
WCD9310 has four micbiases and each of them can be programmed to get its
power source from one of 3 available cfilters. Each cfilter can be
programmed to different voltage levels. Essentially, on WCD9310, a user
can have up to three different voltage levels to power various analog
microphones and digital microphones. As it is now, micbias voltage level
of WCD9310 is left to default value. Micbias and cfilter mapping is managed
by codec driver. Different board design can have different micbias
arrangement. Micbias configuration of wcd9310 CODEC for 8960 CDP/MTP/FLUID
is properly defined in this patch.

Signed-off-by: Patrick Lai <plai@codeaurora.org>
2011-10-03 16:16:00 -07:00
Kiran Kandi
ed246a9a91 ASoC: WCD9310: Turn on Line3 and Line4 DAC's for speakers
In Tabla 1.0, negative signal from RX3(connected lineout1 DAC)
and RX5(connected to lineout2 DAC) cannot be sent to lineout3
and lineout4 DAC's respectively. For differential speakers to
work correctly, lineout3 and lineout4 DAC still need to be
turned on even if no audio signal is sent to them.

CRs-Fixed: 298454, 300113
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
2011-10-03 16:16:00 -07:00
Maya Erez
6862b14006 msm: sdio: Handle graceful shutdown
sdio_al is not notified of charm modem shutdown causing failures
in channel communication. Similar to subsystem restart, register
for a shutdown notification and notify sdio_al clients. Register
sdio_al device as a charm device and charm modem device as its
parent.

Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
2011-10-03 16:15:59 -07:00
Sujith Reddy Thumma
f353567a57 board: msm7x27a: Configure SDC2 GPIOs (in sleep state) correctly
SDC2 GPIOs have external pull up through VREG_S3 which is always on
regulator. Configuring SDC2 GPIOs (CLK, CMD, DAT) as PULL_DOWN
during sleep (when wifi is disabled) cause leakage current. Fix this
by configuring them as PULL_UP. This also ensures that the GPIOs
from host side are always active high as per SDIO spec.

Signed-off-by: Sujith Reddy Thumma <sthumma@codeaurora.org>
2011-10-03 16:15:59 -07:00
Sahitya Tummala
8605fcaa4f mmc: msm_sdcc: Fix issue with SDCC runtime suspend/resume framework
Below is the problematic scenario that this patch fixes -

The SDCC host is runtime suspended and the system suspend
has began. Before starting suspend of all devices, the usage
counter is incremented by power management framework. Now, MMC
block device is suspended as part of devices suspend but before
suspend of SDCC host, suspend is aborted because of some other
device. In this case, resume is called for all suspended devices
but the counter is not yet decremented. So when MMC block resume
is called and when it tries to resume the host, it fails. This is
because the current msmsdcc_enable() code resumes only when device
usage counter is 0. This code is now changed to use
pm_runtime_suspended() to determine when to resume the device.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2011-10-03 16:15:58 -07:00
Anji jonnala
2e099a00c7 USB: EHCI: Unlink the pending async queue heads explicitly in ehci_stop
Is is observed that ehci->async->qh_next ptr is not getting freed up
which is causing crash in ehci_mem_cleanup function. As a temporary
workaround unlink the pending queue heads as a part of ehci_stop.

CRs-fixed: 301134

Signed-off-by: Anji jonnala <anjir@codeaurora.org>
2011-10-03 16:15:57 -07:00
Suman Tatiraju
7fe62a3d10 msm: kgsl: add gpu busy stats to sysfs
Signed-off-by: Suman Tatiraju <sumant@codeaurora.org>
2011-10-03 16:15:57 -07:00
Mohan Pallaka
1ea7d8a6ae msm: 8660: Disable ghost touch detection for TMG240
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-03 16:15:56 -07:00
Ananda Kishore
d880c704a9 vdec: 720p: deblocking filter enabled for Divx and XVID
Default deblocking filter is enabled for Divx 4,5,6 and XVID.

Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
2011-10-03 16:15:56 -07:00
Willie Ruan
9ad6d83680 power: pm8921-charger: add POWER_SUPPLY_PROP_ONLINE for USB and AC
Add POWER_SUPPLY_PROP_ONLINE for non battery supply like USB and AC
so that it can be used by power supply driver.

Signed-off-by: Willie Ruan <wruan@codeaurora.org>
2011-10-03 16:15:55 -07:00
Nagamalleswararao Ganji
bea4783bcd msm-fb : display: foot switch control for the mdp driver
adds the support for disable/enable the mdp foot switch at
suspend/resume boundaries

Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2011-10-03 16:15:55 -07:00
Ben Romberger
45b351ce75 msm: audio: qdsp6v2: Change config for RTAC
Change config for real-time audio calibration (RTAC)
since it is used by both 8660 and 8960.

Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2011-10-03 16:15:54 -07:00
Nagamalleswararao Ganji
fd7454aa87 msm: 8960: enabling the GDHS for 8960 display subsystem
enables the GDHS support for display subsystem including the
mdp and rotator

Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2011-10-03 16:15:53 -07:00
Mohan Pallaka
727225f609 input: cyttsp-i2c: Add support for disabling ghost touch detection
Add support to treat ghost touches as normal touches incase firmware
reports all touches as ghost touches.

Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-03 16:15:53 -07:00
Siddartha Mohanadoss
ce1315aabc msm: iomap-8960: Add QFPROM base for TSENS
Add base address for QFPROM to access the calibration data.

Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2011-10-03 16:15:52 -07:00
Zhang Chang Ken
3a8b851453 msm:8060: lcdc nt35582 panel support
Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org>
2011-10-03 16:15:52 -07:00
Peter Lohmann
fab9ae9d9b mfd: wcd9310: Give the slimbus slave time to report present.
Signed-off-by: Peter Lohmann <plohmann@codeaurora.org>
2011-10-03 16:15:51 -07:00
Helen Zeng
44d4d27996 AsoC: msm: qdsp6: Add widevoice support
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
2011-10-03 16:15:51 -07:00
Mayank Rana
ffdf530c31 msm_serial_hs_lite: Correct AUTO RFR Level value
MR1 register (AUTO_RFR_LEVEL) programming value is considered in
Words for UARTDM Core, whereas it is considered in Bytes for UART
Core. Currently MR1 register is programmed for AUTO_RFR_LEVEL value
as 3/4 size of Rx FIFO size i.e. 48 Bytes. For UARTDM Core this
value needs to configure into Words. Hence programme AUTO_RFR_LEVEL
value using MR1 register as 12 instead of 48.

Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2011-10-03 16:15:50 -07:00
David Collins
6ea0dcbf34 msm: rpm-regulator: add a hack to make RPM vreg functions no-ops on 8064
Make rpm_vreg_set_voltage and rpm_vreg_set_frequency no-ops for 8064.
This will allow the acpuclock driver on 8064 to call these functions
before RPM support is present on 8064.

Signed-off-by: David Collins <collinsd@codeaurora.org>
2011-10-03 16:15:49 -07:00
Joel King
4e7ad22720 msm: 8064: Add support for APQ8064 Rumi3
Add support for the APQ8064 Rumi3 machine type. Move the
dmov device initialization out of the common set of devices
initialized for all board configurations, and make it
specific to the sim device, as it does not yet work on the
Rumi3 hardware.

Signed-off-by: Joel King <joelking@codeaurora.org>
2011-10-03 16:15:49 -07:00
Ben Romberger
09e462d3ea msm: audio: qdsp6v2: Increase audio PMEM size by 72K
This increase is needed to support sending calibration
for VOIP and to send Wideband voice calibration for all
supported networks.

Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2011-10-03 16:15:48 -07:00
Vikram Mulukutla
93510c4208 msm: subsystem_fatal: Fix nested disable_irq calls
IRQ enables/disables are nested, therefore n disables
need to be followed by n enables to truly enable
an interrupt.

CRs-Fixed: 299463
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2011-10-03 16:15:48 -07:00
Shalabh Jain
cf5f20e114 diag: Poll SMD control channel for data after USB connects
DIAG uses SMD control channels to transfer packet registration
information from slave processors. While USB is disconnected, under
some scenarios, the SMD data might be left unread. Hence, when USB
gets connected, a special effort has to be made to read any unread
data on SMD control channel. Also each time a registration information
is stored in diag table, the SMD channel needs to be polled once more.

Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2011-10-03 16:15:47 -07:00