summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishwanath BS <vishwanath.bs@ti.com>2012-02-23 17:35:45 +0800
committerAndy Green <andy.green@linaro.org>2012-06-20 10:27:37 +0800
commiteefda71b3cf5502471d7fca39d2d436b3d1d0847 (patch)
tree3e89af7a975436f2eafa7e064fc084d9b9f62547
parent9a1ba9f4c19c4a8661cfe1efe0f459d6f506acc0 (diff)
OMAP5: PM: VP: recover device with a cold reset
OMAP5 Voltage processor and PRM is reset only with a cold reset. So we hook the VP's recovery api to cold reset. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
-rw-r--r--arch/arm/mach-omap2/vp54xx_data.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/vp54xx_data.c b/arch/arm/mach-omap2/vp54xx_data.c
index 2b1baa2f9c1..4468900cebf 100644
--- a/arch/arm/mach-omap2/vp54xx_data.c
+++ b/arch/arm/mach-omap2/vp54xx_data.c
@@ -21,6 +21,7 @@
#include <plat/common.h>
+#include "pm.h"
#include "prm44xx.h"
#include "prm54xx.h"
#include "prm-regbits-54xx.h"
@@ -28,9 +29,16 @@
#include "vp.h"
+/* OMAP4 is hooked such that only a cold reset will reset VP */
+static void omap5_vp_recover(u8 vp_id)
+{
+ omap4_pm_cold_reset("Voltage Processor Recovery");
+}
+
static const struct omap_vp_ops omap5_vp_ops = {
.check_txdone = omap4_prm_vp_check_txdone,
.clear_txdone = omap4_prm_vp_clear_txdone,
+ .recover = omap5_vp_recover,
};
/*