summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2012-02-23 17:35:30 +0800
committerAndy Green <andy.green@linaro.org>2012-06-20 10:27:36 +0800
commit9a1ba9f4c19c4a8661cfe1efe0f459d6f506acc0 (patch)
treedc91042d7069d1967c0448e599958b012995f16f
parent1709b975ee7742544a4998b1d7c5bc5840278d75 (diff)
OMAP4: PM: VP: recover device with a cold reset
OMAP4 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: Nishanth Menon <nm@ti.com>
-rw-r--r--arch/arm/mach-omap2/vp44xx_data.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/vp44xx_data.c b/arch/arm/mach-omap2/vp44xx_data.c
index 9d14881d7fd..cea5a33205c 100644
--- a/arch/arm/mach-omap2/vp44xx_data.c
+++ b/arch/arm/mach-omap2/vp44xx_data.c
@@ -21,15 +21,23 @@
#include "common.h"
+#include "pm.h"
#include "prm44xx.h"
#include "prm-regbits-44xx.h"
#include "voltage.h"
#include "vp.h"
+/* OMAP4 is hooked such that only a cold reset will reset VP */
+static void omap4_vp_recover(u8 vp_id)
+{
+ omap4_pm_cold_reset("Voltage Processor Recovery");
+}
+
static const struct omap_vp_ops omap4_vp_ops = {
.check_txdone = omap4_prm_vp_check_txdone,
.clear_txdone = omap4_prm_vp_clear_txdone,
+ .recover = omap4_vp_recover,
};
/*