Commit Graph

44477 Commits

Author SHA1 Message Date
Kevin Chan
36e2bdcdf3 msm: camera: Add camera sensor quarter & full size enum
Add quarter and  full size as a valid resolution.
Both size are always present and used in sensor driver.

Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2011-10-03 16:18:11 -07:00
Jay Chokshi
24fc9b6b90 mfd: 8821: Add support for pm8821 core driver
Add support for the Qualcomm PM8821 PMIC chip. The core driver
will communicate with the PMIC chip via the MSM SSBI bus.

Initial support is provided for: IRQ, MPP, and Debug

Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2011-10-03 16:18:11 -07:00
Prabhakaran Mc
6001a71683 Bluetooth: SAP Authentication changes
SAP profile requires 16 pin length authentication for BT 1.2/2.0
devices as per specification. These changes were present for hciops
pluging, the current changes are for Management operations plugin.

Signed-off-by: Prabhakaran Mc <prabhakaranmc@codeaurora.org>
2011-10-03 16:18:03 -07:00
Willie Ruan
719c676f02 mfd: pm8xxx-pwm: split pm8xxx_pwm_config to smaller structs
A big struct of pm8xxx_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:17:57 -07:00
Swaminathan Sathappan
b0021cd06f msm: audio: qdsp6v2: Enable soft volume command to avoid noise
Add support for soft volume command and enable it to avoid
noise during volume change sequence

CRs-fixed: 304164
Signed-off-by: Swaminathan Sathappan <Swami@codeaurora.org>
2011-10-03 16:17:56 -07:00
Laura Abbott
894fd58ea8 gpu: ion: Add support for cached and uncached mappings
Add explicit support for cached and uncached mappings. Functions
now describe whether mappings will be cached or uncached.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-03 16:17:38 -07:00
Ujwal Patel
edcbdcced5 msm: camera: Lens rolloff changes for MSM8960.
MSM8960v1 has mesh based lens rolloff while MSM8960v2 has
PCA based lens rolloff. Also starting from MSM8960v2 and
newer chipsets have double buffered lens rolloff. So adding
the run-time lens rolloff update, new config for PCA lens
rolloff and run-time selection of Mesh or PCA lens rolloff.

Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
2011-10-03 16:17:36 -07:00
Kiran Kumar H N
ceea762f4b msm: camera: Support for Multi planar image formats.
Add support for multi-planar image formats. This
allows the luma and chroma planes of the image to
reside in different memory locations.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2011-10-03 16:17:31 -07:00
Stepan Moskovchenko
0b1345ebd5 drivers: iommu: Add map/unmap range ops
Add IOMMU ops functions to allow mapping and unmapping
whole ranges of address space based on a scatterlist.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-03 16:17:27 -07:00
Terence Hampson
30bb6c435a Revert "8060: wlan: Enable wlan on dragonboard"
This reverts commit e0fb57d5ba0dbbb79e2193c4f7bba377bbf25154

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2011-10-03 16:17:26 -07:00
Maya Spivak
3d321a3570 cpu-hotplug: Add the function 'cpu_hotplug_inprogress'
Allows a caller to detect whether a cpu hotplug operation
is in progress. This is useful for optimizing code paths
based on this condition.

Signed-off-by: Maya Spivak <mspivak@codeaurora.org>
2011-10-03 16:17:26 -07:00
Jay Chokshi
de4cefb009 board: msm8960: Add low current LEDs
Add two low current LEDs with low power
configuration and default trigger

Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2011-10-03 16:17:22 -07:00
Laura Abbott
a2e9363f06 gpu: ion: Add support for carveout heaps on msm targets
Add infrastructure for supporting ion carveout heaps.
The memory type should be specified in the board file using
mach/ion.h. The ion platform driver will be responsible for
allocating the correct memory.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-03 16:17:21 -07:00
Laura Abbott
302911d5ba gpu: ion: Add platform driver for msm ion
Add platform driver for msm specific ion devices

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-03 16:17:20 -07:00
Joel Nider
5578bdb65d tsif: tsif1 initialization bug fix
When using CONFIG_MSM_USE_TSIF1 to enable the second tsif instance,
the device initialization failed because of a errant device ID. The
check has been updated to accept the correct device ID range (0..1)

Signed-off-by: Joel Nider <jnider@codeaurora.org>
2011-10-03 16:17:16 -07:00
Mingcheng Zhu
fe7abc088b mm camera: Add pmem vaddr mapping in HAL
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 16:17:10 -07:00
Mingcheng Zhu
9559ee42d0 msm camera: separate daemon pmem mapping away from video node
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 16:17:10 -07:00
Justin Paupore
1d17cf51b5 regulator: Add regulator_bulk_set_voltage
Add a convenience API to set the voltage on multiple consumers
stored in a struct regulator_bulk_data[] in one API call.

Signed-off-by: Justin Paupore <jpaupore@codeaurora.org>
2011-10-03 16:17:03 -07:00
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
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
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
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
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
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
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
Mingcheng Zhu
270813aace msm: code clean up of the existing improper event implementation
Current implementation has a bug in v4l2 event subscription.

Also it is good to make the kernel to be transparent
to those notification events from daemon to HAL.

Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 16:15:36 -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
Lakshmi Narayana Kalavala
4ab97a9943 msm: camera: Include Minimum Luma in Stats buffer
Include Minimum Luma Pixel value in Stats buffer
for AWB stats process.

Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2011-10-03 16:15:22 -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
Kevin Chan
a980f399e0 msm: camera: Improve unify sensor apis
Added more error checking code
Separate dimension specific register settings into separate structure
Code flow improvements

Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2011-10-03 16:15:10 -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
Ankur Nandwani
d928d54d59 radio: iris: adding support for TX functionality
This patch adds the functionality for FM enable, disable,
tuning, configuration and RDS functionality for FM TX

Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
2011-10-03 16:14:50 -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
Srinivasa Rao Uppala
58273f8b07 radio: iris: Fixed the issue with RDS configuration
This patch configures the rds registers properly

CRs-fixed: 298431
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:14:44 -07:00