diff options
author | Nitheesh Sekar <nsekar@codeaurora.org> | 2018-09-16 16:16:42 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-03-18 18:18:52 +0000 |
commit | 717050d1d27a5c88bf1921da94476d0bfc592d97 (patch) | |
tree | 5e6065b68a799251234e0904214d21f38e322e45 /src/soc/qualcomm/qcs405/soc.c | |
parent | ef75cca0e1d7c307547a972b07e14283c7d6d013 (diff) |
qcs405: Add DRAM resources
TEST=build
Change-Id: Iea79a942c297400c88aa205da713bcfcb8c51185
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Nitheesh Sekar <nsekar@codeaurora.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/29954
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/qualcomm/qcs405/soc.c')
-rw-r--r-- | src/soc/qualcomm/qcs405/soc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/soc/qualcomm/qcs405/soc.c b/src/soc/qualcomm/qcs405/soc.c index f7591a7552..b3bfb9918a 100644 --- a/src/soc/qualcomm/qcs405/soc.c +++ b/src/soc/qualcomm/qcs405/soc.c @@ -13,12 +13,17 @@ * GNU General Public License for more details. */ +#include <symbols.h> #include <device/device.h> #include <timestamp.h> +#include <soc/mmu.h> +#include <soc/symbols.h> static void soc_read_resources(struct device *dev) { - + ram_resource(dev, 0, (uintptr_t)_dram / KiB, (1 * GiB) / KiB); + reserved_ram_resource(dev, 1, (uintptr_t)_dram_reserved / KiB, + REGION_SIZE(dram_reserved) / KiB); } static void soc_init(struct device *dev) |