aboot: improve appended device tree support

Extends the device tree by 1024 bytes to allow for extra
stuff added by the bootloader.

Copies the device tree over the tags since the tags get thrown
out if DTB is preset anyway.

Clears out the old DTB magic so if kernel turns on the
APPENDED_DTB config option, it won't find the wrong one.

Change-Id: I8ab2920ed6b0f8a57a90127cd1cba41dc8549339
Signed-off-by: Dima Zavin <dima@android.com>
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
diff --git a/platform/msm_shared/include/dev_tree.h b/platform/msm_shared/include/dev_tree.h
index 389ab49..a27fafd 100644
--- a/platform/msm_shared/include/dev_tree.h
+++ b/platform/msm_shared/include/dev_tree.h
@@ -40,6 +40,8 @@
 #define DTB_MAGIC               0xedfe0dd0
 #define DTB_OFFSET              0x2C
 
+#define DTB_PAD_SIZE            1024
+
 struct dt_entry
 {
 	uint32_t platform_id;
@@ -65,5 +67,5 @@
 struct dt_entry * dev_tree_get_entry_ptr(struct dt_table *);
 int update_device_tree(void *, const char *, void *, unsigned);
 int dev_tree_add_mem_info(void *fdt, uint32_t offset, uint32_t size, uint32_t addr);
-uint32_t dev_tree_appended(void *);
+void *dev_tree_appended(void *kernel, void *tags);
 #endif