target: init: add haptic vibrator support
Add LRA vibrator support for MSM8956 and APQ8056.
Change-Id: I6cc3f4678f6304f43a84032b25e739748652ca7e
diff --git a/target/init.c b/target/init.c
index c3893d3..6eba00e 100644
--- a/target/init.c
+++ b/target/init.c
@@ -239,13 +239,21 @@
ret = VIB_ERM_TYPE;
break;
case MSM8976:
+ case MSM8956:
+ case APQ8056:
ret = VIB_LRA_TYPE;
break;
+ default:
+ dprintf(CRITICAL,"Unsupported platform id\n");
+ break;
}
break;
case HW_PLATFORM_QRD:
ret = VIB_ERM_TYPE;
break;
+ default:
+ dprintf(CRITICAL,"Unsupported platform id\n");
+ break;
}
return ret;
}