Commit Graph

59202 Commits

Author SHA1 Message Date
Bharath Ramachandramurthy
e0b5532197 msm: audio: qdsp6v2: Wait indefinitely for subsystems to be loaded.
Wait indefinitely for lpass or modem to be loaded instead of waiting
for a timeout of 5secs. The reason being downloading of images might
take long time.

CRs-fixed: 302002
Signed-off-by: Bharath Ramachandramurthy <bramacha@codeaurora.org>
2011-10-03 16:17:02 -07:00
Yaniv Gardi
0e8a5ade33 msm: sdio: creating a debugfs tree of nodes for testing purposes
under sys/kernel/debug/sdio_al_test directory there will be all files,
that by writing to them, the spesific test will be executed.

Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
2011-10-03 16:17:00 -07:00
Laura Abbott
e31d133d4c msm: charm: Wake up the external modem when panicking
In order for the external modem to properly respond to
a panic, it must be out of low power mode. Ensure the
external modem is woken up before leaving the panic
handler.

CRs-Fixed: 303416
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-03 16:16:58 -07:00
Bryan Huntsman
24161a643a Revert "msm: 8960: WCNSS restart module, removed Watchdog bite IRQ"
This reverts commit 895293124ddd122607221e908e99f150bc074c2d.

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2011-10-03 16:16:57 -07:00
Neil Leeder
b618ec2b43 msm: build pmu.o for 7x27a
Add pmu support for 7x27a

Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
2011-10-03 16:16:55 -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
Matt Wagantall
27663840be msm: acpuclock-8960: Replace socinfo use with cpu_is_krait_v1()
Some of the code in the hotplug path is really specific to
the Krait v1 processor, not a specific SoC version. Replace
these checks with one that is more precise.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:16:54 -07:00
Neil Leeder
caf114bc5d msm: rename PMU irq for 7xxx
Make the name the same as for other platforms so it can be
used by the common code in pmu.c

Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
2011-10-03 16:16:52 -07:00
Stephen Boyd
973e4bae4b msm: clock-8960: Support QDSS clocks
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 16:16:51 -07:00
Ankur Nandwani
67f29373f6 msm: 8960: WCNSS restart module, removed Watchdog bite IRQ
Watchdog bite interrupt is expected to be a level interrupt.
However when requested for this interrupt, Krait0 has trouble
in power collapse. APSS may be expecting an edge triggered
interrupt.

Acked-by: Sameer Thalappil <sameert@qca.qualcomm.com>
Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
2011-10-03 16:16:50 -07:00
Matt Wagantall
e1a86060db msm: clock: Use device names to distinguish between ADM clocks
Drivers should now use their device names to distinguish between
clocks of the same type rather than the clock name. This allows
the clock names to be updated to match the new naming convention.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:16:49 -07:00
Matt Wagantall
37ce38431e msm: clock: Rename SDC clocks to match new naming convention
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:16:48 -07:00
Matt Wagantall
62cf63ea8e msm: clock: Rename unused GSBI clocks to match new naming convention
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:16:48 -07:00
Abhijeet Dharmapurikar
3405933cf3 msm: board-8960: add parameters for BTM
The support for battery temperature monitoring is added in the
8921 pmic charger driver. Add parameters in the board file to
configure it.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:16:47 -07:00
Gagan Mac
85c704939f msm: msm_bus: Enable support for multi-tiered requests
Currently only single-tiered requests are forwarded over
gateways. This raises the priority of all masters on a
particular fabric which is undesired.

This patch enables forwarding multi-tiered requests
between fabrics.

Signed-off-by: Gagan Mac <gmac@codeaurora.org>
2011-10-03 16:16:43 -07:00
Matt Wagantall
ac294855f6 msm: clock: Rename all I2C/SPI clocks to 'core_clk' or "iface_clk"
Drivers should now use their device names to distinguish between
clocks of the same type rather than the clock name.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/board-qrdc.c
	arch/arm/mach-msm/board-qt8660.c
2011-10-03 16:16:43 -07:00
Jeff Hugo
33dbc0052a Revert "msm: bam_dmux: switch to polling on DL"
This reverts commit 54d6f481f288753b653b52dc55e8ca96cb7ad14a.

CRs-Fixed: 302704
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
2011-10-03 16:16:42 -07:00
Stephen Boyd
cc7242351e msm: pil-8960: Support secure PIL for RIVA
Secure side supports RIVA boot now. Add support for RIVA boot
with secure PIL.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 16:16:40 -07:00
Anup Dasari
ad899705e7 defconfig: msm7x27a: Enable DM_CRYPT and CRYPTO_TWOFISH configs
these config options are required to install some of the userspace
applications on sdcard

Signed-off-by: Anup Dasari <adasari@codeaurora.org>
2011-10-03 16:16:36 -07:00
Subhash Jadavani
da8b6881a9 msm: 8960: increase the drive strength for SDC1 DATA & CMD lines
Currently drive strength of SDC1 DATA & CMD lines are set to 10mA
but sometimes we are seeing the DATA CRC errors when eMMC
(connected to SDC1 slot) is running in DDR mode. To avoid this
DATA CRC errors, this patch increases the drive strength of
DATA and CMD lines to 16mA.

CRs-Fixed: 300095
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2011-10-03 16:16:36 -07:00
Angshuman Sarkar
7ee0dca520 msm: smd: add spinlock to smem_get_entry
Since smem_alloc2 has been exported it is needed that the
shared smem allocation table be protected by a spinlock.

Signed-off-by: Angshuman Sarkar <angshuman@codeaurora.org>
2011-10-03 16:16:35 -07:00
Sahitya Tummala
d9df327068 mmc: changes to get SDCC work with multi-target binary for 8960 and 8064
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2011-10-03 16:16:34 -07:00
Rohit Vaswani
8a28b4a0b6 msm: socinfo: Add support for MSM9615 SOC id
Adds a dummy soc id support as well.

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2011-10-03 16:16:33 -07:00
Stephen Boyd
c78d9a76d3 msm: clock-local: Replace bank_masks with bank_info pointer
bank_masks are just one of the types of data that can be used for
the rcg_clk.set_rate() function. Make this field into a void
pointer to ease overloading of what the set_rate() function can
use.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 16:16:32 -07:00
Oluwafemi Adeyemi
f6c97c82cb mmc: msm_sdcc: Unconditionally send CMD52 after CMD53
Always send a dummy CMD52 after CMD53 for controllers
earlier than SDCC4

Signed-off-by: Oluwafemi Adeyemi <aadeyemi@codeaurora.org>

Conflicts:

	arch/arm/configs/msm7627-perf_defconfig
	arch/arm/configs/msm7627_defconfig
	arch/arm/configs/qsd-chromeos-st1q-qrdc_defconfig
	arch/arm/mach-msm/board-qrdc.c
	chromeos/config/armel/config.flavour.chromeos-st1q-qrdc
2011-10-03 16:16:31 -07:00
Lucille Sylvester
34ec3697c7 msm: kgsl: Update graphics clock plan
Update old 8660 clock plan for 8960 v1 & v2.

Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
2011-10-03 16:16:31 -07:00
Stepan Moskovchenko
2701a44186 msm: 8064: Add UART device for APQ8064 RUMI3
Add the device declaration and initialization code for the
GSBI1 UART device on the APQ8064 RUMI3.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-03 16:16:30 -07:00
Rohit Vaswani
9e9b6a1d4e arm: mach-types: Add machine type for MSM9615
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2011-10-03 16:16:30 -07:00
Ben Romberger
3652ed735c msm: audio: qdsp6v2: Support VOIP & Widevoice calibration
Adds support for the VOIP network and Widevoice calibration
for all networks.

Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2011-10-03 16:16:27 -07:00
Jay Chokshi
9ae8c85dd0 msm: pmic: Add MSM_RPC_UNINTERRUPTIBLE flag
Add MSM_RPC_UNINTERRUPTIBLE flag to rpc connect so
that when rpc call is awaiting for the reply it
does not get interrupted due to interruption of
pmic client thread.

CRs-Fixed: 300319
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2011-10-03 16:16:27 -07:00
Karthikeyan Ramasubramanian
f23a2316e6 msm: rpc: Update RPC client's cb_list_lock to use spinlocks
RPC client's callback function list is sometimes accessed from
atomic context. Hence use spinlocks to get exclusive access to the
list rather than mutex lock.

Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2011-10-03 16:16:25 -07:00
Karthikeyan Ramasubramanian
1079f782bf msm: rpc: Reset RPC endpoint's reply bucket count during modem reset
Every RPC endpoint maintains a reference counter to represent the
number of entries consumed from the reply bucket. During modem reset
this counter is not reset and after few modem resets this counter reaches
the maximum count. Hence the RPC framework stops sending out the replies.

CRs-Fixed: 297292
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2011-10-03 16:16:25 -07:00
Terence Hampson
90508a9750 board:8x60: enabling pmic8058_charger to be AC for dragonboard
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2011-10-03 16:16:24 -07:00
Eric Holmberg
d995dd85ba msm: sdio_dmux: Fix recursive spinlock scenario
Fix issue where clients cannot call any functions that
lock the channel spinlock in the callback notifications
during a subsystem restart.

CRs-Fixed: 302014
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2011-10-03 16:16:23 -07:00
Maya Erez
8afd564fad msm: sdio: add SDIO test for modem reset feature
Signed-off-by: Maya Erez <merez@codeaurora.org>
2011-10-03 16:16:22 -07:00
Bharath Ramachandramurthy
4613ce4c37 msm: audio: qdsp6v2: Acquire wakelocks during record.
Acquire wakelocks during recording usecase to prevent apps
proc from freezing.

CRs-fixed: 303049
Signed-off-by: Bharath Ramachandramurthy <bramacha@codeaurora.org>
2011-10-03 16:16:21 -07:00
Stepan Moskovchenko
70dc7cfdae msm: socinfo: Add support for detecting Krait v1
Add a function to query whether the system is running on an
early sample of the Krait processor.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-03 16:16:15 -07:00
Stepan Moskovchenko
eff783a019 msm: socinfo: Move read_msm_cpu_type into socinfo.c
Since socinfo.c is now built on all targets, it is safe to
uninline this function and move it into socinfo.c.
Something this big should not be inlined, anyway.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-03 16:16:14 -07:00
Lucille Sylvester
611d0d9e5b msm: Add idle_stats_device infrastructure
Add a core infrastructure for transmitting idle stats to user
space for use by other devices in the system such as the GPU.

Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
2011-10-03 16:16:13 -07:00
Vikram Mulukutla
a00149c36c acpuclock-8960: Add initial support for the APQ8064
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2011-10-03 16:16:11 -07:00
Rohit Vaswani
e4763a14f1 arm: configs: Change fsm9xxx default timer
Default timer is changed from GP_TIMER to DG_TIMER

Acked-by: Kaushik Sikdar <ksikdar@qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2011-10-03 16:16:09 -07:00
Abhijeet Dharmapurikar
8676ba9056 msm: irqs: increase the number of interrupts
On 8960 and 8064 targets, the version of gic used supports
a total of 288 interrupts (16 SGI 16 PPI and 256 SPI).

Fix the NR_MSM_IRQS to reflect this increase.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-10-03 16:16:09 -07:00
Nagamalleswararao Ganji
0b8dbd0db9 msm: board8960: fix for 8960 mdp writeback hang issue
set the correct size to the writeback buffer based on the
panel size to fix the hung issue.

Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2011-10-03 16:16:07 -07:00
Matt Wagantall
e252237237 msm: clock: Rename all UART clocks to 'core_clk' or 'iface_clk'
Drivers should now use their device names to distinguish between
clocks of the same type rather than the clock name.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:16:07 -07:00
Rajesha Kini
72a8b61b22 audio: qdsp6v2: handle flush and eos in encoder driver
Updated encoder driver to handle the flush and eos.

CRs-fixed: 283541
Signed-off-by: Rajesha Kini <rkini@codeaurora.org>
2011-10-03 16:16:05 -07:00
Jay Chokshi
bc3d98de30 msm: 8064: Enable irq, gpio, and mpp for pm8921
Add platform data for irq, gpio, and mpp

Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
2011-10-03 16:16:03 -07:00
pankaj kumar
80d7cb6114 msm: devces-msm7x27a: Fix compilation while L2 PL310 is disabled
Rename msm_cache_init to msm7x27x_cache_init to fix
the compilation when L2 PL310 is disabled.

Signed-off-by: pankaj kumar <pakuma@codeaurora.org>
2011-10-03 16:16:03 -07:00
Nagamalleswararao Ganji
4ef572eb7a defconfig: msm8960: mdp writeback for 8960
enabling the mdp writeback mode for 8960

Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2011-10-03 16:16:02 -07:00
Amy Maloche
b5c67e8d08 board: msm8660: add more delay for hw to stabilize
CRs-fixed: 301474
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2011-10-03 16:16:01 -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