target: msm8610: Enable the vibrator feature
Add the vibrator to indicate that phone is booting up to
end user.
CRs-Fixed: 646524
Change-Id: Ia0cac0b4900474d9bf7cc7f79189472e9dd18f60
diff --git a/target/msm8610/init.c b/target/msm8610/init.c
index 832b0ae..d085765 100644
--- a/target/msm8610/init.c
+++ b/target/msm8610/init.c
@@ -50,11 +50,13 @@
#include <platform/clock.h>
#include <platform/timer.h>
#include <shutdown_detect.h>
+#include <vibrator.h>
#define PMIC_ARB_CHANNEL_NUM 0
#define PMIC_ARB_OWNER_ID 0
#define TLMM_VOL_UP_BTN_GPIO 72
+#define VIBRATE_TIME 250
enum target_subtype {
HW_PLATFORM_SUBTYPE_SKUAA = 1,
@@ -166,11 +168,17 @@
target_sdc_init();
shutdown_detect();
+
+ /* turn on vibrator to indicate that phone is booting up to end user */
+ vib_timed_turn_on(VIBRATE_TIME);
}
void target_uninit(void)
{
mmc_put_card_to_sleep(dev);
+
+ /* wait for the vibrator timer is expried */
+ wait_vib_timeout();
}
#define SSD_CE_INSTANCE 1