OMAP2+: hwmod: use status bit info for reset line
authoromar ramirez <omar.ramirez@ti.com>
Fri, 4 Mar 2011 20:32:44 +0000 (13:32 -0700)
committerPaul Walmsley <paul@pwsan.com>
Thu, 10 Mar 2011 10:23:56 +0000 (03:23 -0700)
commitcc1226e7635011c7dd1e786770ed51ee751800f2
tree3f9098c53cf5a2d0f809d8bd22c1fb32ff31f4e7
parent4d2274c543e78a267989da5f9b12e223cd87839f
OMAP2+: hwmod: use status bit info for reset line

On OMAP2 and OMAP3 the reset ctrl shift doesn't match the
status bit, as it does on OMAP4, when handling the reset lines.

This patch adds a new member in the reset info structure, so now it
can be added as part of hwmod data, and checked accordingly for
OMAP2 or 3; otherwise, there could be cases when the shift masks
doesn't match both of the registers, and a successful reset might
throw an error message or vice versa.

Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
[paul@pwsan.com: added a warning if st_shift used on OMAP4; renamed 'r'
 variable; improved some documentation]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/prm2xxx_3xxx.c
arch/arm/mach-omap2/prm2xxx_3xxx.h
arch/arm/plat-omap/include/plat/omap_hwmod.h