platform: mdm9640: Update the boot config register

For 9640 v2 msm the boot config register address has changed,
update the boot device detect apis to use the new address based
on the chip revision.

Change-Id: I96e9d04e9277799c2dda76af44e6c4e96171c939
diff --git a/platform/mdm9640/platform.c b/platform/mdm9640/platform.c
index c549287..7cbf165 100644
--- a/platform/mdm9640/platform.c
+++ b/platform/mdm9640/platform.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -154,3 +154,15 @@
 	/* Fixed 1-1 mapping */
 	return phys_addr;
 }
+
+uint32_t platform_boot_config()
+{
+	uint32_t boot_config;
+
+	if (board_soc_version() >= 0x20000)
+		boot_config = BOOT_CONFIG_REG_V2;
+	else
+		boot_config = BOOT_CONFIG_REG_V1;
+
+	return boot_config;
+}