ARM: OMAP4: PM: add errata support
authorTero Kristo <t-kristo@ti.com>
Thu, 18 Oct 2012 09:20:04 +0000 (12:20 +0300)
committerKevin Hilman <khilman@ti.com>
Mon, 5 Nov 2012 22:26:43 +0000 (14:26 -0800)
Added similar PM errata flag support as omap3 has. This should be used
in similar manner, set the flags during init time, and check the flag
values during runtime.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/pm.h
arch/arm/mach-omap2/pm44xx.c

index 67d66131cfa796c9f0724e43a2820a0752e1fa73..f76a0d0f839f9b55f037664ab2b859912b24ef1b 100644 (file)
@@ -102,6 +102,13 @@ extern void enable_omap3630_toggle_l2_on_restore(void);
 static inline void enable_omap3630_toggle_l2_on_restore(void) { }
 #endif         /* defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) */
 
+#if defined(CONFIG_ARCH_OMAP4)
+extern u16 pm44xx_errata;
+#define IS_PM44XX_ERRATUM(id)          (pm44xx_errata & (id))
+#else
+#define IS_PM44XX_ERRATUM(id)          0
+#endif
+
 #ifdef CONFIG_POWER_AVS_OMAP
 extern int omap_devinit_smartreflex(void);
 extern void omap_enable_smartreflex_on_init(void);
index 04922d1490683d8c0a7d443ea6806a9032535b29..0adbd7d81ce81816fa3808dc05b2a4376dd6eb5f 100644 (file)
@@ -34,6 +34,7 @@ struct power_state {
 };
 
 static LIST_HEAD(pwrst_list);
+u16 pm44xx_errata;
 
 #ifdef CONFIG_SUSPEND
 static int omap4_pm_suspend(void)