Merge "mdm9x15: Add board detect info for the mdm9310 chip."
diff --git a/target/mdm9615/init.c b/target/mdm9615/init.c
index 01e068f..e7b7961 100644
--- a/target/mdm9615/init.c
+++ b/target/mdm9615/init.c
@@ -2,7 +2,7 @@
  * Copyright (c) 2009, Google Inc.
  * All rights reserved.
  *
- * Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2009-2013, 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
@@ -196,6 +196,7 @@
 void board_info(void)
 {
 	struct smem_board_info_v4 board_info_v4;
+	struct smem_board_info_v7 board_info_v7;
 	unsigned int board_info_len = 0;
 	unsigned smem_status;
 	unsigned format = 0;
@@ -221,7 +222,19 @@
 				target_msm_id =
 				    board_info_v4.board_info_v3.msm_id;
 			}
-		}
+		} else if (format == 7) {
+			board_info_len = sizeof(board_info_v7);
+			smem_status =
+			    smem_read_alloc_entry(SMEM_BOARD_INFO_LOCATION,
+						  &board_info_v7,
+						  board_info_len);
+			if (!smem_status) {
+				id = board_info_v7.board_info_v3.hw_platform;
+				target_msm_id =
+				    board_info_v7.board_info_v3.msm_id;
+			}
+		} else
+			ASSERT(0);
 	}
 	return;
 }