Merge "target: msm8610: Enable the vibrator feature"
diff --git a/target/msm8610/init.c b/target/msm8610/init.c
index 3abe9b3..29e9b08 100644
--- a/target/msm8610/init.c
+++ b/target/msm8610/init.c
@@ -52,6 +52,7 @@
#include <platform/timer.h>
#include <crypto5_wrapper.h>
#include <shutdown_detect.h>
+#include <vibrator.h>
#define PMIC_ARB_CHANNEL_NUM 0
#define PMIC_ARB_OWNER_ID 0
@@ -66,6 +67,7 @@
#define CRYPTO_ENGINE_CMD_ARRAY_SIZE 20
#define TLMM_VOL_UP_BTN_GPIO 72
+#define VIBRATE_TIME 250
enum target_subtype {
HW_PLATFORM_SUBTYPE_SKUAA = 1,
@@ -179,12 +181,18 @@
shutdown_detect();
+ /* turn on vibrator to indicate that phone is booting up to end user */
+ vib_timed_turn_on(VIBRATE_TIME);
+
if (target_use_signed_kernel())
target_crypto_init_params();
}
void target_uninit(void)
{
+ /* wait for the vibrator timer is expried */
+ wait_vib_timeout();
+
mmc_put_card_to_sleep(dev);
if (crypto_initialized())