linux/arch/arm/plat-omap/include/plat
Jon Hunter ae6672cb47 ARM: OMAP: Clean-up dmtimer reset code
Only OMAP1 devices use the omap_dm_timer_reset() and so require the
omap_dm_timer_wait_for_reset() and __omap_dm_timer_reset() functions.
Therefore combine these into a single function called omap_dm_timer_reset()
and simplify the code.

The omap_dm_timer_reset() function is now the only place that is using the
omap_dm_timer structure member "sys_stat". Therefore, remove this member and
just use the register offset definition to simplify and clean-up the code. The
TISTAT register is only present on revision 1 timers and so check for this in
the omap_dm_timer_reset() function.

Please note that for OMAP1 devices, the TIOCP_CFG register does not have the
clock-activity field and so when we reset the timer for an OMAP1 device we
only need to configure the idle-mode field in the TIOCP_CFG register.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
2012-11-16 10:35:05 -06:00
..
counter-32k.h ARM: OMAP: Remove plat-omap/common.h 2012-10-31 15:37:13 -07:00
cpu.h ARM: OMAP1: Remove relative includes 2012-10-31 15:37:14 -07:00
debug-devices.h ARM: OMAP: Fix relative includes for debug-devices.h 2012-10-31 15:37:13 -07:00
dmtimer.h ARM: OMAP: Clean-up dmtimer reset code 2012-11-16 10:35:05 -06:00
i2c.h ARM: OMAP: Fix relative includes for shared i2c.h file 2012-10-31 15:37:13 -07:00
iommu2.h omap: iommu: omapify 'struct iommu' and exposed API 2011-08-26 11:46:01 +02:00
iommu.h ARM: OMAP3: hwmod data: add mmu data for iva and isp 2012-09-23 17:28:23 -06:00
iopgtable.h omap: iommu: omapify 'struct iommu' and exposed API 2011-08-26 11:46:01 +02:00
iovmm.h iommu/omap: eliminate the public omap_find_iommu_device() method 2011-12-05 15:47:39 +02:00
mailbox.h OMAP: mailbox: add notification support for multiple readers 2010-12-02 05:43:16 -06:00
omap-serial.h Revert "serial: omap: fix software flow control" 2012-10-24 11:57:21 -07:00
prcm.h ARM: OMAP: Allow platforms to hook reset cleanly 2011-01-27 16:39:48 -08:00
sram.h ARM: OMAP: Introduce common omap_map_sram() and omap_sram_reset() 2012-10-31 10:14:13 -07:00
timex.h
vram.h OMAPDSS: Remove video SRAM support 2012-02-23 09:38:26 +02:00