target/platform: msm8994: Fix mmu table mapping

In the existing implementation LK mmu mapping is done in two ways one
with the local mmu table maintained inside LK and other by reading SMEM
ram partition table. Due to this some of the memory in LK gets mapped
twice with different attributes. Mapping the same memory twice with different
attributes is not allowed as per armv8 and this causes boot up issues.
To fix this issue map the memory needed memory using local mmu table
instead of the complete DDR.

Change-Id: I43b174ea20cbc5afd9dc6186c86a2d01c4ce1dc6
diff --git a/target/msm8994/meminfo.c b/target/msm8994/meminfo.c
index cb8c726..b0eec92 100644
--- a/target/msm8994/meminfo.c
+++ b/target/msm8994/meminfo.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
@@ -84,5 +84,5 @@
 
 unsigned target_get_max_flash_size(void)
 {
-	return (512 * 1024 * 1024);
+	return SCRATCH_SIZE;
 }