platform: msm_shared: Extract partial goods from pte register
PTE register stores the value of partial goods at bits 23 to 27.
Extract the partial goods values from these bits before using.
Change-Id: Ia0e8d802e03e108ccbd823bd90b47becdd158f26
diff --git a/platform/msm_shared/partial_goods.c b/platform/msm_shared/partial_goods.c
index 8ecdb93..d2c3ab6 100644
--- a/platform/msm_shared/partial_goods.c
+++ b/platform/msm_shared/partial_goods.c
@@ -45,6 +45,12 @@
const struct fdt_property *prop = NULL;
const char *replace_str = NULL;
+ /*
+ * The PTE register bits 23 to 27 have the partial goods
+ * info, extract the partial goods value before using
+ */
+ reg = (reg & 0x0f800000) >> 23;
+
/* If none of the DTB needs update */
if (!reg)
return;