summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/sdm845/include
diff options
context:
space:
mode:
authorT Michael Turney <mturney@codeaurora.org>2018-04-24 10:36:12 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-05-09 10:15:58 +0000
commit5b66288d51412d48df24e72e9d53b8e90cf4b562 (patch)
tree8b40fc15028e10862d71b1af8241936ac92ca75e /src/soc/qualcomm/sdm845/include
parent621e4d8b48a1485ff6457524af88b3da55e604cb (diff)
downloadcoreboot-5b66288d51412d48df24e72e9d53b8e90cf4b562.tar.xz
sdm845: Add DRAM resources
TEST=build Change-Id: Icf934caf8b4584ef2633054a5cc7f5be7cc734ee Signed-off-by: T Michael Turney <mturney@codeaurora.org> Reviewed-on: https://review.coreboot.org/25212 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/soc/qualcomm/sdm845/include')
-rw-r--r--src/soc/qualcomm/sdm845/include/soc/memlayout.ld8
-rw-r--r--src/soc/qualcomm/sdm845/include/soc/mmu.h2
-rw-r--r--src/soc/qualcomm/sdm845/include/soc/symbols.h4
3 files changed, 11 insertions, 3 deletions
diff --git a/src/soc/qualcomm/sdm845/include/soc/memlayout.ld b/src/soc/qualcomm/sdm845/include/soc/memlayout.ld
index 58a3032e39..9e5b35928e 100644
--- a/src/soc/qualcomm/sdm845/include/soc/memlayout.ld
+++ b/src/soc/qualcomm/sdm845/include/soc/memlayout.ld
@@ -46,7 +46,9 @@ SECTIONS
REGION(pmic, 0x14976000, 0xA000, 4096)
BSRAM_END(0x14980000)
- DRAM_START(0x90000000)
- POSTRAM_CBFS_CACHE(0x90000000, 384K)
- RAMSTAGE(0x90800000, 128K)
+ DRAM_START(0x80000000)
+ /* Various hardware/software subsystems make use of this area */
+ REGION(dram_reserved, 0x85000000, 0x1A800000, 4096)
+ POSTRAM_CBFS_CACHE(0x9F800000, 384K)
+ RAMSTAGE(0x9F860000, 128K)
}
diff --git a/src/soc/qualcomm/sdm845/include/soc/mmu.h b/src/soc/qualcomm/sdm845/include/soc/mmu.h
index c9883bc0bf..299700a63f 100644
--- a/src/soc/qualcomm/sdm845/include/soc/mmu.h
+++ b/src/soc/qualcomm/sdm845/include/soc/mmu.h
@@ -16,6 +16,8 @@
#ifndef _SOC_QUALCOMM_SDM845_MMU_H__
#define _SOC_QUALCOMM_SDM845_MMU_H__
+#define DRAMSIZE4GB 0x100000000
+
void sdm845_mmu_init(void);
#endif // _SOC_QUALCOMM_SDM845_MMU_H_
diff --git a/src/soc/qualcomm/sdm845/include/soc/symbols.h b/src/soc/qualcomm/sdm845/include/soc/symbols.h
index 6642eab194..163b54dc51 100644
--- a/src/soc/qualcomm/sdm845/include/soc/symbols.h
+++ b/src/soc/qualcomm/sdm845/include/soc/symbols.h
@@ -26,4 +26,8 @@ extern u8 _bsram[];
extern u8 _ebsram[];
#define _bsram_size (_ebsram - _bsram)
+extern u8 _dram_reserved[];
+extern u8 _edram_reserved[];
+#define _dram_reserved_size (_edram_reserved - _dram_reserved)
+
#endif // _SOC_QUALCOMM_SDM845_SYMBOLS_H_