dload_util: Add normal dload mode entrance
Enum determines if the requested dload mode is emergency or normal.
All dependent function calls are updated respectively.
msm8974 and msm8226 set_download_mode() functions are updated with the
target-specific normal download mode address
Change-Id: I500c1e3c7e835ad6a6fa59ea2701790a7fd12769
diff --git a/include/platform.h b/include/platform.h
index 1c5b27e..aa63431 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -23,6 +23,8 @@
#ifndef __PLATFORM_H
#define __PLATFORM_H
+#include <dload_util.h>
+
#define PA(x) platform_get_virt_to_phys_mapping(x)
#define VA(x) platform_get_phys_to_virt_mapping(x)
@@ -50,6 +52,6 @@
unsigned check_reboot_mode(void);
void platform_uninit_timer(void);
void reboot_device(unsigned);
-int set_download_mode(void);
+int set_download_mode(enum dload_mode mode);
#endif