platform/target: Implement weak functions for boot device apis

Boot device related apis are used only on targets starting apq8084, msm8994
etc. We implement weak functions to enable successful compilation for
targets which doesnt use this function.

CRs-Fixed: 612217
Change-Id: I84f1a28c511cecceb0f7b8914798a3b136cb57b4
diff --git a/include/target.h b/include/target.h
index 0af99e1..34798c6 100644
--- a/include/target.h
+++ b/include/target.h
@@ -59,7 +59,6 @@
 void target_load_ssd_keystore(void);
 bool target_is_ssd_enabled(void);
 void *target_mmc_device();
-uint32_t target_boot_device_emmc();
 
 bool target_display_panel_node(char *panel_name, char *pbuf,
 	uint16_t buf_size);
@@ -73,12 +72,5 @@
 void target_usb_phy_mux_configure(void);
 target_usb_iface_t * target_usb30_init();
 bool target_is_cdp_qvga();
-/* Boot device */
-enum boot_device
-{
-	BOOT_DEFAULT=0,
-	BOOT_EMMC=2,
-	BOOT_UFS=4,
-};
 
 #endif
diff --git a/platform/init.c b/platform/init.c
index 1e39cfc..412184e 100644
--- a/platform/init.c
+++ b/platform/init.c
@@ -119,3 +119,13 @@
 {
 	return (uint32_t)MSM_SHARED_BASE;
 }
+
+__WEAK uint32_t platform_boot_dev_isemmc()
+{
+        return 1;
+}
+
+__WEAK uint32_t platform_get_boot_dev()
+{
+        return 0;
+}
diff --git a/target/init.c b/target/init.c
index a7b919a..16cf8ac 100644
--- a/target/init.c
+++ b/target/init.c
@@ -155,16 +155,6 @@
 {
 }
 
-__WEAK uint32_t target_boot_device_emmc()
-{
-	return 1;
-}
-
-__WEAK uint32_t target_get_boot_device()
-{
-	return 0;
-}
-
 __WEAK uint8_t target_panel_auto_detect_enabled()
 {
 	return 0;