msm7627a/msm8x25: Fix VDD_SVS_PLEVEL for 8x25 and 7x27A targets
Change-Id: I5b60c17c7343d14aeca61efc8d8edc70ad2eaa57
diff --git a/target/msm7627a/init.c b/target/msm7627a/init.c
index de4326b..0915a50 100644
--- a/target/msm7627a/init.c
+++ b/target/msm7627a/init.c
@@ -54,6 +54,7 @@
static struct ptable flash_ptable;
unsigned hw_platform = 0;
unsigned target_msm_id = 0;
+unsigned msm_version = 0;
/* Setting this variable to different values defines the
* behavior of CE engine:
@@ -203,7 +204,6 @@
ptable_dump(&flash_ptable);
flash_set_ptable(&flash_ptable);
}
-
void board_info(void)
{
struct smem_board_info_v4 board_info_v4;
@@ -231,6 +231,8 @@
id = board_info_v4.board_info_v3.hw_platform;
target_msm_id =
board_info_v4.board_info_v3.msm_id;
+ msm_version =
+ board_info_v4.board_info_v3.msm_version;
}
}
@@ -328,6 +330,13 @@
return target_msm_id;
}
+unsigned board_msm_version(void)
+{
+ board_info();
+ msm_version = (msm_version & 0xffff0000) >> 16;
+ return msm_version;
+}
+
crypto_engine_type board_ce_type(void)
{
return platform_ce_type;