Merge "target: msm8226: Add support to set boot done flag in the pmic."
diff --git a/target/msm8226/init.c b/target/msm8226/init.c
index 52539a0..8f39ca7 100644
--- a/target/msm8226/init.c
+++ b/target/msm8226/init.c
@@ -35,6 +35,7 @@
#include <mmc.h>
#include <spmi.h>
#include <board.h>
+#include <pm8x41.h>
#define PMIC_ARB_CHANNEL_NUM 0
#define PMIC_ARB_OWNER_ID 0
@@ -80,6 +81,13 @@
}
}
+/* Do any target specific intialization needed before entering fastboot mode */
+void target_fastboot_init(void)
+{
+ /* Set the BOOT_DONE flag in PM8026 */
+ pm8x41_set_boot_done();
+}
+
void target_serialno(unsigned char *buf)
{
uint32_t serialno;