summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/am33xx_scrm.c
diff options
context:
space:
mode:
authorAlexander Shiyan <eagle.alexander923@gmail.com>2022-06-03 14:25:40 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-07 09:32:36 +0200
commit2a2f149a6dbb7aff85db34281b3c55e7663932a5 (patch)
tree594c67bd3d889a0ab250b289d8c1668145469df5 /arch/arm/mach-omap/am33xx_scrm.c
parent49f8eb93a0939f8ef9fb5386f6dc8ce5158fd431 (diff)
downloadbarebox-2a2f149a6dbb7aff85db34281b3c55e7663932a5.tar.gz
barebox-2a2f149a6dbb7aff85db34281b3c55e7663932a5.tar.xz
ARM: OMAP: Move am33xx_sdram_size() into EMIF module and make it generic
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com> Link: https://lore.barebox.org/20220603112540.51644-8-eagle.alexander923@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap/am33xx_scrm.c')
-rw-r--r--arch/arm/mach-omap/am33xx_scrm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap/am33xx_scrm.c b/arch/arm/mach-omap/am33xx_scrm.c
index 0f13a9deb6..e10e80ce31 100644
--- a/arch/arm/mach-omap/am33xx_scrm.c
+++ b/arch/arm/mach-omap/am33xx_scrm.c
@@ -21,10 +21,12 @@
#include <asm/barebox-arm.h>
#include <asm/memory.h>
#include <mach/am33xx-silicon.h>
+#include <mach/emif4.h>
static int am33xx_scrm_probe(struct device_d *dev)
{
- return arm_add_mem_device("ram0", 0x80000000, am335x_sdram_size());
+ return arm_add_mem_device("ram0", 0x80000000,
+ emif4_sdram_size(IOMEM(AM33XX_EMIF4_BASE)));
}
static __maybe_unused struct of_device_id am33xx_scrm_dt_ids[] = {