[coreboot-gerrit] Change in coreboot[master]: mediatek/mt8183: Add DRAM resource in ramstage
Tristan Hsieh (Code Review)
gerrit at coreboot.org
Thu Aug 9 10:20:46 CEST 2018
Tristan Hsieh has uploaded this change for review. ( https://review.coreboot.org/27971
Change subject: mediatek/mt8183: Add DRAM resource in ramstage
......................................................................
mediatek/mt8183: Add DRAM resource in ramstage
Add DRAM resource in ramstage to load payload.
BUG=b:80501386
TEST=Boots correctly on Kukui
Change-Id: Ie793b403bbbdb3c231dfa2caef29dcbb596b1a61
Signed-off-by: Tristan Shieh <tristan.shieh at mediatek.com>
---
M src/soc/mediatek/mt8183/soc.c
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/27971/1
diff --git a/src/soc/mediatek/mt8183/soc.c b/src/soc/mediatek/mt8183/soc.c
index b8348a1..b51e7d4 100644
--- a/src/soc/mediatek/mt8183/soc.c
+++ b/src/soc/mediatek/mt8183/soc.c
@@ -14,7 +14,15 @@
*/
#include <device/device.h>
+#include <soc/emi.h>
#include <soc/mmu_operations.h>
+#include <symbols.h>
+
+
+static void soc_read_resources(struct device *dev)
+{
+ ram_resource(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
+}
static void soc_init(struct device *dev)
{
@@ -22,6 +30,7 @@
}
static struct device_operations soc_ops = {
+ .read_resources = soc_read_resources,
.init = soc_init,
};
--
To view, visit https://review.coreboot.org/27971
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie793b403bbbdb3c231dfa2caef29dcbb596b1a61
Gerrit-Change-Number: 27971
Gerrit-PatchSet: 1
Gerrit-Owner: Tristan Hsieh <tristan.shieh at mediatek.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180809/8f89b90e/attachment.html>
More information about the coreboot-gerrit
mailing list