msm8660: Support devices with more than 1G RAM
Currently rest of the system does not handle initialization of >1G
RAM correctly, hence just detecting >1G RAM devices as 1G RAM devices.
Change-Id: I113750d94a83fd72107e925654a57009e8536743
TODO: Update atags to pass in additional memory to kernel.
diff --git a/target/msm8660_surf/atags.c b/target/msm8660_surf/atags.c
index 7f91a71..3c4ab16 100644
--- a/target/msm8660_surf/atags.c
+++ b/target/msm8660_surf/atags.c
@@ -40,6 +40,7 @@
#define EBI1_ADDR_1280M 0x50000000
#define SIZE_768M 0x30000000 // 256M + 512M
+#define SIZE_1792M 0x70000000 // 256M + 512M + 1G
#define EBI1_CS1_ADDR_BASE 0x00A40024
@@ -77,6 +78,15 @@
*ptr++ = SIZE_768M;
*ptr++ = EBI1_ADDR_1280M;
}
+ else if (value == 0x80)
+ {
+ /* For 2GB RAM*/
+ *ptr++ = 4;
+ *ptr++ = 0x54410002;
+ //*ptr++ = SIZE_1792M;
+ *ptr++ = SIZE_768M;
+ *ptr++ = EBI1_ADDR_1280M;
+ }
return ptr;
}