platform: msm_shared: Change to parse recovery image for dtbo selection.

The recovery partition must be self-sufficient and cannot depend
on other partitions. While booting into recovery, the bootloader
must load the DTBO image that is compatible with the recovery image.
Change check the header version for appended DTBO, and extracts
appended dtbo in case booting into recovery mode.

Change-Id: Idfb0e0113d72c0fb40b346a6281b259c00a40d05
diff --git a/platform/msm_shared/include/dev_tree.h b/platform/msm_shared/include/dev_tree.h
index a9ea7a6..1d8dd07 100644
--- a/platform/msm_shared/include/dev_tree.h
+++ b/platform/msm_shared/include/dev_tree.h
@@ -249,6 +249,7 @@
 }dtbo_error;
 
 dtbo_error load_validate_dtbo_image(void **dtbo_img, uint32_t *dtbo_img_size);
+void get_recovery_dtbo_info(uint32_t *dtbo_size, void **dtbo_buf);
 int dev_tree_validate(struct dt_table *table, unsigned int page_size, uint32_t *dt_hdr_size);
 int dev_tree_get_entry_info(struct dt_table *table, struct dt_entry *dt_entry_info);
 int update_device_tree(void *fdt, const char *, void *, unsigned);