]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP4: PRM: add module hard reset support
authorBenoît Cousson <b-cousson@ti.com>
Tue, 21 Sep 2010 16:34:10 +0000 (10:34 -0600)
committerPaul Walmsley <paul@pwsan.com>
Tue, 21 Sep 2010 21:12:21 +0000 (15:12 -0600)
commit239598297119411a580578fb84faee89c64199c0
tree051f37298e6bc8b3b9256944c4c8e29322c01df3
parent4cfa6e3413da1e11be22ef9ebd13f120327dc834
OMAP4: PRM: add module hard reset support

Most processor modules (e.g., DSP, IVA, IPU) on OMAPs can be reset
under the control of the PRM.  This patch adds an API for this purpose
for OMAP4 devices:

int omap4_prm_is_hardreset_asserted(void __iomem *rstctrl_reg, u8 shift);
int omap4_prm_assert_hardreset(void __iomem *rstctrl_reg, u8 shift);
int omap4_prm_deassert_hardreset(void __iomem *rstctrl_reg, u8 shift);

This API is intended to be used only by the hwmod code - a subsequent
patch will add that support to hwmod.

This patch is a collaboration between Benoît Cousson <b-cousson@ti.com>
and Paul Walmsley <paul@pwsan.com>.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Benoît Cousson <b-cousson@ti.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/prm.h
arch/arm/mach-omap2/prm44xx.c [new file with mode: 0644]