linux-hardened/arch/arm/plat-omap
Tero Kristo ce80979aed ARM: OMAP4: hwmod data: add support for lostcontext_mask
Currently hwmod only provides the offset for the context lose
register, and if we attempt to share the same register between two or
more hwmods, the resulting context loss counts get wrong. Thus, we
need a way to specify which bits are used for the context loss
information for each.  This is accomplished by adding a new field to
the omap4 prcm struct, 'lostcontext_mask', which specifies a bit-mask
to use for filtering the register.

Mark the affected hwmods appropriately.  'l4_abe' hwmod uses the
LOSTMEM_AESSMEM bit of RM_ABE_AESS_CONTEXT register, as l4_abe doesn't
have its own dedicated register for this purpose. This register is
shared with 'aess' hwmod, thus both hwmods must also specify which
bits of the register are used for them.

This patch only adds the hwmod data, but a future patch should add
code support such that only the specified bits are read and cleared by
the context lose counter update code. If a hwmod doesn't specify
'lostcontext_mask' (default behavior), the whole contents of the
context register should be used without any filtering.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
[paul@pwsan.com: updated to apply after conversion to use flag bit for
 missing module context-loss register; combined data and code patches;
 dropped code change due to serial driver breakage]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
2012-09-23 17:28:19 -06:00
..
include/plat ARM: OMAP4: hwmod data: add support for lostcontext_mask 2012-09-23 17:28:19 -06:00
clock.c ARM: OMAP2+: hwmod: get rid of all omap_clk_get_by_name usage 2012-09-22 10:50:01 -06:00
common.c ARM: OMAP: remove plat/board.h file 2012-09-10 16:39:21 -07:00
counter_32k.c ARM: OMAP: Split plat/hardware.h, use local soc.h for omap2+ 2012-09-12 18:06:31 -07:00
debug-devices.c ARM: OMAP: remove plat/board.h file 2012-09-10 16:39:21 -07:00
debug-leds.c ARM: OMAP: Move gpio.h to include/linux/platform_data 2012-09-12 18:06:30 -07:00
dma.c These fixes are needed to fix non-omap build breakage for 2012-09-23 17:15:44 -06:00
dmtimer.c ARM: OMAP: dmtimers: Fix locking issue in omap_dm_timer_request*() 2012-08-13 06:23:16 -07:00
fb.c ARM: OMAP1: move lcd pdata out of arch/arm/* 2012-09-10 16:34:00 -07:00
i2c.c ARM: OMAP1: Define OMAP1_INT_I2C locally 2012-09-12 18:06:29 -07:00
Kconfig ARM: OMAP2+: Remove hardcoded IRQs and enable SPARSE_IRQ 2012-09-12 18:06:30 -07:00
mailbox.c ARM: OMAP: enable mailbox irq per instance 2012-05-13 16:09:39 +03:00
Makefile ARM: OMAP2+ Move SoC specific headers to be local to mach-omap2 2012-09-12 18:06:31 -07:00
mux.c ARM: OMAP: clean up some smatch warnings, fix some printk(KERN_ERR ... 2012-09-12 02:57:04 -06:00
omap-pm-noop.c ARM: OMAP: unwrap strings 2012-09-12 02:57:10 -06:00
omap_device.c ARM: OMAP2+: omap_device: expose hwmod assert/deassert to omap devices 2012-09-23 17:28:18 -06:00
sram.c These fixes are needed to fix non-omap build breakage for 2012-09-23 17:15:44 -06:00
sram.h OMAP: plat-omap: Fix static function warnings 2010-10-08 10:12:38 -07:00