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>
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>
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>
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>
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>
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>
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>
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>
Make a dedicated board file for the KGSL GPU device.
Change-Id: Ia9fc45e650adc102e82675d412a52965672b25fa
Signed-off-by: Sudhakara Rao Tentu <srtentu@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
The GSS subsystem can now be restarted using the SSR
driver and PIL
Change-Id: I7fe8fede987dc347688857e31e56bdcc5f743ff0
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
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>
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>
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>
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>