Add relevant platform data for SMB349 charger chip.
Change-Id: I49510b18cd7940c5494a5dcb026fbf236b12abea
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
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>
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>
Code to configure QDSP5 based SRS Post Proc.
Change-Id: Ie137853a90a2780265c419c3b070811ea06abc83
Signed-off-by: Sidipotu Ashok <sashok@codeaurora.org>
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>
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>
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>
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>
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>
* 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
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>
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>
This reverts commit d1e94136fc.
This change was added from Google Android's tree.
Change-Id: I2202e0eafa31c9f91acbde7137efa65237b68d32
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
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>
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>
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>
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>
Enable CODEC and SOUND config items to enable audio support for 9615.
Change-Id: Icd521314cbf712a2c4053a2a0afc8671005f5f7e
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
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>
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>
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>
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>
* 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
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>
This allows DCVS to be chosen for CPU and GPU cores.
Change-Id: I356f5ff70b29d4a525c4b0824509b98fedd94d5a
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>