soc/mediatek: Do resource transition
Change-Id: I668a39c603870329fd1528ddc5f3a42a379e1e76
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65267
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/soc/mediatek/mt8173/soc.c b/src/soc/mediatek/mt8173/soc.c
index db349e0..c1bb621 100644
--- a/src/soc/mediatek/mt8173/soc.c
+++ b/src/soc/mediatek/mt8173/soc.c
@@ -12,7 +12,7 @@
static void soc_read_resources(struct device *dev)
{
- ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
+ ram_range(dev, 0, (uintptr_t)_dram, sdram_size());
}
static void soc_init(struct device *dev)
diff --git a/src/soc/mediatek/mt8183/soc.c b/src/soc/mediatek/mt8183/soc.c
index 2b030be..32ec4e4 100644
--- a/src/soc/mediatek/mt8183/soc.c
+++ b/src/soc/mediatek/mt8183/soc.c
@@ -10,7 +10,7 @@
static void soc_read_resources(struct device *dev)
{
- ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
+ ram_range(dev, 0, (uintptr_t)_dram, sdram_size());
}
static void soc_init(struct device *dev)
diff --git a/src/soc/mediatek/mt8186/soc.c b/src/soc/mediatek/mt8186/soc.c
index 8ae3b9d..d2e7a1e 100644
--- a/src/soc/mediatek/mt8186/soc.c
+++ b/src/soc/mediatek/mt8186/soc.c
@@ -17,7 +17,7 @@
static void soc_read_resources(struct device *dev)
{
- ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
+ ram_range(dev, 0, (uintptr_t)_dram, sdram_size());
}
static void soc_init(struct device *dev)
diff --git a/src/soc/mediatek/mt8192/soc.c b/src/soc/mediatek/mt8192/soc.c
index c0177a1..74d2579 100644
--- a/src/soc/mediatek/mt8192/soc.c
+++ b/src/soc/mediatek/mt8192/soc.c
@@ -20,7 +20,7 @@
static void soc_read_resources(struct device *dev)
{
- ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
+ ram_range(dev, 0, (uintptr_t)_dram, sdram_size());
}
static void soc_init(struct device *dev)
diff --git a/src/soc/mediatek/mt8195/soc.c b/src/soc/mediatek/mt8195/soc.c
index 51ad524..002fcdd 100644
--- a/src/soc/mediatek/mt8195/soc.c
+++ b/src/soc/mediatek/mt8195/soc.c
@@ -23,7 +23,7 @@
static void soc_read_resources(struct device *dev)
{
- ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
+ ram_range(dev, 0, (uintptr_t)_dram, sdram_size());
}
static void soc_init(struct device *dev)