aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAparna Mallavarapu <aparnam@codeaurora.org>2013-03-20 18:34:36 +0530
committerAparna Mallavarapu <aparnam@codeaurora.org>2013-03-21 12:18:36 +0530
commit7784b587584c5663684022260ecffbd950ab4246 (patch)
tree8ea6876c760dee530966e013dad51a59cf49a24f
parent5f0982257e697c70a3117098b3e01c80574856ef (diff)
downloadlk-7784b587584c5663684022260ecffbd950ab4246.tar.gz
mdm9x15: Add board detect info for the mdm9310 chip.
Change-Id: I70e9d7817da298de3015de5fddc8ad54516f7a33
-rw-r--r--target/mdm9615/init.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/target/mdm9615/init.c b/target/mdm9615/init.c
index 01e068f9..e7b7961d 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 @@ unsigned check_reboot_mode(void)
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 @@ void board_info(void)
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;
}