Commit Graph

302932 Commits

Author SHA1 Message Date
Carl Vanderlip
daefca8ffc video: msm: Add QSEED Table reading support
Add support to read the tables of QSEED values. When the values of the
QSEED tables are able to be written to, it is beneficial to be able to read
what's there as well.

CRs-Fixed: 380315
Change-Id: I3110721906424f70a12bf5736de7875dec03f4c6
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
2013-02-27 18:17:50 -08:00
Lukas Hänel
9af8806288 mobicore: Create branch that uses interrupt 280
MobiCore TZ to HLOS interrupt is assigned a unique SPI.
Currently it shares the SPI with EBI_ERP and moving
forward this interrupt has to be not shared in order
to allow the enablement of EBI_ERP feature..

Change-Id: Ie1895524471f587dd8dbb3a2061b2b7d842d760b
Signed-off-by: Lukas Hänel <lukas.haenel@gi-de.com>
Signed-off-by: Ramesh Masavarapu <rameshm@codeaurora.org>
2013-02-27 18:17:50 -08:00
Baruch Eruchimovitch
91b65e1b7c msm: ultrasound: support new devices, conflicting with the USF.
Some new TSC drivers advertise themselves by using
ABS_MT_POSITION_* bits instead of ABS_*.
This change supports TSC drivers, using
ABS_MT_POSITION_* and/or ABS_* bits.

Change-Id: I1134c0b25cef3d777896ca225b9214929e909d93
Signed-off-by: Baruch Eruchimovitch <baruche@codeaurora.org>
2013-02-27 18:17:49 -08:00
Kiran Kumar H N
d8c6033b91 msm: camera: Correct the usage of return free buffer API.
When a free buffer is released/returned back from userspace,
mark it as QUEUED instead of UNUSED. This will ensure that the
buffer is put back into circulation.

Change-Id: Ib6fc058ee2f34044446e777a525f81b2ee971c9c
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2013-02-27 18:17:48 -08:00
Laura Abbott
756382365e msm: rtb: Add support for device tree
Add support for setting up RTB via matching in the device tree
in addition to the platform_data driven model. Also add
the corresponding device for 8974 in the device tree.

Change-Id: I76615fc75ff4fe428cab16a4aa161b032e548983
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2013-02-27 18:17:47 -08:00
Shimrit Malichi
c6a9accd04 usb: gadget: Updating mach/msm_hsusb.h
Updating diag include file to avoid using mach/msm_hsusb.h which is
deprecated, and update u_bam to include this file as well.

Change-Id: Ia61accc65eb86fe750c3be6dcb0726e480becdae
Signed-off-by: Shimrit Malichi <smalichi@codeaurora.org>
2013-02-27 18:17:47 -08:00
Ajay Singh Parmar
d7de548423 msm_fb: hdmi: Proper switching of switch device
Switch device used to tell userspace about HDMI connection
needs to be enabled when:
1. HPD connect
2. Authentication successful

And disable when:
1. HPD disconnect
2. Authentication failed

Change-Id: I8d4529fa2335ec1b2dc1196e57e3c8bad7d6b657
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2013-02-27 18:17:46 -08:00
Laura Abbott
4e9674c373 gpu: ion: Add dummy msm_ion header file
The msm specific parts of ion.h are being moved into a new header
file. For now, add a dummy header file to get clients transitioned
over.

Change-Id: Iac039678e1c3f15d87e67aa667f7e9883ca16669
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2013-02-27 18:17:46 -08:00
Huaibin Yang
34e21b3f0c msm_fb: display: switch blt mode on/off without turning off TG
Turning off dtv TG may cause blink. MDP requires h/w idle to change
blt mode, turning off TG can make sure mdp h/w is idle. If turning off
TG is not desired, one way to do is to check busy bits of overlay and
dmae and once they are both idle, the mode can be changed.

CRs-Fixed: 363717
Change-Id: I2817d7751ed04fd9ed144974328c4518c54af3d6
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2013-02-27 18:17:45 -08:00
Joonwoo Park
aa4d497559 defconfig: msm8974: Enable wcd9320 Taiko codec driver
Enable wcd9320 Taiko codec driver for msm8974.

Change-Id: I773af257589c82fe468b7c121cafbf188524f2d2
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2013-02-27 18:17:45 -08:00
Manu Gautam
4dcb1cf9fd USB: msm_otg: Add asynchronous block reset support for USB core
To operate correctly, USB core requires to be reset clearing
any initialization settings performed by other components
e.g. bootloader during bootup.

MSM platforms support two kinds of hardware resets:
1. Conventional synchronous reset where clocks to the
blocks must be ON while issuing the reset, and
2. Asynchronous reset which requires clocks to be OFF.

Driver can determine the supported reset methodology on the
platform based on availability of alt_core_clk.

Change-Id: Ia062818ecbf4b0cec44e55f013b762d3ee51b249
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2013-02-27 18:17:45 -08:00
Gagan Mac
8fb001680a msm: 8960sg: Add topology data for 8960 SG Target
Add the master/slave nodes to support bus scaling on 8960 SG
target.

Change-Id: I97e0e04c4f8780d17ec28b6b658bd4919862ab01
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
2013-02-27 18:17:44 -08:00
Santosh Mardi
83c4dd7d08 ASoC: msm: Update the AFE-PCM RX and TX dai link for mpq8064
In AFE-PCM RX and TX dai links of MPQ8064 machine driver there
was a conflict in codec dai name and codec name, with this ALSA
Framework is not creating the node in /dev/snd/

CRs-Fixed: 377509
Change-Id: I5337b216a3d0a2cdc36292ccdafe3e144e7f1d41
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2013-02-27 18:17:44 -08:00
Pratik Patel
1a2f7220d8 coresight: disable tpiu at init to support older targets
Some targets require tpiu is disabled before other sinks like ETB
get enabled to get proper ETM trace.

Change-Id: Idcacf7b6515fd17c3a49c74a338258f02631f7cc
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-02-27 18:17:44 -08:00
Pratik Patel
fcc2ed9263 coresight: sink switching support for coresight core layer code
This allows users to switch between available trace sinks thus
providing user to choose the best switch for the debug use case.

Change-Id: I0c90396010cfcd9f3ab9d3c6d4c1cc7230632c42
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2013-02-27 18:17:43 -08:00
Gagan Mac
b59b80bdee msm: buspm: Fix the check for buffer-size
Correct the check for buffer size.
Incorrect check was causing writes to the buffer to fail.

Change-Id: I1c1d757ac9856db60eedecddfaabdd267af954b4
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
2013-02-27 18:17:43 -08:00
Sahitya Tummala
ce45bf6b07 mtd: msm_qpic_nand: Initial driver for QPIC based NAND controller
This is an initial driver for the new QPIC based NAND controller(NANDc)
that is introduced in MDM9x25. This driver has been leveraged from the
current driver msm_nand.c and is modified for the new hardware changes
in QPIC NANDc. Addition of SPS/BAM support is one of the major
hardware changes in new controller. It also supports only BCH ECC and
based on the device capabilities either 4 bit or 8 bit BCH ECC will
be used. This driver is based on the device tree architecture.

Change-Id: Ie9f782a796bd7c1506997e8eaa1e797310dc26a0
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2013-02-27 18:17:42 -08:00
Sujit Reddy Thumma
3d40dec379 mmc: msm_sdcc: Add support for card detect, write protect gpios
Add support for SD card insertion/removal detection and
write protect switch detection using gpio numbers passed
through device tree.

Change-Id: I63aed72f38f912b33de4b8eaedf72e52bbaeb4a0
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
2013-02-27 18:17:42 -08:00
Ram Mohan Korukonda
1951c7d62a Revert "Bluetooth: Voting UART clocks in non atomic context."
This reverts commit 2fed6b6f759ebeb4a678f399a192815c5ab136e5.
Bluetooth sleep mechanism is not stable with the new design.

Change-Id: I9fa7e3af5b2668764f5fb335d93a54451568f857
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
2013-02-27 18:17:41 -08:00
Sahitya Tummala
87223b8658 msm: 9625: Add device tree information for NAND
Add device tree information for NAND controller. Also, add
documentation defining bindings for NAND controller and MTD
flash partition layout for NAND devices.

Change-Id: I6eaf949a54a19aacd3249711033563efd7fd90c2
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2013-02-27 18:17:41 -08:00
Subhash Jadavani
a82dc2a68c mmc: core: Attribute the IO wait time properly in mmc_wait_for_req_done()
In mmc_wait_for_req_done() function, change the call wait_for_completion()
to wait_for_compltion_io(). This change makes the kernel account for
wait time as I/O wait and through another configuration, this io wait
is treated as busy which makes the acpu clock to scale up.

Change-Id: Iebdc7b1b22871bf845f10a55e2272816c72d9964
Signed-off-by: Murali Palnati <palnatim@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2013-02-27 18:17:40 -08:00
Sameer Thalappil
b408c27f66 wcnss: cancel any pending APPS votes from coldboot before SSR
APPS vote from coldboot may be still pending when SSR is invoked;
so make sure that the APPS votes from coldboot are cancelled before
SSR votes for these Riva regulators.

Change-Id: I975be7470ce08e941c5846642a9379f23574915b
CRs-fixed: 380434
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2013-02-27 18:17:40 -08:00
Stepan Moskovchenko
515f7c47e1 arm/dt: msm: Add alternate IOMMU clocks on msm8974
Use alternate core clocks on the KGSL and Venus IOMMUs,
updating the device tree and clock table accordingly.

Change-Id: Ie201dbe8af37b54c8f479d4788b54010caaea360
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2013-02-27 18:17:40 -08:00
Anirudh Ghayal
5755c90e06 input: msm_ts: Set input property bit to indicate direct input device
Prop bit is checked in userspace and must be set in driver in order
to be recognized as a direct input device (touchscreen).

Change-Id: I80bf2b9fd390ed58a22a78834f71afe41e3d2776
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2013-02-27 18:17:39 -08:00
Stepan Moskovchenko
22c9f71a24 msm: iommu: Support alternate core clocks
Refactor the IOMMU clock control code to always require a
core clock as well as an interface clock. Add support for
an optional alternate core clock and update device tree
bindings accordingly. Clean up the probe function to remove
needless enabling / disabling of clocks.

Change-Id: I4d744ffabc1e6fb123bacfda324f64408257cb25
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2013-02-27 18:17:39 -08:00
Taniya Das
8627019a66 msm: restart_7k: Move restart code out of pm2.c
We see a kernel panic when we reboot with recovery mode
from the UI. Though kernel prepares to stop the other
cores(cpu_relax), but in some race condition mpdecision kicks
in to wake up(CPU_UP_PREPARE) the other core, before we go
ahead for issuing pcom command from core-0 for restart and this
causes a BUG in stop machine code.

So to resolve this before we issue a PCOM_RESET_CHIP command from
core-0, we must ensure that IRQ and FIQ is disabled and also
map the user pages to 1:1 mapping so as to not have unpredictable
MMU errors or kernel panics.

Moving the code put of pm2.c as this code is more restart specific and
not related to power management code.

CRs-Fixed: 359879
Change-Id: If26fdf3a4dd1fb5ecc4c28859bfd68650ff4e747
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2013-02-27 18:17:39 -08:00
Stepan Moskovchenko
55f5cafc0b msm: socinfo: Add a cpu_is macro for msm8974
Add support for identifying the msm8974 SoC and update the
MIDR fallback table accordingly.

Change-Id: Idc34cac2963776b07ad59c0727bcb49ae42be1ea
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2013-02-27 18:17:38 -08:00
Girish Mahadevan
d413bf5aed msm: defconfig: Enable RPM RBCPR stats
Enable RBCPR driver module to read RBCPR stats from
RPM message RAM.

Change-Id: I394032363f9b2901cd308bf984a9c9fe4e69df27
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
2013-02-27 18:17:38 -08:00
Chandan Uddaraju
e011093a3f msm_fb: Display: Modify DSI controller PHY settings.
Modify Physical layer settings for PHY strength
and regulator to improve the rise/fall time of
the DSI clock waveform.

CRs-Fixed: 363172
Change-Id: I072fe56a7827ce98222271b6a547154dc337fcef
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2013-02-27 18:17:37 -08:00
David Keitel
4206318361 power: smb349: add spin_lock initializer
Using an unitiliazed spinlock can cause a kernel BUG
in the SMB349 driver.

Fix this by initializing the spinlock in the probe
function.

Change-Id: I9ce691398939f7104b71b58505e2d15dc910328c
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2013-02-27 18:17:37 -08:00
Olav Haugan
855eceb393 board: copper: Increase QSECOM heap to 6MB
QSECOM requires a total of 6MB for concurrent
use. The memory is divided between HDCP (3M),
Payready (2M), and QSECOM (1MB).

Increase the QSECOM ION heap from 1MB to 6MB.

Change-Id: I98bef75832e8a774174b1dcd2a18a7d675284ba7
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2013-02-27 18:17:37 -08:00
Shalabh Jain
6939fb2435 diag: Move registration cleanup function to work queue
The peripheral registrations are stored in a table
on apps processor. During SSR, these need to be deleted
and fresh ones are recorded after SSR completes. Currently
this clean up function is called from interrupt context.

This cleanup function works on a shared table, which is
protected by mutexes. Using this mutex in interrupt function
causes bug with spinlocks and generates warnings. Moving this
cleanup to work queue resolves the issue.

However, there might be race condition with this move. A new
registration might come in, while the clean up is still going on
OR yet to begin. Adding a bit mask which tracks the peripheral
undergoing SSR. if new registration is received from this processor
before clean up is completed, the registration packet is dropped.
Also, an error message is printed in kernel to notify of the drop.

Change-Id: I95e143220a3960d4e9459bb9874bab2911be0937
CRs-Fixed: 371866
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2013-02-27 18:17:36 -08:00
Lakshmi Narayana Kalavala
888afe822b msm: camera: Add support for Bayer stats
Add support for Bayer stats

Change-Id: I69b408af91565581c925540bccb04708278bda05
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2013-02-27 18:17:36 -08:00
Joonwoo Park
4ee1c54e81 ASoC: apq8064: Add unsupported headset detection support
The wcd9310 codec driver already can detect and report unsupported headset
plugging.  Create headset jack with unsupported headset mask to be able to
report via sound core.

Change-Id: I0119d01c039362cc7b185f9f3407d78c958bc49a
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2013-02-27 18:17:35 -08:00
Rajkumar Raghupathy
ac9831de89 USB: msm72k_udc: Check if the ep is not disabled before queuing it
Queuing a request on a disabled endpoint during composition switch leads
to prime failure. Hence return -EINVAL if a request is queued on a disabled
endpoint.

Also, in f_mtp, block queuing a request in OUT ep in receive_file_work, if
the device state is STATE_OFFLINE.

Change-Id: I0e706d5280a2460baf6ab05dbf97a09c59b642fb
CRs-Fixed: 378207
Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>
2013-02-27 18:17:35 -08:00
Jeff Ohlstein
abf379131b arm: arch_timer: export function to read physical counter
Since the arch_timer is a system-wide block, other hardware in an SoC
can make use of the counter values. Export a way to read the physical
counter for use by other drivers.

Change-Id: I0bcd95fa4cd7507c41ac608fc9740955d15d4b88
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
2013-02-27 18:17:35 -08:00
Niranjana Vishwanathapura
994e62acbb msm: pcie: Disable secondary bus reset functionality
Setting the 'Secondary Bus Reset' bit in 'Bridge Control' register
of root complex port configuration space is causing the PCIE core to
reset due to hardware limitation. Discard any request to set this bit.

Change-Id: Iacad6ba8e8a49406428bf875901817f3f96fa24d
Signed-off-by: Niranjana Vishwanathapura <nvishwan@codeaurora.org>
2013-02-27 18:17:34 -08:00
Vinay Kalia
78261ed735 msm: vidc: Uses on-chip memory for video codecs
Video driver allocates on-chip memory (OCMEM) and
hands it over to the video hardware for internal usage.
Video encode/decode performance improves with OCMEM.

Change-Id: Ic6e35278db24cedc003aa33d5e3cef52172e2254
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
2013-02-27 18:17:34 -08:00
Syed Rameez Mustafa
667d63af16 msm: 8064: Remove cpu dcvs governor from device list
8064 does not support the msm dcvs governor

Change-Id: I51d44cf7d3339127f86b736e0c9b7c18122830f2
CRs-Fixed: 363761
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2013-02-27 18:17:34 -08:00
Hemant Kumar
1212bea9dd net: usb: Using workqueue as bottom half handler
usbnet driver uses tasklet as bottom half handler. Since tasklet
runs in interrupt context in case of high throughput driver is
spending more time in interrupt context to process rx buffers
this is causing watch dog reset. Hence replace the tasklet with
workqueue to avoid watchdog reset.

CRs-Fixed: 378526
Change-Id: I8eac339e37d734dbaaf7a2e874d3974f562e8680
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2013-02-27 18:17:33 -08:00
Terence Hampson
8fc47f5dd1 msm: mpq8064: Enable separate ioctl call for noise reduction (nr)
NR for VCAP is capable of receiving manual tuning parameters. In
order for the client to pass in these parameters a separate ioctl
was developed.

Change-Id: Ia8d7e8de80ee4fd7ccd2019d30b4457f1000e106
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2013-02-27 18:17:33 -08:00
Lakshmi Narayana Kalavala
9a5340b4d2 msm: camera: Fix memory leak with stats buffers
Buffer unprepare is not done while releasing stats buffers,
hence add support for buf unprepare ioctl

Change-Id: If4fa95c270363d1948b5924c2365785d1427e2f4
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2013-02-27 18:17:32 -08:00
Siddartha Mohanadoss
242200f572 hwmon: qpnp-adc: Add PMIC QPNP VADC Driver
The QPNP VADC driver supports the User Bank Peripheral of
the voltage ADC(VADC).

VADC is a 15 bit ADC that measures signals through the
Main analog multiplexer (AMUX) and PREMUX. The driver
arbitrates the request to issue ADC read requests.

VADC driver includes support for the conversion sequencer.
The conversion sequencer is a HW triggered signal to start
ADC measurement on trigger events for PA ON,
camera flash and TX threshold.

The AMUX supports external pull-ups simultaneously. Clients
can select the appropriate AMUX input channel to measure the
ADC for the intended pull up configuration.

Change-Id: I8886968ccec54ad03334b113b4516d4d200e0da8
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2013-02-27 18:17:32 -08:00
Pavankumar Kondeti
cd99d0ea1d USB: android: Add support for USB Target Function (UASP)
Add UASP function to Android supported functions array.  UASP
function depend on Target core.  Provide empty functions when
Target core is not enabled.

Change-Id: I959f26ebd63e036dae041708d0ad6169213a3cf0
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2013-02-27 18:17:31 -08:00
Pavankumar Kondeti
c3c28c1bef USB: gadget: Fix memory leak in UASP function
The write buffer is allocated twice in bot_send_write_request
function.  Fix this by removing additional memory allocation.

Change-Id: I3253c149c3703621be30d0f84499d6af0aff8bc8
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2013-02-27 18:17:31 -08:00
Kaushal Kumar
f08399a804 msm: acpuclock-7627: Add support of 1.4GHz for 8625
For 8625 2.0 PLL4 is capable to run at 1.4GHz. Add acpuclock
table for the same and also add support to dynamically
re-program the PLL4 assuming 801.6MHz jump is fine from
H/W perspective.

Change-Id: I3712907d4aa3f4c085f874652797e9e7d4203598
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
2013-02-27 18:17:30 -08:00
Stepan Moskovchenko
11ae693535 arm/dt: msm: Refactor IOMMU device tree entries
Move the IOMMU device tree entries into an SoC-independent
file to allow them to be reused across multiple SoCs.

Change-Id: I8b0a3f1e9bd072e321d9bd8a0c4d5a53585e7842
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2013-02-27 18:17:30 -08:00
Stepan Moskovchenko
93c3ce0c5e msm: iommu: Fix MDP context bank interrupts
Update the DTS entries for the MDP IOMMU with the correct
interrupt numbers.

Change-Id: I7cb6128ab5841ca157eb5af2c67b656d1a015ea3
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2013-02-27 18:17:30 -08:00
Stepan Moskovchenko
b48a34da05 iommu/msm: Add TLB sync operations
The hardware requires a TLB sync operation at the end of
each TLB maintenance operation.

Change-Id: I8102253cfc12af530216346efa5bb9760db25352
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2013-02-27 18:17:29 -08:00
Stepan Moskovchenko
376d437a1c msm: iommu: Use the generic label property
Use the label property to specify device labels instead of
a vendor-specific property.

Change-Id: I74f3b57db469781f738f0d52c785d992c1e88efb
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2013-02-27 18:17:29 -08:00