Commit Graph

25341 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
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
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
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
1f52c4141c power: pm8921-charger: add enable/disable api
Add api to enable/disable battery charging. This api will help
start/stop current flowing in the battery for charging purposes, but
it does not affect the current the device draws from a charger source.

CRs-Fixed: 300786
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:16:29 -07:00
Terence Hampson
7f7de4f8f8 8060: wlan: Enable wlan on dragonboard
Different values for pin_controlled need for dragonboard

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2011-10-03 16:16:28 -07:00
Jeremy Gebben
a7423e433e msm: kgsl: cffdump syncmem ioctl
This ioctl is needed to track memory writes done from userspace
so that this data is correctly captured in the dump.

Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2011-10-03 16:16:26 -07:00
Chuanxiao Dong
72407e986c mmc: remove MMC bus legacy suspend/resume method
MMC bus suspend/resume was using legacy method. In system entering
S3 patch, the suspend/resume function cannot be called since MMC
bus also implemented the new suspend/resume method (dev_pm_ops struct).
So if dev_pm_ops is defined but .suspend/.resume callbacks not implemented,
mmc_queue will not be suspended/resumed.

This patch will remove the legacy suspend/resume method and change to
use the new method totally.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Sujith Reddy Thumma <sthumma@codeaurora.org>
2011-10-03 16:16:21 -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
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
Terence Hampson
1316308eb3 msm_charger: Allow parameters to select default charger type
Added method to msm_charger to allow programming of max source
current. Created struct for platform data to be passed into
pmic8058_charger

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2011-10-03 16:15:46 -07:00
Jordan Crouse
8c78b13c97 lib: Add debugfs file for tracking memory allocations
Add caller information to memory allocation calls and
create /sys/kernel/debug/mempool/map to show the current set of
allocations across all memory pools.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2011-10-03 16:15:37 -07:00
Matt Wagantall
ef391acc67 msm: rotator: Don't control rot_axi_clk explicitly
It is now controlled implicitly along with the rotator core clock
for all SoCs.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:15:27 -07:00
Anirudh Ghayal
a498e4d825 input: atmel-mxt-ts: Add regulator support and init. callbacks
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 16:15:24 -07:00
Ben Romberger
974a40d3c1 msm: audio: qdsp6v2: Change RTAC to use topology
This changes real-time audio calibration (RTAC) to use
topology ID's instead of device ID's.

Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2011-10-03 16:15:21 -07:00
Neema Shetty
5b3641da98 msm: audio: qdsp6v2: Add PCM-WB support for VoIP.
CRs-fixed: 297579
Signed-off-by: Neema Shetty <nshetty@codeaurora.org>
2011-10-03 16:15:04 -07:00
Bradley Rubin
6619d165cc Kbuild: Export Tabla register macro header file to user space
Gives audio acdb utility library access to Tabla register macros

Signed-off-by: Brad Rubin <brubin@codeaurora.org>
2011-10-03 16:14:59 -07:00
Ankur Nandwani
b0039b0384 wcnss: New mechanism to indicate external 48MHz XO option
Platform data is added to the WCNSS platform device to indicate if the
board containing the WCNSS device is configured with an external 48MHz
XO.  In addition a module param is added to the WCNSS driver to allow
the platform data to be overridden.

CRs-Fixed: 288847
Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
Acked-by: Jeff Johnson <jjohnson@qca.qualcomm.com>
2011-10-03 16:14:53 -07:00
Abhijeet Dharmapurikar
76d4db9366 power: pm8921-bms: Add calibration for hkadc
The output of hkadc calibration steps are voltages measured at
0.625V and 1.25V.  We use these to adjust the vbatt readings.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:14:50 -07:00
Abhijeet Dharmapurikar
f734c67fa1 power: pmic8058-charger: api to get fsm state
Implement an api to return the pmic internal charging state.

Now that we have a enum to define the states, replace the hard-coded
state numbers to enum values.

CRs-Fixed: 299629
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:14:33 -07:00
Willie Ruan
368db79940 misc: pm8058-pwm: add two APIs
These two new APIs allow a driver to specify its PWM period
and duty cycle separately using PM8058 chip specific parameters
or raw values. The API to program a duty cycle uses hardware
module's LUT (LookUpTable) to output PWM value, which can be
used to alleviate potential glitches using direct writing to
PWM register.

Signed-off-by: Willie Ruan <wruan@codeaurora.org>
2011-10-03 16:14:26 -07:00
Willie Ruan
d3337ed9e3 misc: pm8058-pwm: split pw8058_pwm_config to smaller structs
A big struct of pw8058_pwm_config is not easy to manage. Split it
to smaller structs and make the period struct public.

Signed-off-by: Willie Ruan <wruan@codeaurora.org>
2011-10-03 16:14:25 -07:00
Mona Hossain
5c8ea1f266 crypto: Clean up header file inclusion and location
- Create a flat directory structure for hw crypto modules
  that includes all source and all header files.
- Remove msm/inc directory
- Relocate qcedev.h header file to include/linux

Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
2011-10-03 16:14:07 -07:00
Jay Chokshi
12e49bfea7 pm8xxx-led: Add API to configure pm8xxx LEDs
Add pm8xxx_led_configure API. It takes LED Id, mode,
and maximum current to be set.
Moreover,
1) Convert current values to actual current level using
   appropriate LED current factor.
2) Check brightness values against acceptable
   limits.

Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2011-10-03 10:28:59 -07:00
Willie Ruan
6a3c91408d mfd: pmic8058: add pm8058_stay_on API
PMIC stay-on feature allows PMIC to ignore MSM PS_HOLD=low
signal so that some special functions like debugging could be
performed.

This feature should not be used in any product release.

Signed-off-by: Willie Ruan <wruan@codeaurora.org>
2011-10-03 10:28:53 -07:00
Swaminathan Sathappan
150f788698 msm: audio: qdsp6v2: Add format type adif in aac driver
Signed-off-by: Swaminathan Sathappan <Swami@codeaurora.org>
2011-10-03 10:28:53 -07:00
Maheshwar Ajja
1d053f856b vidc: 720p: Add IDR Frame type support for H264 format
Read IDR frame type from 720p core register set and
propagate it to user space using new IDR frame type
enumeration added in api header file. The IDR frame
type info is used in SYNCFRAME logic for H264 format
in userspace.

CRs-Fixed: 296738
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
2011-10-03 10:28:44 -07:00
Bradley Rubin
4283a4c56a ASoC: WCD9310: Fixes issues with ANC
ANC register writes were improperly packed into
integers. ANC register writes were not correctly
performed, as the mask was incorrectly applied.

Signed-off-by: Brad Rubin <brubin@codeaurora.org>
2011-10-03 10:28:20 -07:00
Anirudh Ghayal
6804c742a1 mfd: pm8921: Add cell data for pm8921 vibrator
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 10:28:13 -07:00
Anirudh Ghayal
fcfbea6273 drivers: misc: Add pm8xxx based vibrator driver
This driver uses the timed output framework to
support the vibrator functionality.

Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-10-03 10:28:13 -07:00
Abhijeet Dharmapurikar
e0c3e5f39e power: pm8921-charger: implement CURRENT_NOW property
The pm8921 bms driver can provide instantaneous current. Use the
current now property of the power_supply class to expose this
feature.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 10:27:44 -07:00
Gopikrishnaiah Anandan
248eac2b15 vidc: vdec: Report dropped field for interlace clips.
For field based interlace clips, video core will generate
an error when one of field is missing in bitstream.
Driver will report this to upper layer, so that it can
take appropriate action.

CRs-fixed: 290659
Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org>
2011-10-03 10:27:41 -07:00
Karthikeyan Ramasubramanian
cc450c9f1c msm: ipc: Update server lookup to multiple compatible services
IPC Router looks up all compatible services during the server
lookup using the compatibility mask provided by the clients.

Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2011-10-03 10:27:39 -07:00
Gopikrishnaiah Anandan
746d9ab0da vidc: vdec: Report bitstream errors to driver client.
When video core generates recoverable bitstream errors,
driver will report them to upper layer.

CRs-fixed: 290659
Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org>
2011-10-03 10:27:29 -07:00
Sagar Dharia
98a7ecb14c slimbus: Support ability to specify maximum and minimum clock gears
Slimbus can run in clock gears 1 through 10 per spec. Scheduling
algorithm tries to find the optimum clock gear depending on bandwidth
usage for messaging and active data channels.
However, not all controllers may have the ability to support all the
10 clock gears. This patch provides ability so that scheduling
algorithm will only run the bus in supported slimbus clock gear.
Controllers can specify supported minimum and maximum clock gear
during registration with the framework.

Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
2011-10-03 10:27:10 -07:00
Laura Abbott
1e36a02967 pmem: ensure SMI correctness
Due to hardware constraints, the SMI should not be mapped
in the kernel space when not in use. Unmap the SMI from
the kernel address space when the last allocation is freed.
Vote for bus bandwidth as well while the SMI is allocated.

CRs-Fixed: 281723
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-03 10:27:04 -07:00
Kobi Cohen Arazi
18b04783a0 Add missing header guards in msm_rotator.h
msm_rotator.h was missing define __MSM_ROTATOR_H__

Signed-off-by: Kobi Cohen-Arazi <kobic@codeaurora.org>
2011-10-03 10:27:02 -07:00
Pratik Patel
cfca519f00 Revert "workqueue: add workqueue_empty() api"
This reverts commit bccb069835ef880e437c68a7fed9529c2549605f.

Since the workqueue code deletes the work before executing it,
checking for no work item being currently queued to the workqueue
is not sufficient to guarantee that all the works have finished
execution. Hence, we have moved to using a counter based solution
and so this change is no longer required.

Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2011-10-03 10:26:58 -07:00
David Collins
63e1f9ff17 regulator: pm8921-regulator: Add enable_time platform data entry
Add an enable_time platform data member which can be used to specify
the board dependent enable (rise) time of each regulator.

Signed-off-by: David Collins <collinsd@codeaurora.org>
2011-10-03 10:26:51 -07:00
kuogee hsieh
405dc3051b msm_fb: display: add ioctl for mixer info
Add new ioctl to allow user to query mdp mixer detail configuration.

Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2011-10-03 10:26:42 -07:00
Ben Romberger
c49b85db0b msm: audio: qdsp6v2: Support for RX & TX ADM topology
This adds support to store separate RX & TX topology for
the audio device manager (ADM).

Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2011-10-03 10:26:11 -07:00
Bradley Rubin
229c6a5dc0 ASoC: WCD9310: Add Active Noise Cancellation support
ANC is a feature which reduces noise on the near-end
by pushing anti-noise onto the audio stream heard
by the user.  ANC mixes the anti-noise signal
inside of the WCD9310 codec.

Signed-off-by: Brad Rubin <brubin@codeaurora.org>
2011-10-03 10:26:06 -07:00
Shubhraprakash Das
5cd33b3765 mm: ashmem: Add cache clean and invalidate ioctls for ashmem
CRs-fixed: 291124
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2011-10-03 10:25:50 -07:00
Lucille Sylvester
7f12ebf6a2 msm: kgsl: Remove unused variable w/ unneeded ifdef
This variable/ifdef should have been removed in a prior change.

Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
2011-10-03 10:25:45 -07:00
Abhijeet Dharmapurikar
57390b03ac power: msm_charger: control system power
Some chargers can control their current supply for the system. Provide
facility in the msm_charger to choose which charger supplies system
current. It is guaranteed that start charging will always be called
on a charger that has been previously been asked to provide system
current.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 10:25:43 -07:00
Shubhraprakash Das
79c87bf556 Kbuild: Export ashmem header file to user space
CRs-fixed: 291124
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2011-10-03 09:59:11 -07:00