Commit Graph

264866 Commits

Author SHA1 Message Date
David Keitel
2f613d9aa0 msm: board-8064: add smb349 charger device
Add relevant platform data for SMB349 charger chip.

Change-Id: I49510b18cd7940c5494a5dcb026fbf236b12abea
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2012-03-26 23:07:47 -07:00
Chiranjeevi Velempati
48f64be0a0 USB: gadget: Kconfig: Change Max VBUS power usage default value
Currently the VBUS Max power usage is set to default value of 2.
Change this value to default of 500 to honour the code that uses
CONFIG_USB_GADGET_VBUS_DRAW to set the bMaxPower.

Change-Id: If27b422c23ad2a010744f9660cc0b376d02649df
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
2012-03-27 11:08:32 +05:30
David Collins
f4c3d64f91 msm: board-8930: Move camera Vio regulator supply from LDO 18 to LVS 1
The Phase 3 MSM8930 power grid has physically changed the Vio
supply for the camera from PMIC PM8038 regulator LDO 18 to LVS 1.
Modify the MSM8930 board files to match this regulator mapping
change.

Change-Id: Ieb4f2d6dd15cd5cd960fb8bec114159a59fb0f91
Signed-off-by: David Collins <collinsd@codeaurora.org>
2012-03-26 21:58:35 -07:00
Sidipotu Ashok
3144aa2a81 msm: 7x27a: audio: Enable SRS Post processing.
Code to configure QDSP5 based SRS Post Proc.

Change-Id: Ie137853a90a2780265c419c3b070811ea06abc83
Signed-off-by: Sidipotu Ashok <sashok@codeaurora.org>
2012-03-27 08:52:11 +05:30
Stephen Boyd
1236375b06 msm: scm-pas: Migrate to clk_prepare/unprepare() APIs
The clk_enable/disable calls are made in a non-atomic context so
just move to using clk_prepare_enable() and
clk_disable_unprepare().

Change-Id: I3d53065f60379b2d765842ad36d24f92720789c9
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2012-03-26 17:22:03 -07:00
Yan He
1ad4982314 platform-drivers: msm: sps: fix an error in pipe assignment
When set up a new pipe but the resource for that pipe is already
in use, we should return error directly instead of first disabling
that pipe in BAM HW.

CRs-Fixed: 341066
Signed-off-by: Yan He <yanhe@codeaurora.org>
2012-03-26 17:10:24 -07:00
Arun Menon
d5a0297a2c msm: vidc: Extract PAR info for MPEG4/DIVX.
Display needs the pixel aspect ratio information
from the video decoder to display the picture
with the right aspect ratio. Video decoder extracts
the pixel aspect ratio information from the
video core and passes it to the client/display
as extradata.

Change-Id: I4db2b8ba827af67bc01888d13c36c1b501934ccd
Signed-off-by: Arun Menon <menon@codeaurora.org>
2012-03-26 16:44:38 -07:00
Deva Ramasubramanian
21e602b293 video: msm: wfd: Switch to high-res timers
Using the typical timer_list to keep track of frame queue timeout was
not accurate enough.  In 60 FPS case, 16.6 ms translated into 1
jiffy causing inaccurate FPS and performance problems. Hence switching
to hrtimer for more accurate timeouts.

Change-Id: I49facc6846d6795bcb61674a23b113d6b7f04f1d
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
2012-03-26 16:03:31 -07:00
Kiran Kandi
5f4ab691c5 ASOC: msm: close AUX PCM when both RX and TX are closed.
AUX PCM RX and TX interfaces have to opened together and closed
together for AUX PCM HW interface to work correctly. Currently
as soon AUX PCM RX interface is closed AUX PCM TX is also closed.
Correct this by opening AUX PCM HW interface as soon one of
AUX PCM RX and TX is opened and close the AUX PCM HW interface
when both AUX PCM  RX and AUX PCM TX  interfaces are closed.

Change-Id: I3790ce2fd4d7957ea0278955e791aca28d5c3db7
CRs-Fixed: 337425
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
2012-03-26 15:51:24 -07:00
Linux Build Service Account
d487812cb7 Merge changes Icd521314,Ife81498d,I78e9d31f into msm-3.0
* changes:
  msm: 9615: Enable support for 9615 audio module
  msm: audio: qdsp6v2: Exclude decoders not required for 9615
  msm: 9615: Add support for 9615 audio module
2012-03-26 15:13:27 -07:00
Linux Build Service Account
a199076e9c Merge "usb: hsic_hcd: fix failure to re-suspend after remote wakeup" into msm-3.0 2012-03-26 15:13:27 -07:00
Linux Build Service Account
3e85a7d1f5 Merge "msm_fb: hdmi: HDMI high sleep current" into msm-3.0 2012-03-26 15:13:27 -07:00
Linux Build Service Account
bbe396e3a7 Merge changes I2234cda6,Ice34a894 into msm-3.0
* changes:
  msm: jtag: query for TZ dbg-etm register save and restore support
  msm: scm: Add a feat version query API
2012-03-26 15:13:27 -07:00
Linux Build Service Account
23f211f52f Merge "msm: 8064: Enable DDR mode for eMMC" into msm-3.0 2012-03-26 15:13:27 -07:00
Linux Build Service Account
e3a5666ed9 Merge "msm: iommu: Reorganize per-target device initialization" into msm-3.0 2012-03-26 15:13:27 -07:00
Linux Build Service Account
2f4b9c1cfd Merge "msm: defconfig: Enable MSM DCVS for 8960 based targets" into msm-3.0 2012-03-26 15:13:27 -07:00
Linux Build Service Account
7e0e85de0f Merge "USB: f_mtp: Handle corner cases on reception of Cancel request from Host" into msm-3.0 2012-03-26 15:13:27 -07:00
David Collins
c010fa5a1e gpio: pm8xxx-gpio: pm8xxx-mpp: set can_sleep=0 for GPIO and MPP drivers
All gpiolib callback functions in the pm8xxx-gpio and pm8xxx-mpp
drivers can be called from atomic context.  Therefore, the
can_sleep gpio_chip parameter for these drivers can be safely set
to 0.  Thus, change the can_sleep value to 0 for both of these
drivers when the gpio_chip is registered in their probe
functions.  This will remove gpiolib warning messages that are
generated when calling gpio_set_value from atomic context.

Change-Id: I8beb381f009f7e1b51d3e0cb003e532685c75c4a
Signed-off-by: David Collins <collinsd@codeaurora.org>
2012-03-26 14:02:50 -07:00
Ravishangar Kalyanam
28338aebe0 msm_fb: display: Call footswitch control from overlay dtv on/off
Instead of dtv on and off, call footswitch control during
overlay dtv timing generator on and off calls

Change-Id: Iffe47e12ce99e1fc7a080daef7b220c4f010ccda
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2012-03-26 13:39:18 -07:00
Rohit Vaswani
5ded52c216 Revert "misc: remove android pmem driver, it's obsolete."
This reverts commit d1e94136fc.
This change was added from Google Android's tree.

Change-Id: I2202e0eafa31c9f91acbde7137efa65237b68d32
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2012-03-26 13:04:19 -07:00
Linux Build Service Account
ad7787fa78 Merge "USB: ci13xxx_msm: add module license" into msm-3.0 2012-03-26 12:19:55 -07:00
Linux Build Service Account
f53a9b1b05 Merge changes Ie3fd431b,Ibf37f7c2,I1a3c0a65 into msm-3.0
* changes:
  defconfig: Add support for LCDC Truly IPS3P2335 Panel
  msm_fb: display: Add panel driver for Truly IPS3P2335 client
  msm_fb: display: Add board support for LCDC Truly panel
2012-03-26 12:19:55 -07:00
Karthikeyan Ramasubramanian
d08e59ab60 msm: smd_pkt: Add a new smd_pkt device to be used by QMUXD
QMUXD will be using the tethered SMD channel to send and receive
QMI messages.

Change-Id: I99cefb22b5c333bf0d8f1085395da85ddc14d38f
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2012-03-26 12:32:52 -06:00
Jay Chokshi
74730c7d87 msm: board-8930-pmic: Add default configuration for LED anode power source
The SMBC HW automatically turns on the charger LED during HW-controlled
Auto Trickle Charging (ATC). After system boots up, charger SW needs
to manually turn on the charger LED since the anode is connected to GND
by default. Add configuration to connect the LED anode power source
to VPH_PWR by default.

Change-Id: I3984d747e725c0cb067ae7bda84626b132b2ffcb
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2012-03-26 11:31:04 -07:00
Jay Chokshi
d674a51860 power: pm8921-charger: Add feature to use charger LED
Add a mechanism to configure the power source of
the charger indicator LED anode on the PM8921.
The configuration is specified using platform data.

Change-Id: I9a436f634ddfd5d1822f1fc8beab4936fa8bb61d
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2012-03-26 11:31:04 -07:00
David Collins
83e8f9fa43 mfd: pm8921-core: Add support for a newly defined PMIC PM8917 regulator
Add support for the new LDO regulator which was recently added to
the design of the PMIC PM8917.  LDO 36 is a 50 mA PMOS LDO.

Overall regulator changes between PMIC PM8921 and PMIC PM8917:
PM8917 adds:    7 PMOS LDOs (L30-L36) and 1 boost regulator
PM8917 removes: negative charge pump (NCP), HDMI medium voltage
		switch (MVS), and low voltage switch (LVS) 2

Support for other PM8917 regulators differences was been added in
a previous change.

Change-Id: I634c366d418d682f0cf3a3d8bc270063f7aee3cd
Signed-off-by: David Collins <collinsd@codeaurora.org>
2012-03-26 11:19:29 -07:00
Shiv Maliyappanahalli
7d6f6c5268 msm: 9615: Enable support for 9615 audio module
Enable CODEC and SOUND config items to enable audio support for 9615.

Change-Id: Icd521314cbf712a2c4053a2a0afc8671005f5f7e
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2012-03-26 11:11:40 -07:00
Steve Muckle
c1421e3f22 msm: idle-v7: do not clean and invalidate after warm boot
The boot chain will already have invalidated any caches which
contain invalid data due to powering the caches on, so it is not
necessary to do that operation here. This call is also incorrect
because it is being done after caches are already enabled.

Change-Id: I1402f08712f45cb4598bcbc470b89637c1952056
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
2012-03-26 11:05:06 -07:00
Shiv Maliyappanahalli
52402afac3 msm: audio: qdsp6v2: Exclude decoders not required for 9615
9615 support only voice, hence does not require encoders/decoders
supported by other platforms. Exclude these encoders/decoders based
on CONFIG_ARCH_MSM9615.

Change-Id: Ife81498d4e10b9cdf20b48ba583d55deadfa6548
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2012-03-26 11:04:25 -07:00
Adrian Salido-Moreno
8d3b0fce86 msm_fb: display: fix underrun when conecting wifi display
When connecting wifi display underrun can happen if there is no frame
update in other mixers before pipe in mixer2 is staged up. Add logic to
make sure that any pipes that are going to be staged up to mixer2 are
staged down from other mixers first.

Change-Id: I84ce8d0fcd392639d470ba4161be36212bcefce1
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
2012-03-26 11:03:27 -07:00
Shiv Maliyappanahalli
9ec55e91c5 msm: 9615: Add support for 9615 audio module
Define and expose ALSA FE/BE platform_devices in devices-9615 file and
board-9615 file will add them during initialization. Set regulator supply
for TABLA CODEC.

Change-Id: I78e9d31f4fa30fb1a313eb1edf6707031ec06174
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2012-03-26 10:59:21 -07:00
Linux Build Service Account
9eb1d41c6b Merge "ARM: 7100/1: smp_scu: remove __init annotation from scu_enable()" into msm-3.0 2012-03-26 10:27:27 -07:00
Linux Build Service Account
a406d3af6e Merge changes I0e9522ee,Ia9fc45e6,I96c3dd33,Ifdad5ce4,Ie5f19986,I95ccb8f5,I96267687,I071f4387 into msm-3.0
* changes:
  msm: kgsl: Configure VBIF settings for GPU with dual SMMU
  msm: board-8930: Create a dedicated board file for the GPU
  msm: board-8930: Add video device instance
  gpu: ion: set dma_address for contiguous heaps in ion_map_dma()
  msm: kgsl: set the dma_address field of scatterlists
  msm: iommu: use sg_dma_address() in iommu_map_range()
  msm: rpm-8930: Update RPM IDs as supported by the RPM driver
  msm: 8930: Add fabric devices to enable bus scaling on 8930
2012-03-26 10:27:27 -07:00
Linux Build Service Account
099b492dd0 Merge "msm: camera: Fix for csi and vfe driver issues" into msm-3.0 2012-03-26 10:27:27 -07:00
Eric Holmberg
59a9f9418e msm: smsm: Add SMSM notifier wakelock
Add wakelock that is locked in the SMSM interrupt handler and unlocked
in the workqueue after notifications have been completed.

This prevents the sleep code from putting the system to sleep before the
SMSM notification workqueue gets scheduled.

CRs-Fixed: 345581
Change-Id: Idb93493dfa79cd4ea80b857ed92c4b2f9b96af3f
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2012-03-26 11:01:40 -06:00
Praveen Chidambaram
de2b53ed48 msm: defconfig: Enable MSM DCVS for 8960 based targets
This allows DCVS to be chosen for CPU and GPU cores.

Change-Id: I356f5ff70b29d4a525c4b0824509b98fedd94d5a
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
2012-03-26 08:49:50 -06:00
Prabhakaran Mc
9f08bfda36 Bluetooth: Modify security level at remote_features event for BT2.0 devices
For non SSP devices, MEDIUM_SECURITY has to be used for pairing. This
can be determined and set while receiving remote supported features
event for BT2.0 devices.

Change-Id: I24558d40be01c4232fff4a871e2b57e390d4128a
CRs-fixed: 345945
Signed-off-by: Prabhakaran Mc <prabhakaranmc@codeaurora.org>
2012-03-26 18:18:17 +05:30
Ajay Singh Parmar
88ad8a7be0 msm_fb: display: HDMI power reduction at suspend
During suspend, HDMI clocks are still running and power
consumption is high. Usually HPD module is kept on even
when the cable is not connected to sense the cable
re-connect. But cable connect sense is not required when
the device is suspended. This change makes sure that HPD,
along with other HDMI modules, are totally shutdown during
suspend and there is no power consumption by HDMI.

CRs-fixed: 335821
Change-Id: I90c6ec6ca99a9396609028fda9f1768324e7d3da
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2012-03-26 06:44:30 -06:00
Taniya Das
b241bd8431 ARM: gic: Add support to access GIC in secure mode
Currently gic secure mode is enabled for all the v7 cpus.
For 8x25 we do not want to access GIC in secure mode as
we are observe issues of not able to clear the pending clear
registers when we come out of power collapse.

The Kconfig should make it flexible for targets who want to
support GIC in secure/non-secure modes.

Change-Id: Id7c85f5b741346233993966752607e5c4fb23e74
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2012-03-26 17:06:49 +05:30
Linux Build Service Account
53e7427bf8 Merge "msm_xo: Work around RPM treating CXO_CLK and D0 as the same" into msm-3.0 2012-03-26 04:08:22 -07:00
Taniya Das
e30a6b2ba0 msm: platsmp-8625: Support core1 boot after power collapse.
On 8625 target the cores enter the power collapse only when both the
cores are in GDFS state. Once out of power collpase core0 needs to
bring core1 out of GDFS and that is achieved by raising an SPI from
core0. Writing to the MP_CORE_IPC register generates the interrupt on
ACSR_MP_CORE_IPC1. To enable the core1 to receive an SPI we need to
configure the gic after we come out of power collapse, which is
identified based on the flag which gets updated once we
enter power collapse.

Once core1 is in reset, we need to clear the ACSR_MP_CORE_IPC1
and also clear the pending SPI.

Change-Id: I0e3bd5ad516289e2a8490205cf2eb39df07eca99
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2012-03-26 16:38:13 +05:30
Jeevan Shriram
d958549284 defconfig: Add support for LCDC Truly IPS3P2335 Panel
Enable truly panel for 7x27a QRD3 devices

Change-Id: Ie3fd431b23946f98c3b83084fecfae0f26ad7f08
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2012-03-26 15:58:56 +05:30
Jeevan Shriram
a1f9df15e0 msm_fb: display: Add panel driver for Truly IPS3P2335 client
Add panel driver for TRULY IPS3P2335 client

Change-Id: Ibf37f7c292593898e237329f3021f1eed8f8728d
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2012-03-26 15:58:41 +05:30
Jeevan Shriram
901a15f13d msm_fb: display: Add board support for LCDC Truly panel
Add board file changes to support TRULY panel with lcdc interface
on QRD SKU3 devices.

Change-Id: I1a3c0a65cf5dc67500407648a3136d561e687e75
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2012-03-26 15:54:40 +05:30
Ajay Singh Parmar
56dfb682a5 msm_fb: hdmi: HDMI high sleep current
High current is observed during sleep. HDMI PHY needs
to be reset before going into sleep.

CRs-fixed: 336972
Change-Id: If79f1fb5bcb88d649b2545362eb853d3699e41bf
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2012-03-26 14:38:17 +05:30
Taniya Das
c43e687b9c msm: acpuclock-7201: Add support for updating lpj in acpuclock
loops_per_jiffy is not updated on SMP systems in cpufreq driver.
So, update the per-CPU loops_per_jiffy value on frequency transition
and also update the other CPUs loops_per_jiffy.

Change-Id: I25db47450e5ac00603c32f928069351ecb827d3e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2012-03-26 12:44:58 +05:30
Shawn Guo
0b3aec811d ARM: 7100/1: smp_scu: remove __init annotation from scu_enable()
When Cortex-A9 MPCore resumes from Dormant or Shutdown modes,
SCU needs to be re-enabled.  This patch removes __init annotation
from function scu_enable(), so that platform resume procedure can
call it to re-enable SCU.

Change-Id: I2cd8de598624882a62831086198067a39aa59348
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2012-03-26 12:40:52 +05:30
Raju P.L.S.S.S.N
249e675d83 msm: camera: Fix for csi and vfe driver issues
1.enable csi lanes based on lane count and Update
  csi irq to IRQF_TRIGGER_HIGH
2.update vfe driver not to send any command when
  the table command is in progress

Change-Id: If35c673e432ff54ce9ac5a20350fc0e7068d18e4
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2012-03-26 12:33:10 +05:30
Pratik Patel
783408abfe msm: qdss: introduce mutex locking for funnel_enable/disable
In preparation for other qdss source drivers to use the qdss APIs
ensure that funnel_enable and funnel_disable are properly protected
by locks.

Also default the funnel priority for all ports to zero so that all
sources get equal priority.

This is required since going forward there will be more than one
user of the qdss driver.

Change-Id: I8fec21f88e5a206c019d66a50570e5fc91ba6044
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2012-03-25 21:24:03 -07:00
Pratik Patel
bf3e774489 msm: qdss: make qdss_clk_enable/disable external functions
Move qdss_clk_enable/disable declarations to the external qdss header file.
Add reference counting and mutex locking to make them useable by clients.

Change-Id: If8a5bd9783138af1f9d620e78ecbd0163ff25a6b
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2012-03-25 21:24:03 -07:00