aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authoromar ramirez <omar.ramirez@ti.com>2011-03-04 15:32:44 -0500
committerPaul Walmsley <paul@pwsan.com>2011-03-10 05:23:56 -0500
commitcc1226e7635011c7dd1e786770ed51ee751800f2 (patch)
tree3f9098c53cf5a2d0f809d8bd22c1fb32ff31f4e7 /arch/arm/plat-omap
parent4d2274c543e78a267989da5f9b12e223cd87839f (diff)
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>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/include/plat/omap_hwmod.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h
index 5924ecdfb95a..78f1cc88ff06 100644
--- a/arch/arm/plat-omap/include/plat/omap_hwmod.h
+++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h
@@ -124,6 +124,7 @@ struct omap_hwmod_dma_info {
124 * struct omap_hwmod_rst_info - IPs reset lines use by hwmod 124 * struct omap_hwmod_rst_info - IPs reset lines use by hwmod
125 * @name: name of the reset line (module local name) 125 * @name: name of the reset line (module local name)
126 * @rst_shift: Offset of the reset bit 126 * @rst_shift: Offset of the reset bit
127 * @st_shift: Offset of the reset status bit (OMAP2/3 only)
127 * 128 *
128 * @name should be something short, e.g., "cpu0" or "rst". It is defined 129 * @name should be something short, e.g., "cpu0" or "rst". It is defined
129 * locally to the hwmod. 130 * locally to the hwmod.
@@ -131,6 +132,7 @@ struct omap_hwmod_dma_info {
131struct omap_hwmod_rst_info { 132struct omap_hwmod_rst_info {
132 const char *name; 133 const char *name;
133 u8 rst_shift; 134 u8 rst_shift;
135 u8 st_shift;
134}; 136};
135 137
136/** 138/**