Commit Graph

44535 Commits

Author SHA1 Message Date
Suman Tatiraju
0123d183c4 msm: kgsl: make kgsl msm_bus votes more readable
Change-Id: Ia8de770d0891a078d9b2dc16b8ce541a4820b003
Signed-off-by: Suman Tatiraju <sumant@codeaurora.org>
2011-10-13 14:46:38 -07:00
Linux Build Service Account
d7cb92f929 Merge "diag: Add UART support" into msm-3.0 2011-10-12 19:55:56 -07:00
Laura Abbott
abcb6f740e gpu: ion: Add cache flushing APIs
Add ioctl to support flushing the caches of ion
buffers from userspace.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-11 09:59:30 -07:00
Jay Chokshi
8994e39bcd leds-pm8xxx: Pass LED flags from board file
Instead of hard coding the flag into led driver, pass it
from board file.
While at it, re-factor the code to separate led upstream
core data with board specific data.

Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>

Conflicts:

	drivers/mfd/pm8921-core.c
2011-10-11 09:59:29 -07:00
Laura Abbott
354120303a gpu: ion: Add IS_CACHED macro
Add a proper IS_CACHED macro for detecting whether or not
flags indicated a cached mapping.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-11 09:59:25 -07:00
Shalabh Jain
69890aa09a diag: Add UART support
DIAG traffic has been supported over USB and SD card. This
change adds capability to route DIAG traffic over UART.

Change-Id: I0d6732fcbb19950700218140d581b5759e676b74
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
2011-10-10 13:21:41 -07:00
Stepan Moskovchenko
93d79ecd11 ks8851: Add GPIO configuration platform data
Add platform data for the KS8851 SPI Ethernet device to
enable proper GPIO configuration for the reset and
interrupt pins.

Change-Id: I79adae4628f38a2ca5bc17825258c41ab5e1623d
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-06 09:27:56 -07:00
Jay Chokshi
4acbdd5c37 mfd: pm8xxx-pwm: add two APIs
These new APIs allow a driver to specify its PWM period,
and raw PWM values separately using chip specific
parameters.

Change-Id: I3e9860f30a50d4f3d9c556133761d51858d2a2e3
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2011-10-06 09:27:50 -07:00
Patrick Lai
cf999117fc ASoC: msm: Move ADM management out of QDSP6 CPU driver
Audio hardware path can be started not only for audio playback/capture
but also voice call. ADM COPP is created through Q6ADM driver
when AFE port is started. For voice call use case, creating
ADM COPP in DSP wastes unnecessary memory resource. To create
ADM COPP only for audio playback/capture case, management logic
is moved to pcm routing driver which has information about session
ID of MultiMedia streams and state of audio back-ends. With this
information, pcm routing driver decides to start/stop ADM COPP.

Signed-off-by: Patrick Lai <plai@codeaurora.org>
2011-10-05 10:37:23 -07:00
Abhijeet Dharmapurikar
0f0242353f power: pm8921-charger: config cold/hot threshold
Pmic 8921, has configurable hot and cold battery thresholds as
percent of VREF_THERM. Provide means to configure these via
platform data.

One has to set the config values in the charger platform data defined
in the board file.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-05 10:36:45 -07:00
Yonggui Mao
c0055a1e92 Camera: add special effect of emboss, sketch and neon
Signed-off-by: Yonggui Mao <yongguim@codeaurora.org>
2011-10-05 10:35:54 -07:00
Abhijeet Dharmapurikar
fad7235d01 power: pm8921-bms: calculate real_fcc
real_fcc is the remaining capacity in the battery when the charger
driver indicates that the battery is fully charged. This value needs
to be calculated when charging ends with a fully charged battery.

The userspace can read this value via module parameter and preserve it
between restarts.

The real reason for calculating this is to indicate how much the battery
capacity has dropped w.r.t  the profiled battery data use this deviation
in calculations.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-05 10:35:51 -07:00
Kiran Kumar H N
5e08d77840 camera: Store the data offsets for each planes.
- When the user queues a buffer, store the data offset
  along with the address offset which is already stored.
  data offset indicates the offset of the data in the
  buffer.
- Use this offset when the physical address of the
  buffer is configured to VFE.
- Depending on the number of planes present in the
  buffer, store either the y, cbr offset or the
  offset of each plane.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2011-10-05 10:27:30 -07:00
Shubhraprakash Das
767fdda6e1 msm: kgsl: Introduce Iommu Code
kgsl now supports the use of 2 types of MMU. One is
the GPU's internal MMU and the other is IOMMU. Both
MMU cannot be active at the same time. The MMU type
can be selected at compile time via config option.
A boot command line parameter can be used to override
the type of MMU selected at compile time.

Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2011-10-04 17:14:34 -07:00
Brian Gix
fdd3892444 Bluetooth: Add EIR flags to LE Adv data cache
Use the EIR flags to prevent LE pairing attempts to
BR/EDR capable (Dual Mode) devices.

Signed-off-by: Brian Gix <bgix@codeaurora.org>
2011-10-04 17:14:22 -07:00
Siddartha Mohanadoss
77d106ea89 hwmon: pm8921-adc: Add sysfs interface
-Add sysfs interface to read PM8921 HK/XOADC
and thermistor temperature measurements mapped
through MPP's.
-Move PM8921 ADC from directory /drivers/mfd to
/drivers/hwmon for userspace clients to read ADC
through hwmon.

CRs-Fixed: 302365
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>

Conflicts:

	drivers/mfd/Kconfig
2011-10-04 17:14:12 -07:00
Siddartha Mohanadoss
0b9e51735e thermal: tsens: Add support for MDM9615
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2011-10-04 17:13:56 -07:00
Eric Holmberg
f9cfa8ebfa msm: remote_spinlock: Add support for hardware mutexes
Add support for hardware mutexes.

Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2011-10-04 09:50:33 -07:00
Amit Blay
02eff13c45 usb: otg: Add usb_hs_system_clk to OTG driver for MSM9615
This change add usb system clock support to OTG Driver.
System clock is a 60MHZ input clock to the USB ChipIdea core.
This clock is required starting from MDM9615.

This change also removes the enforcement for using a phy_reset_clk
for reseting the PHY. Starting from MDM9615, PHY reset is not implemented.
The core is reset together with the PHY using "usb_hs_clk" signal.

Signed-off-by: Amit Blay <ablay@codeaurora.org>
2011-10-03 16:21:35 -07:00
Sachin Shah
d7e02d4d60 tzcom: Implement abort and cleanup of driver
Add a new IOCTL call to the driver to properly
abort all threads blocked on wait queues. Updated
release call for proper cleanup.

CRs-fixed: 303637, 304152
Signed-off-by: Sachin Shah <sachins@codeaurora.org>
2011-10-03 16:21:33 -07:00
Jay Chokshi
1097519e8b mfd: pm8xxx-irq: Set unique dev id for sys device
Use device id passed from platform data to register
for sysfs.

Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>

Conflicts:

	drivers/mfd/pm8xxx-irq.c
2011-10-03 16:21:25 -07:00
Bhalchandra Gajare
0e795c44c1 ASoC: msm8960: Add support for AUX PCM Interface
Auxiliary PCM Interface is external PCM interface on msm that
can be used instead of internal codec as a way to connect an
external codec to the msm.

Enable support for AUX PCM. Current setting on PCM interface is,
2.048 MHz bit clock, mono stream, 8Khz sample rate, with MSM in
master mode. AUX PCM uses GPIO's to interface with external
codec device.

Adds platform data for cpu dai since cpu dai needs to know
which clock on MSM to use, clock rate to use and other
configuration parameters.

Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2011-10-03 16:21:23 -07:00
Brian Gix
e9ceb522ff Bluetooth: Fix LE Pairing time-out
Timer that was started at beginning of LE Pairing did not correctly
terminate pairing process when it fired, and was not properly cleaned
up on pairing completion.

Signed-off-by: Brian Gix <bgix@codeaurora.org>
2011-10-03 16:21:22 -07:00
Deepa Madiregama
55cbf78935 msm: audio: qdsp6v2: Add decoder unification changes
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
2011-10-03 16:21:12 -07:00
Siddartha Mohanadoss
55208e6c57 thermal: tsens: Add platform information for 9615
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2011-10-03 16:21:12 -07:00
Siddartha Mohanadoss
0f063b8670 mfd: pm8921-adc: Add configure and read from MPP ADC
Support configuring a MPP to pre-defined AMUX6 channel
which is used for dynamic mapping of the MPP-AMUX channel
for clients having multiple MPP's to read ADC.

Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2011-10-03 16:21:08 -07:00
Abhijeet Dharmapurikar
33fe6fb63c power: pm8921-charger: update userspace per update_time milliseconds
The userspace should be updated periodically to update it with the
charging progress.

Create a delayed_work and schedule it every update_time milliseconds
to notify the userspace that power supply changed. The userspace
is then supposed to read the power supply properties and know about
the charging progress.

CRs-Fixed: 305572
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:21:06 -07:00
Abhijeet Dharmapurikar
325bdc9937 power: pm8921-bms: report FCC
Since the BMS can calculate FCC based on the charge cycles and age, use it
to report ENERGY_FULL property in the power supply framework.

CRs-Fixed: 304029
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:21:05 -07:00
Sagar Dharia
33f34449d2 slimbus: Add clock pause support.
Clock pause message informs all devices on the bus that the active
manager having framer device pause the bus. This allows stopping the
clock to conserve power.
Clock is paused only if there are no active data channels on the bus
and no response is pending for any READ message.
Slimbus framework wakes up the controller using a wakeup function
pointer. Controller should then program the active framer to be out of
clock pause.

Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
2011-10-03 16:20:58 -07:00
Mohan Pallaka
73787fae48 misc: isa1200: Add regulator support
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-03 16:20:56 -07:00
Abhijeet Dharmapurikar
6d565fdf7a msm: restart: Handle reset interrupt from pmic
The reset interrupt in the pmic indicates the pmic will shutdown
the msm in few seconds - it does so by lowering the reset_n line
to the msm.

When this interrupt is triggered it is required that no more ssbi
transactions are initiated and the msm should cleanup and prepare
for the impending shutdown. There is no need to lower ps_hold in
this case as the pmic will shutdown the msm regardless.

Also since we don't want any ssbi transactions, force shutdown
nonboot cpus. This will prevent ssbi transactions to the pmic for
lower/raising nonboot cpu's voltages as they enter/exit idle states.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:20:55 -07:00
Sriranjan Srikantam
5285a21f33 ASoC: msm8960: Enable soft volume and soft pause features
Add support for soft volume and soft pause commands and
enable the features to avoid glitch or pop during volume
change and pause-resume sequence

Signed-off-by: Sriranjan Srikantam <cssrika@codeaurora.org>
2011-10-03 16:20:51 -07:00
Srinivasa Rao Uppala
4e38bfc56c radio: tavarua: Added place holder for notch filter ioctl
This patch adds place holder for notch filter, to keep
the driver compatible with the framework changes made for IRIS

CRs-fixed: 306856
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:20:46 -07:00
Lucille Sylvester
20ec38a9ae msm: idle_stats: Make idle_stats_device.h userspace accessable
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
2011-10-03 16:20:28 -07:00
Abhijeet Dharmapurikar
e922bbba5c power: pm8921-bms: use battery data based on battery id
Currently the battery data is passed via the board file. Instead
read the battery id and choose the appropriate battery data to use.

CRs-Fixed: 304376
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:20:20 -07:00
Mingcheng Zhu
8e9f99e622 msm: add video processing engine (VPE) as a V4L2 subdev in 8960.
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 16:20:18 -07:00
Amir Samuelov
9f9ece38d5 hwmon: msm_adc: Add stub function
Add stub function to allow client's code to avoid ifdef.

Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2011-10-03 16:20:16 -07:00
Siddartha Mohanadoss
a0f5121b96 mfd: pm8921-adc: Fix scaling and PM8921 MPP ADC read
-Modify the existing PM8921 ADC read api to include
reading ADC mapped to devices on the MPP.
-Modify scaling function to support XOTHERM and PATHERM
on PM8921.
-Remove post scaling functions for external charger
as its not used on PM8921.

CRs-Fixed: 307164
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2011-10-03 16:20:09 -07:00
David Collins
b909f239f1 mfd: pm8018: Add support for PM8018 regulators into PM8018 core
Signed-off-by: David Collins <collinsd@codeaurora.org>
2011-10-03 16:20:06 -07:00
David Collins
34dd32ce2c regulator: pm8018-regulator: Add regulator driver for PM8018
Create a regulator driver to control all regulators on the Qualcomm
PM8018 PMIC chip.  This chip contains several different types of
regulators with a wide range of abilities and voltage ranges.

Five different regulator types are available on the PM8018.

PLDO     - PMOS low drop out linear regulator
NLDO     - NMOS low drop out linear regulator
NLDO1200 - 1.2A NMOS LDO (different control structure than other LDOs)
SMPS     - switched-mode power supply
VS       - voltage switch

The driver interfaces with the PMIC using Qualcomm's SSBI bus.
Calls to this bus are abstracted through the pm8xxx_readb/writeb API.

Signed-off-by: David Collins <collinsd@codeaurora.org>
2011-10-03 16:20:05 -07:00
David Collins
fdefdf941f mfd: pm8018: Add PMIC 8018 core driver
Add support for the Qualcomm PM8018 PMIC chip. The core driver
will communicate with the PMIC chip via the MSM SSBI bus.

Initial support is provided for: IRQ, GPIO, MPP, RTC, Power Key,
Misc, and Debug

Signed-off-by: David Collins <collinsd@codeaurora.org>
2011-10-03 16:20:04 -07:00
Srinivasa Rao Uppala
3c7a8eb9d8 radio: iris: Added missing radio Events & IOCTLs.
Added support for events rds availability, service availability,
alternate frequency list and RDS group complete.

Added IOCTLs for search on, radio state, search Program Type,
search Program Identification, alternate frequency jump,
stop Program Service name transmission and stop radio text transmission.

CRs-fixed: 307369
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:20:00 -07:00
Laxminath Kasam
32657ec8c4 ASoC: msm8960: Initial commit for ALSA Audio RT Proxy Driver.
To support the RTPorts Playback and Capture,new platform
driver msm-pcm-afe is added. Two FE's each for playback
and capture are added. Four BE's are added - two for each
port acting as playback and capture. Corresponding mixer
controls are also updated.

Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2011-10-03 16:19:58 -07:00
Sreesudhan Ramakrish Ramkumar
5f4b344ef8 msm: camera: Get info changes for unified actuator
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
2011-10-03 16:19:57 -07:00
Sreesudhan Ramakrish Ramkumar
a4b5f30e62 msm: camera: Actuator changes for 8960
1) Added actuator framework with common functions abstracted out
2) Added actuator as a sub device in media controller
3) coupled sensor with its specific actuator in board file
4) Added new actuator control structure and new enum for communication
between user space and kernel space
5) Added common logging module with different logging levels

Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>

Conflicts:

	arch/arm/configs/msm8960_defconfig
2011-10-03 16:19:57 -07:00
Siddartha Mohanadoss
acd24260ac thermal: msm: Update TSENS for 8960_V2
TSENS V2 supports reading from multiple sensors and
notifiying clients when the lower/upper thresholds
are reached. The lower/upper threshold use the last
sensors threshold that are set through the thermal sysfs.
TSENS HW is enabled only when the main sensor is requested.
The TSENS block is disabled if the main senors is disabled
irrespective of any other sensors that are being enabled.
When TSENS receives notification on temperature threshold
being reached, it checks and sends events to the sensors
that are enabled and whose thresholds are above the upper
or below the lower thresholds set in the tsens threshold
register.

Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2011-10-03 16:19:52 -07:00
Brian Gix
2e2f50d997 Bluetooth: Add LE/BR flag to Connect notification
When remote device is connected outside the control of BlueZ, it
needs to be informed of whether the new connection is LE or BR/EDR.

Signed-off-by: Brian Gix <bgix@codeaurora.org>
2011-10-03 16:19:44 -07:00
Iiro Valkonen
4ac053cdb9 Input: atmel_mxt_ts - Make wait-after-reset peroid compatible with all chips
The delay before the chip can be accessed after reset varies between different
chips in maXTouch family. Waiting for 200ms and then monitoring the CHG (chip
is ready when the line is low) is guaranteed to work with all chips.

v4: Adjust delay depending on the family ID of the chip. Also add a readback
    of command register after backup is issued, to make sure we are not
proceeding
    too fast there.
v3: Add a check for NULL read_chg() function, and add the read_chg() to platform
    files using this driver (currently only mach-goni.c)
v2: At Dmitry's suggestion, add a timeout so we are not stuck looping
    endlessly in case the CHG is not going low.

Signed-off-by: Iiro Valkonen <iiro.valkonen@atmel.com>
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-03 16:19:35 -07:00
Neema Shetty
feea77447c ASoC: msm: Change voice routing controls.
Change voice routing controls to contain back-end DAI and front-end
DAI information.

CRs-fixed: 304889
Signed-off-by: Neema Shetty <nshetty@codeaurora.org>
2011-10-03 16:19:34 -07:00
Srinivasa Rao Uppala
0f4098f5b4 radio: iris: Added support for FTM commands
This patch adds support for  RDS group counters,
Set HLsi and Set notch filter FTM commands.

Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:19:33 -07:00