Commit Graph

264866 Commits

Author SHA1 Message Date
Pratik Patel
b27a935e71 msm: qdss: rename qdss private header file to qdss-priv.h
This will help differentiate qdss private header file (qdss-priv.h)
from qdss external header file (include/mach/qdss.h).

Change-Id: Ibb42bb07964d2f485d83b5f86e2a141768f3689e
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2012-03-25 21:24:03 -07:00
Pratik Patel
dbe9abc265 msm: jtag: query for TZ dbg-etm register save and restore support
Only perform a save and restore of debug and etm registers across
power collapse in the kernel if debug and etm architecture is
supported by the code and if TZ isn't supporting the save and
restore.

Change-Id: I2234cda6dcc488ef8a8895e2fbfdf5e4251fb5aa
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2012-03-25 21:24:02 -07:00
Pratik Patel
606fb50f7e msm: qdss: move external jtag declarations to external qdss header file
Clients will include the external qdss header file to use the external
apis provided by jtag.c that implements debug and etm register save and
restore.

Change-Id: Ifd959d8e6233a8dccb21dc2f48cdbbc7b869f3be
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2012-03-25 21:24:02 -07:00
Pratik Patel
c35426acbd msm: qdss: add new external qdss header file
This will serve to provide qdss driver apis that expose the qdss
driver services to the qdss clients. Qdss clients are expected to
include this header file.

This header file will also provide access to apis implemented
in jtag.c that are responsible for debug and etm register save and
restore.

Change-Id: I9ee031d7862dcdb6b81ae37e88b92a8b0db01b20
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2012-03-25 21:24:02 -07:00
Stephen Boyd
c085f9bcbe msm: scm: Add a feat version query API
Some users of SCM need to detect features and also detect if
those features have certain versions available. Most notably the
jtag save restore code needs to detect if the secure environment
supports save and restore of jtag state so that it can skip doing
its own save and restore.

Add this API so that the code can work with either version of the
secure code.

Change-Id: Ice34a894b1eb48cbf741138858e68c91c6bdd98d
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2012-03-25 21:24:01 -07:00
Sathish Ambley
2f27a173d0 msm: board-dt: ARM generic timer DT support
The ARM generic timer now supports DT routines to parse the
device tree and populate its members, so remove this from
the board file and invoke the DT routine exposed from the
ARM generic timer.

Change-Id: Id383aff8f5f2c8fdb541f1df72242f8938229784
Signed-off-by: Sathish Ambley <sambley@codeaurora.org>
2012-03-25 20:52:14 -07:00
Marc Zyngier
f2caa5109e ARM: architected timers: add DT support
Add runtime DT support and documentation for the Cortex A7/A15
architected timers.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>

Conflicts:
        [Resolve conflicts for adding support for the feature
         ARCH_HAS_READ_CURRENT_TIMER]
	arch/arm/kernel/arch_timer.c

Change-Id: I4b1d1dc2a8c69466497423475f7a3dd4d2c380c1
Signed-off-by: Sathish Ambley <sambley@codeaurora.org>
2012-03-25 20:52:14 -07:00
Marc Zyngier
df590ccd9d ARM: local timers: Add A15 architected timer support
Add support for the A15 generic timer and clocksource.
As the timer generates interrupts on a different PPI depending
on the execution mode (normal or secure), it is possible to
register two different PPIs.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>

Conflicts:
        [Integrate to the recent patch which has changes to
         local timer registration mechanism.

         This fixes the crash seen during hotplug operations
         where after a secondary CPU is brought back online,
         the clock event device setup was happening as part
         of the online notification mechanism which was too
         late. With this change in the local timer mechanims,
         the clock event device is now setup as part of the
         secondary CPU boot initialization making it available
         early enough for use.

         Update the board file with the appropriate changes in
         the argument for timer registration.]
	arch/arm/Kconfig
	arch/arm/include/asm/arch_timer.h
	arch/arm/kernel/arch_timer.c

Change-Id: I0bc80097c145fb2aac2150db0c5dff3c5e215a58
Signed-off-by: Sathish Ambley <sambley@codeaurora.org>
2012-03-25 20:52:13 -07:00
Sudhakara Rao Tentu
5746bdee80 msm: kgsl: Configure VBIF settings for GPU with dual SMMU
Use default VBIF seetings for single SMMU in case of 8x30 and
configure VBIF settings for dual SMMU in case of 8064.

Change-Id: I0e9522eecc687615f285d905d8bd6ae4341595c9
Signed-off-by: Sudhakara Rao Tentu <srtentu@codeaurora.org>
2012-03-25 14:55:16 -07:00
Sudhakara Rao Tentu
8b5c8ed50f msm: board-8930: Create a dedicated board file for the GPU
Make a dedicated board file for the KGSL GPU device.

Change-Id: Ia9fc45e650adc102e82675d412a52965672b25fa
Signed-off-by: Sudhakara Rao Tentu <srtentu@codeaurora.org>
2012-03-25 14:55:10 -07:00
Arun Menon
aabf263f99 msm: board-8930: Add video device instance
The instance of video codec device is added to support video
for 8930. The video codec device instance contains information
of mem type used, vidc bus data and the resources

Change-Id: I96c3dd339e00660c770e81a8bfd31d4c5c6cc505
Signed-off-by: Arun Menon <menon@codeaurora.org>
2012-03-25 13:41:06 -07:00
Jeremy Gebben
d01042d080 gpu: ion: set dma_address for contiguous heaps in ion_map_dma()
Ion carveout and content protect heap buffers do not
have a struct page associated with them. Thus
sg_phys() will not work reliably on these buffers,
so set dma_address on their scatterlists.

CRs-Fixed: 345257
Change-Id: Ifdad5ce497de170f47b4ee2f7a93563a5cbe1a96
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2012-03-25 13:39:39 -07:00
Jeremy Gebben
582fe31d27 msm: kgsl: set the dma_address field of scatterlists
Ion carveout and content protect heap buffers do not
have a struct page associated with them. Thus
sg_phys() will not work reliably on these buffers.
Set the dma_address field on physically contiguous
buffers.  When mapping a scatterlist to the gpummu
use sg_dma_address() first and if it returns 0
then use sg_phys().

Change-Id: Ie5f19986446be4383dfbfffa2534136b592e8e46
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2012-03-25 13:39:28 -07:00
Jeremy Gebben
74e57d4eb3 msm: iommu: use sg_dma_address() in iommu_map_range()
Ion carveout and content protect buffers do not have
a struct page and thus sg_phys() cannot be used on them.
Try sg_dma_address() first and if it returns 0 then
use sg_phys().

Change-Id: I95ccb8f5a3c86cd09ecf2a2737c260f4996059ac
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2012-03-25 13:37:40 -07:00
Mahesh Sivasubramanian
2d2c70595c msm: rpm-8930: Update RPM IDs as supported by the RPM driver
The RPM IDs for 8930 are updated to reflect the on bus IDs
supported by the Resource Power Manager(RPM) hardware.

Change-Id: I962676877cc5a388d60185a99b8a58563ecb36c2
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2012-03-25 13:37:20 -07:00
Gagan Mac
cd5b32752c msm: 8930: Add fabric devices to enable bus scaling on 8930
Add fabric devices to the kernel by listing them in initialization
data to enable bus scaling on msm8930

Change-Id: I071f4387413f0200f7ffe3b220c70da5815061d5
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
2012-03-25 13:36:48 -07:00
Linux Build Service Account
5209116689 Merge "msm: dcvs: Add 'msm-dcvs' cpufreq governor" into msm-3.0 2012-03-25 13:08:18 -07:00
Linux Build Service Account
fcb00cbe0a Merge "ASoC: msm: Reset pcm irq position in WRITE_DONE event" into msm-3.0 2012-03-25 09:35:15 -07:00
Praveen Chidambaram
5c8adf2454 msm: dcvs: Add 'msm-dcvs' cpufreq governor
The 'msm-dcvs' CPUFreq governor interfaces the msm_dcvs driver frequency
change requests with the CPUFreq framework.

Change-Id: I950e5b09f568412760d9b022f59f208c6bcb54ce
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
2012-03-25 08:01:46 -06:00
Marc Kleine-Budde
bc5acd977c USB: ci13xxx_msm: add module license
Since commit "193ab2a usb: gadget: allow multiple gadgets to be built"
the udc controllers can be compiled as a module. The ci13xxx_msm driver
is missing the MODULE_LICENSE statement, so loading fails with:

ci13xxx_msm: module license 'unspecified' taints kernel.
ci13xxx_msm: Unknown symbol dev_set_name (err 0)
ci13xxx_msm: Unknown symbol platform_get_irq (err 0)
ci13xxx_msm: Unknown symbol device_unregister (err 0)
ci13xxx_msm: Unknown symbol usb_add_gadget_udc (err 0)
ci13xxx_msm: Unknown symbol put_device (err 0)
ci13xxx_msm: Unknown symbol platform_driver_register (err 0)
ci13xxx_msm: Unknown symbol platform_get_resource (err 0)
ci13xxx_msm: Unknown symbol device_register (err 0)
ci13xxx_msm: Unknown symbol usb_del_gadget_udc (err 0)

This patch adds the missing MODULE_LICENSE statement with GPL v2 according
to the header of the driver.

Tested-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[esalman@codeaurora.org -
	Add missing MODULE_LICENSE to hsic flavor well]
Signed-off-by: Lena Salman <esalman@codeaurora.org>
Change-Id: Iaa5706a5203bca556468fa41f4723ca88b0c71cf
2012-03-25 15:43:24 +02:00
Linux Build Service Account
e9775e89e6 Merge changes I71923764,I0a311bac into msm-3.0
* changes:
  usb: gadget: allow android gadget to bind/unbind several times
  usb: gadget: ci13xxx_msm: allow to be loaded/unloaded as module
2012-03-25 06:22:34 -07:00
Linux Build Service Account
eb51c3f8bd Merge "msm: kgsl: Do not take spinlock when mapping to IOMMU" into msm-3.0 2012-03-25 06:22:34 -07:00
Praveen Chidambaram
8ea3dcd28b msm: dcvs_idle: Provide CPU core idle information to msm_dcvs
The msm_dcvs algorithm takes in core idle information and outputs the
frequency for the core to run at. This driver registers with the
CPU_PM interface to get the idle enter and idle exit notification and
passes this to the msm_dcvs driver for every CPU core.

Change-Id: I2b7ddbae2ac00f7c129d307022f8b1b928e2956e
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
2012-03-25 03:33:22 -06:00
Lena Salman
d092f2d80b usb: gadget: allow android gadget to bind/unbind several times
This is needed if we want to change the underlying udc, or insmod
the dynamically linked udc after android gadget is already up.

Change-Id: I71923764af85f4d50a2ebf7c7476cf0ef23fe819
Signed-off-by: Lena Salman <esalman@codeaurora.org>
2012-03-25 10:32:11 +02:00
Lena Salman
20984756ff usb: gadget: ci13xxx_msm: allow to be loaded/unloaded as module
Add support for the module to be dynamically loaded and unloaded.
This change adds remove function to restore all initialized values.

Change-Id: I0a311bac469aa87fa7892fa2b5f4db07f17abf0f
Signed-off-by: Lena Salman <esalman@codeaurora.org>
2012-03-25 10:32:11 +02:00
Shubhraprakash Das
badaeda313 msm: kgsl: Do not take spinlock when mapping to IOMMU
The IOMMU driver takes a spinlock internally when mapping, so
do not take an additional spinlock when mapping to IOMMU table.

Change-Id: I772ffb09af95ed15dc2c3495affa9efd48e4af5b
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2012-03-25 02:03:44 -06:00
Linux Build Service Account
cb655f079b Merge "Revert "msm: kgsl: Add per context timestamp"" into msm-3.0 2012-03-25 00:56:45 -07:00
Linux Build Service Account
fcb4438866 Merge changes I7fe8fede,I89a138c9 into msm-3.0
* changes:
  defconfig: 8064: Enable GSS sub-system restart
  msm: gss-8064: Add support for GSS sub-system restart
2012-03-25 00:56:45 -07:00
Linux Build Service Account
d3e0aab89f Merge "hwmon: pm8xxx-adc: Fix Buffer overflow" into msm-3.0 2012-03-25 00:56:45 -07:00
Linux Build Service Account
de63ad6cb4 Merge "Bluetooth: Wait for smd open before registering with hci" into msm-3.0 2012-03-25 00:56:45 -07:00
Linux Build Service Account
087d1badcc Merge "msm: watchdog: Add support for VIC based devices" into msm-3.0 2012-03-24 21:35:43 -07:00
Wei Zou
c8c0163607 Revert "msm: kgsl: Add per context timestamp"
This reverts commit 2a811252c7.

Change-Id: Ic3018f19eb1a089ae67e0f3c253cc00e7d0285e3
Signed-off-by: Wei Zou <wzou@codeaurora.org>
2012-03-24 17:29:50 -07:00
Linux Build Service Account
4a08e029e1 Merge "board-qrd7627a: Add nand device in the 8625 EVB device list" into msm-3.0 2012-03-24 15:49:06 -07:00
Linux Build Service Account
5e17c88eb8 Merge "msm: ion: Increase QSECOM heap to 6MB" into msm-3.0 2012-03-24 15:49:06 -07:00
Joel King
0e8f7c82eb msm: mdm: do not pull AP2MDM_STATUS gpio low during normal shutdown
Pulling the AP2MDM_STATUS gpio low during normal shutdown causes
the mdm modem to think that the APQ had crashed instead of a graceful
shutdown.

Change-Id: I7c2586fa02bd8c303509b1e0b885981f92b30f12
Signed-off-by: Joel King <joelking@codeaurora.org>
2012-03-24 14:56:55 -07:00
Rohit Vaswani
141ce7d1ef defconfig: 8064: Enable GSS sub-system restart
The GSS subsystem can now be restarted using the SSR
driver and PIL

Change-Id: I7fe8fede987dc347688857e31e56bdcc5f743ff0
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2012-03-24 14:00:49 -07:00
Rohit Vaswani
d0fb4183f5 msm: gss-8064: Add support for GSS sub-system restart
The GSS subsystem supports subsystem restart using PIL.
The subsystem restart driver registers for the smsm state
change notification and also the GSS watchdog bark

Change-Id: I89a138c9d0781d14b526752095cce4e0d2dcc326
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2012-03-24 14:00:49 -07:00
Sriranjan Srikantam
b52f007fe0 ASoC: msm: Reset pcm irq position in WRITE_DONE event
Pcm irq position is incremented by one extra period size if
WRITE_DONE event is received during paused state as elapsed
is not called and as a result playback gets muted sometimes
Fix this mute issue by resetting the pcm irq position in
WRITE_DONE event instead of pointer operation

Change-Id: Ia33e5188674b1f6a54619169b84bdd5be22ad73a
CRs-Fixed: 344436
Signed-off-by: Sriranjan Srikantam <cssrika@codeaurora.org>
2012-03-24 11:57:58 -07:00
Taniya Das
9fdb7198ae msm: timer: set_delay_fn not used for 8625
Timer based delay is not working after the target comes
out of power collapse.

Change-Id: I53ae7b9f2ab147cb9c2f0c070868db060a31af29
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2012-03-25 00:02:46 +05:30
Taniya Das
bb0b6db9af Revert "msm: timer: Enable ARCH_HAS_READ_CURRENT_TIMER for all MSMs"
This reverts commit ef18f6c9d3.

Change-Id: Iaf9325e58e40818829c684f35c0221390f18c838
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2012-03-25 00:00:46 +05:30
Aparna Mallavarapu
beafcbc448 board-qrd7627a: Add nand device in the 8625 EVB device list
8x25 EVB supports 2k page nand. Add nand device to the device
platform list for 8625.

Change-Id: I9cd4a539d3a876d39f18250241992c99193f401c
Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org>
2012-03-24 23:59:05 +05:30
Linux Build Service Account
0609244114 Merge "radio-iris: Configure the search direction value as passed by FM APP" into msm-3.0 2012-03-24 10:43:09 -07:00
Anantha Krishnan
4667d9d437 radio-iris: Configure the search direction value as passed by FM APP
Do not invert the values passed for the search direction.
Configure the value of search direction as passed from the user-space.

Change-Id: Ic02714174740f4abb0c4b209a6f83c8f2c8575e6
CRs-Fixed: 340401
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2012-03-24 07:37:38 -06:00
Linux Build Service Account
50a8d3e350 Merge "ARM: local timers: introduce a new registration interface" into msm-3.0 2012-03-24 06:33:57 -07:00
Linux Build Service Account
3090c12614 Merge "msm: 7x27A: Increase pmem size to allow H.264 720P decoding" into msm-3.0 2012-03-24 02:16:52 -07:00
Linux Build Service Account
3e3e6735be Merge "usb: smd: Fix crash during reset when RmNet is connected" into msm-3.0 2012-03-24 02:16:52 -07:00
Linux Build Service Account
42f87cb160 Merge "board: 8064: Add boot parameter support for HDMI primary display" into msm-3.0 2012-03-24 00:24:56 -07:00
Linux Build Service Account
f3b5ee26c2 Merge "kernel/main: fix calling sysfs_notify from atomic context" into msm-3.0 2012-03-24 00:24:56 -07:00
Linux Build Service Account
672228892e Merge "msm: kgsl: Add per context timestamp" into msm-3.0 2012-03-24 00:24:56 -07:00
Linux Build Service Account
49b25d982d Merge "mdm: Ignore mdm status interrupt if mdm is not ready" into msm-3.0 2012-03-24 00:24:56 -07:00