nsekar@codeaurora.org has uploaded this change for review.

View Change

QCS405: Change DRAM size to 1GB

Change-Id: I94f01141d6a537166db3900cf21fc2813cfe96dc
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Nitheesh Sekar <nsekar@codeaurora.org>
---
M src/soc/qualcomm/qcs405/cbmem.c
M src/soc/qualcomm/qcs405/include/soc/mmu.h
M src/soc/qualcomm/qcs405/soc.c
3 files changed, 3 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/29960/1
diff --git a/src/soc/qualcomm/qcs405/cbmem.c b/src/soc/qualcomm/qcs405/cbmem.c
index 3b9ad4a..e065409 100644
--- a/src/soc/qualcomm/qcs405/cbmem.c
+++ b/src/soc/qualcomm/qcs405/cbmem.c
@@ -17,5 +17,5 @@

void *cbmem_top(void)
{
- return (void *)((uintptr_t)4 * GiB);
+ return (void *)((uintptr_t)3 * GiB);
}
diff --git a/src/soc/qualcomm/qcs405/include/soc/mmu.h b/src/soc/qualcomm/qcs405/include/soc/mmu.h
index 3951f96..7bf024f 100644
--- a/src/soc/qualcomm/qcs405/include/soc/mmu.h
+++ b/src/soc/qualcomm/qcs405/include/soc/mmu.h
@@ -16,7 +16,7 @@
#ifndef _SOC_QUALCOMM_QCS405_MMU_H__
#define _SOC_QUALCOMM_QCS405_MMU_H__

-#define DRAMSIZE4GB 0x100000000
+#define DRAMSIZE1GB 0x40000000

void qcs405_mmu_init(void);
#ifdef CONFIG_QC_SOC_SIMULATE
diff --git a/src/soc/qualcomm/qcs405/soc.c b/src/soc/qualcomm/qcs405/soc.c
index c97822a..3de3c02 100644
--- a/src/soc/qualcomm/qcs405/soc.c
+++ b/src/soc/qualcomm/qcs405/soc.c
@@ -21,7 +21,7 @@

static void soc_read_resources(device_t dev)
{
- ram_resource(dev, 0, (uintptr_t)_dram / KiB, DRAMSIZE4GB / KiB);
+ ram_resource(dev, 0, (uintptr_t)_dram / KiB, DRAMSIZE1GB / KiB);
reserved_ram_resource(dev, 1, (uintptr_t)_dram_reserved / KiB,
_dram_reserved_size / KiB);
}

To view, visit change 29960. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I94f01141d6a537166db3900cf21fc2813cfe96dc
Gerrit-Change-Number: 29960
Gerrit-PatchSet: 1
Gerrit-Owner: nsekar@codeaurora.org
Gerrit-MessageType: newchange