Commit Graph

264866 Commits

Author SHA1 Message Date
Linux Build Service Account
2f1493e995 Merge "power: smb349: add support for smb349 charger chip" into msm-3.0 2012-03-21 19:01:13 -07:00
Linux Build Service Account
14697881a0 Merge "WLAN: WCN1314: Add card removal notification functionality." into msm-3.0 2012-03-21 19:01:13 -07:00
David Ng
d3b6425d40 msm: board-copper: Add regulator defs for USB peripheral mode
Add HSUSB regulators to copper board file to allow MSM OTG
USB driver to function in peripheral mode.

CRs-Fixed: 345651
Change-Id: I970b102bdfc29aced21635a4ba7ffd76851af088
Signed-off-by: David Ng <dave@codeaurora.org>
2012-03-21 18:42:19 -07:00
Pravin Tamkhane
5c1fa46367 msm_fb: Handle flags for updating AR GC lookup table (LUT)
In current implementation of  area reduced gamma correction (AR-GC)
LUT configuration,flags for read/write AR-GC LUT and enable/disable
AR-GC LUT functionality are not handled even though the IOCTL accepts
these flags as part of arguments. So in current implementation by
default updates the AR-GC LUT which may not be expected always.

So, handle flags for read/write AR-GC LUT and enable/disable updating
area reduced gamma correction (AR GC) functionality

Change-Id: Idd19dd86ec2b8a4b6f22674e522b2f7e06fb63fc
Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org>
2012-03-21 17:55:45 -07:00
David Keitel
acf57c86ca power: pm8921-charger: add adaptive current limiting
Adaptive current limiting is a method which tries to
maximize the available usb current by slowly stepping
up the allowed maximum usb current and verifying that
the connected wall-charger is collapsing.

If the USB driver determines that 1500 mA are available
the starting current on usb is 500 mA slowly stepping up
unless

* VIN_MIN is reached (charger is reaching its capacity)
* USBIN goes low for less than 50 ms (charger collapsed)

If one of the two conditions apply then reduce the target
maximum current to the current maximum usb current and
stop trying to stepping up. If the conditions occur again
decrease both the target and current usb maximum setting.

CRs-Fixed: 339022
Change-Id: Icdb46e6346b6b871d81bbacbffe70831dd62d93c
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2012-03-21 16:46:19 -07:00
Pravin Tamkhane
2251524370 msm_fb: Restructure PCC and AR-GC code for clean implementation
Current PCC & AR-GC implementation uses macros for base
addresses, while other post processing features use
mdp_block2base() function. Also, in current implementation
check for feature supported for MDP version in device is not
performed, currently function which implements AR-GC, is
named as mdp4_pgc_cfg() which is bit misnomer.

This change uses uniform method for calculating block base
using mdp_block2base(). For checking MDP version and
feature supported using mdp_pp_block2pcc() and
mdp_pp_block2argc() functions.

This change also renames mdp4_pgc_cfg() to mdp4_argc_cfg() to
correctly indicate the functionality it implements.

Change-Id: I99a9948c987e3270c246aa44e569f94e35026c2f
Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org>
2012-03-21 16:39:59 -07:00
Chandan Uddaraju
2679f098ca msm: Display: Remove backlight/Panel-reset control from PMIC init function.
Add new API to control the backlight and reset GPIOs for the panel
that are part of PMIC. This is needed to support "continuous Splash
Screen feature".

Add new variable to enable "Continuous Splash Screen feature"
on 8960 chipset.

Change-Id: Id3da8643dc457e225ad7808257582e05b5e92800
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2012-03-21 15:23:51 -07:00
Amar Singhal
97d68a8b69 kernel/main: fix calling sysfs_notify from atomic context
Sysfs_notify takes a mutex and therefore cannot be called from atomic
context like interrupt handler in this case. Use a workqueue to schedule
the work instead.

Change-Id: I0a5230fe379aa51f1065df4af9b27f471aa22440
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
2012-03-21 14:01:08 -07:00
Laura Abbott
350c836392 msm: board-8064: Add RTB support
Add a device corresponding to RTB. This allows for RTB logging
to occur when CONFIG_MSM_RTB is enabled.

Change-Id: I570f4ba10470a96f7cb6bbfe1cc60c975028a9c7
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2012-03-21 13:22:04 -07:00
Linux Build Service Account
f1d53c4302 Merge "msm: kgsl: Capture more interesting GPU buffers from a hang" into msm-3.0 2012-03-21 13:00:50 -07:00
Linux Build Service Account
970c2a00c6 Merge "mfd: pm8018-core: Add PMIC thermal alarm device" into msm-3.0 2012-03-21 13:00:50 -07:00
Linux Build Service Account
b15a1f4f09 Merge "msm: 8930: Add I2C QUP Support for I2C EEPROM" into msm-3.0 2012-03-21 13:00:50 -07:00
Stephen Boyd
b0f1f80039 msm: pil: Allow verify_blob() to be optional
Most pil drivers don't verify blobs until the peripheral is
brought out of reset. The blobs are verified during the
auth_and_reset() callback instead. Make the verify_blob()
callback optional so that drivers don't have to provide dummy
functions.

Change-Id: I183593a224d51db04f3a52a192adddd632ad2306
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2012-03-21 12:45:29 -07:00
Stephen Boyd
20ad810911 msm: pil: Add name and state sysfs nodes
Userspace wants to know when a peripheral is online and if it has
rebooted. Add support for two sysfs nodes, name and state, to
notify userspace when such events happen.

The intent is for userspace to poll() the state node waiting for
the state to change. Once the peripheral goes offline, poll()
should return and userspace knows that the peripheral has booted
again.

Add a name node so that userspace can easily iterate over all
devices in /sys/bus/pil/devices/ to know what peripheral is
in what state.

Change-Id: I33c9dd42419b2e960d58dd2cd04cd82ddc1f5d60
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2012-03-21 12:45:28 -07:00
Praveen Chidambaram
f53ef1b26b msm: msm_dcvs: Add msm_dcvs manager
The msm_dcvs manager works with the DCVS algorithm in TrustZone by
taking regular idle pulse inputs and feeding back the frequency to
the CPU and GPU cores.

Core frequency is effected on the CPU by using a governor for the
CPUFreq framework and on the GPU using the KGSL driver.

Change-Id: Icef8433f96376698fa0c5c3e4e765d5043734080
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
2012-03-21 13:40:43 -06:00
Lena Salman
57d167ec69 usb: gadget: allow multiple gadgets to be built
now that we have the udc class, we can allow
multiple gadget controller drivers to be
compiled as modules. This will allow for
distro-like kernels for embedded devices.

With this patch, I managed to build an x86
kernel with support for many of the controllers
enabled:

CONFIG_USB_FUSB300=m
CONFIG_USB_R8A66597=m
CONFIG_USB_M66592=m
CONFIG_USB_AMD5536UDC=m
CONFIG_USB_CI13XXX_PCI=m
CONFIG_USB_NET2272=m
CONFIG_USB_NET2280=m
CONFIG_USB_GOKU=m
CONFIG_USB_LANGWELL=m
CONFIG_USB_EG20T=m

Also an ARM kernel with support for many controllers:

CONFIG_USB_FUSB300=m
CONFIG_USB_OMAP=m
CONFIG_USB_R8A66597=m
CONFIG_USB_GADGET_MUSB_HDRC=m
CONFIG_USB_M66592=m
CONFIG_USB_NET2272=m
CONFIG_USB_DUMMY_HCD=m

The next step would be to get rid of the
direct access to arch/ and mach/ directories
on some gadget controllers so that we can
build all of them without depending on their
respective ARCH_* symbols.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[esalman@codeaurora.org:
	Fix defconfig files to set the correct configuration, since
	_GADGET_ is removed from the gadget config names in this patch
	rpc_hsusb.c - Remove _GADGET_ from config name
	board-9615.c - Remove _GADGET_ from config name
	board-msm8x60.c - Remove _GADGET_ from config name
	musb/Kconfig - align the define]
Signed-off-by: Lena Salman <esalman@codeaurora.org>
Change-Id: I26758627e49940d14655e2724099283c5e0541e2
2012-03-21 20:25:24 +02:00
Deepak Kotur
ef091c9243 vidc: Migrate to new ION cache ops API.
New cache ops API are provided thru ION interface
migrating the in kernel cache ops to use the
new cache ops API.

Change-Id: Idf152429316cec2eec8417d72160b7bd53488fc4
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
2012-03-21 11:20:48 -07:00
Sagar Dharia
4c5bef3fd3 i2c: qup: Add Device tree support for Qualcomm I2C controller
Device tree support is added for Qualcomm I2C controller and
documentation is provided for required and optional device-node
properties.
Slave devices can be added using register_board_info (boards file),
or by listing them as child of I2C of_node in the device tree.

Change-Id: I10e9b8c7805c49dfe6a51975129f1599bbca84eb
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
2012-03-21 12:00:13 -06:00
Tianyi Gou
d03f4624a2 msm: acpuclock-8960: Increase bus bandwidth for 8930
8930 support larger bus bandwidth therefore update the
request accordingly. This makes the bandwidth requests
made on 8930 consistent with those of 8064.

Change-Id: I922351845705dc88a84b12c84857aaf1dc3a05b9
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
2012-03-21 10:18:13 -07:00
Harsh Vardhan Dwivedi
6b5b94ae27 msm: kgsl: Remove unused debugfs files
istore, sx_debug, cp_debug and mh_debug have been deprecated. Remove
them.

Change-Id: I34364f8987a74e68244015992af39842342d0489
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
2012-03-21 10:31:29 -06:00
David Keitel
c526ddbaeb power: smb349: add support for smb349 charger chip
The SMB349 charger chip allows charge batteries
with a higher current. Add this driver to be able to
control charging from kernel space and deliver charging
information to userspace.

Also add debugfs entries to show current register
settings of SMB349 charger.

Change-Id: Ic88b539304539a49ebe69517d13045cbb18091bf
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2012-03-21 08:30:20 -07:00
Linux Build Service Account
8405e3e79e Merge "msm: pil: Synchronize request_firmware() with suspend" into msm-3.0 2012-03-21 08:17:11 -07:00
Linux Build Service Account
e6e1bce695 Merge "msm: msm_bus: Update Clock APIs" into msm-3.0 2012-03-21 08:17:11 -07:00
Linux Build Service Account
b056cd5873 Merge "msm: clock-local: Set rate when handing off" into msm-3.0 2012-03-21 08:17:11 -07:00
Linux Build Service Account
c05921437d Merge changes I236ceb29,Iab323a79 into msm-3.0
* changes:
  init: apply SCHED_FIFO to kthreadd
  kernel: reduce sleep duration in wait_task_inactive
2012-03-21 08:17:11 -07:00
Linux Build Service Account
c35394a0dd Merge "vidc: Increase size of h264 encoder's mv buffer" into msm-3.0 2012-03-21 08:17:11 -07:00
Linux Build Service Account
43999612c6 Merge "base: genlock: Use a signed long for the result from wait_timeout" into msm-3.0 2012-03-21 08:17:11 -07:00
Linux Build Service Account
064798731c Merge "msm: dsps: Refer the local "timer.h" and not from standard search path" into msm-3.0 2012-03-21 08:17:11 -07:00
Linux Build Service Account
0736d39979 Merge "regulator: stub: Initialize voltage to min_uV constraint" into msm-3.0 2012-03-21 08:17:11 -07:00
Linux Build Service Account
c79065edde Merge "msm: Add EPM I2C GPIO expander" into msm-3.0 2012-03-21 08:17:11 -07:00
Pavan Kumar
89f18c3765 WLAN: WCN1314: Add card removal notification functionality.
Function driver can register for card removal notifications.
Before removing the card, let function driver notify the same
and allow it to cleanup.

Change-Id: I5d423807277bdd7476a6ea7d6a7c9ef71c0725f5
Signed-off-by: Pavan kumar <pavan@codeaurora.org>
2012-03-21 18:14:50 +05:30
Taniya Das
298de8c6d1 msm: msm_iomap: Unify iomap for 7x30 with 7K & 8K
Iomap for 7x30 is combined with 8K and 7k, this will allow us to reuse
the already defined static mappings.

Change-Id: I4f26cd420012028f018611c0ac27a02951404c8f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2012-03-21 17:49:17 +05:30
Mahesh Lanka
c054d353ac msm: 7x27A: Increase pmem size to allow H.264 720P decoding
Increase size of pmem_adsp region to enable high resolution
video decode (720P) using neon optimized SW codecs

CRs-Fixed: 343694
Change-Id: Ifa241a461d1e3dda56a3f01523ae4a0926772408
Signed-off-by: Mahesh Lanka <mlanka@codeaurora.org>
2012-03-21 15:42:23 +05:30
Anirudh Ghayal
c066e04e9d msm: 8930: Increase pull-up strength for pmic gpio-keys
Increase the pull up strength (current source pulls) from
1.5uA to 30uA for devices (MTP and XPM) which do not have
external pull-ups.

Change-Id: I8c95fb7127c04f4029bc85270a3b31935ad8a588
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2012-03-21 14:54:41 +05:30
Sujit Reddy Thumma
d9b4611dea mmc: core: Remove BROKEN_CLK_GATING quirk for WCN1314 cards
MMC_CLKGATE feature can be enabled for Volans cards as
the host supports asynchronous acitivity notification
when the clocks are off.

Change-Id: Ic6cfa7fb2e713dcf1d2c6b2ae9df9cf0394f8c4a
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
2012-03-21 14:51:59 +05:30
Sujit Reddy Thumma
f4a999cf00 mmc: msm_sdcc: fixup for enabling MMC_CLKGATE feature for SDIO cards
In the current implementation, turning off SDCC clocks when
SDIO card is inserted, is controlled by the SDCC driver in
suspend/resume callbacks. This makes the dynamic clock gating
(MMC_CLKGATE) feature, when enabled, to be broken for SDIO cards,
as configuring of sdio wakeup interrupt is entirely handled
in system suspend/resume callbacks. Handle this by moving all
of the wakeup handling code to generic set_ios function which can be
called either from core layer or driver layer.

Since the SDCC controller supports asynchronous notification of
SDIO card activity when the clocks are off use this for enabling
MMC_CLKGATE feature which helps in TCX0 during idle state.

Also, handle the case where the SDIO function driver is not interested
in waking up the system during suspend but the SDCC driver still
configures DAT1 line as wakeup interrupt.

Change-Id: I260ae2161cfe9160f93e6af4f9b6c34db96397c0
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
2012-03-21 14:50:04 +05:30
Sujit Reddy Thumma
f0410bc6dc mmc: core: Export mmc_set_ios so that host drivers can use it
mmc_set_ios() is used by host drivers during suspend/resume
routines in indirect way i.e., by calling host->ops->set_ios().
But now with MMC_CLKGATE enabled, mmc_set_ios() also updates
host->clk_gated flag. So export this API so that host controller
drivers can use it.

Change-Id: Ib0c177635bb8d87ba68c98e08b8d940c73f2b80c
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
2012-03-21 14:35:44 +05:30
Laxminath Kasam
d9db3426e2 msm: audio: qdsp5v2: Fix LPA no audio heard issue
-In LPA Playback, insert headset just before end
of the clip, then no audio is heard and music
is not stopping.
-When the DSP side buffer consumption crosses the
threshold value of current buffer and requests
the next buffer and receives it from driver. At
this point of time, if device switch happens,
then driver gets sync info and flushes the DSP
data and DSP requests for needs data. Driver pops
the latest buffer that is not yet played by DSP
and remove from out_queue. Also, increments the
headcount to next buffer. This will miss the audio
play of few secs and result in failure of music stop
too as WRITE_DONE event to LPAPlayer is not sent
for one buffer.
-Apply the change to handle device switch case
to avoid removing the current buffer from out_queue
incase of device switch. Play the buffer and
then post the WRITE_DONE event of this buffer
to LPAPlayer. With this change music stop
happens correctly now as WRITE_DONE is issued
for all the buffers to LPAPlayer.

Change-Id: I7eb7ea4215da02e77a88a1f30bef53382f4f4faa
CRs-Fixed: 342560
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2012-03-21 14:05:54 +05:30
Laxminath Kasam
e448b24077 msm: qdsp5: Convert to new clk_prepare/unprepare API
As per the new clock APIs replace clk_enable/clk_disable
with new clk_prepare_enable/clk_disable_unprepare APIs.

Change-Id: Ic3129af78668b68017dd48a6a38ffa588f1e5cc8
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2012-03-21 13:50:19 +05:30
Monika Alekhya
fa6318641e msm_camera: Skip the frame when ping-pong register status is not proper.
When YV12 preview format is set,due to timing reasons the viewfinder frame
status is inconsistent.so skip such frames to avoid preview freeze.

Change-Id: Iac65277b76b1c32eefe95b0932149b7152e4b2e7
Signed-off-by: Monika Alekhya <malekh@codeaurora.org>
2012-03-21 11:08:34 +05:30
Sathish Ambley
576a697a83 msm: platsmp: Release secondary cores out of reset for copper
Add support to release secondary cores out of reset for
copper target on simulator.

This helps avoid the warning message from showing up on the
console when the secondary cores are brought online as copper
was not in the list of recognized targets.

Signed-off-by: Sathish Ambley <sambley@codeaurora.org>
Change-Id: Ib9d8df35d277535f8a885c0e9e803ecee1e71903
2012-03-20 21:33:12 -07:00
Harini Jayaraman
fe6ff416e2 msm: 8930: Add I2C QUP Support for I2C EEPROM
Add the device definitions and platform data to support
I2C QUP on GSBI9 for I2C EEPROM.

Change-Id: I25646be5b793e6434aa09bf51302247d0781451f
Signed-off-by: Harini Jayaraman <harinij@codeaurora.org>
2012-03-20 21:21:26 -06:00
Linux Build Service Account
7c3972cd66 Merge "msm: camera: Fix for lcd power on issue" into msm-3.0 2012-03-20 18:50:27 -07:00
Linux Build Service Account
55eaa32436 Merge "diag: Remove memory leak" into msm-3.0 2012-03-20 18:50:27 -07:00
Linux Build Service Account
0d9872edf7 Merge "msm: clock-8960: Use VDD dig corner regulator for 8930." into msm-3.0 2012-03-20 18:50:27 -07:00
Linux Build Service Account
cd9ae16164 Merge changes I29417600,Ic3b53ed5 into msm-3.0
* changes:
  msm: acpuclock-8960: Use VDD dig corner regulator for 8930 and 8627
  msm: board-8930: Add new VDD_dig voltage corner regulator
2012-03-20 18:50:27 -07:00
Linux Build Service Account
41a03e96a8 Merge "msm:Bluetooth: Enabled Microsoft and Apple Bluetooth HID drivers" into msm-3.0 2012-03-20 18:50:27 -07:00
Linux Build Service Account
1b47bd5c43 Merge "msm: camera: Change mount angle of IMX074 sensor" into msm-3.0 2012-03-20 18:50:27 -07:00
Peter Krystad
dcfeee2e37 Bluetooth: Only clear AMP/L2CAP connection after all channels deleted
Fix issue where if there are two OBEX connections on an AMP link and one
of them is moved back to BR-EDR (or disconnected) the remaining connection
ceases to transfer any data, times out, and disconnects.

The l2cap_data pointer of the AMP hci_conn structure should not be cleared
whenever an L2CAP channel on AMP is deleted, it should only be cleared
when the last L2CAP channel on the AMP is deleted. This allows multiple
L2CAP channels to be open concurrently on AMP.

CRs-fixed: 344557
Change-Id: Ifb15a7156437a6ab7a7a76c3dae4b1cd901c796f
Signed-off-by: Peter Krystad <pkrystad@codeaurora.org>
2012-03-20 16:59:25 -07:00
Peter Krystad
4277842742 Bluetooth: Fix channel disconnect when logical link already exists
Fix issue where the attempt to move a second OBEX connection onto an
AMP link fails and the connection is disconnected.

When handling a Move when there is an existing Best Effort Logical Link
L2CAP must check for the WAIT_MOVE_CONFIRM and WAIT_MOVE_RSP_SUCESS
states when the logical link completes. In these scenarios the logical
link completes before the Move Confirm or Move Response Success is
received and L2CAP must continue to wait for the confirm or response.

CRs-fixed: 344557
Change-Id: I3e0786f780fa48592bb45ec2e81ae1ffa4a6ab80
Signed-off-by: Peter Krystad <pkrystad@codeaurora.org>
2012-03-20 16:59:25 -07:00