summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-06-27 20:35:48 +0300
committerTom Rini <trini@konsulko.com>2022-07-09 00:57:34 +0300
commitedcbd6e38899589b8d03d1f1f8ebc01beb3b574b (patch)
tree170470073f32c156e436e5fc4f6ecac40a94a675
parent95cc3efcc1ec22be2c649ef4cdc065fa9f7fb697 (diff)
downloadu-boot-edcbd6e38899589b8d03d1f1f8ebc01beb3b574b.tar.xz
omap3: emif4: More clearly hard-code cs0 size
We have a single platform that is both in the OMAP3 family of parts, but has an EMIF4 memory controller. Currently we hard-code the size of chip select 0. Make this more clear by putting the value in the function rather than a CONFIG option. Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--arch/arm/mach-omap2/omap3/emif4.c2
-rw-r--r--include/configs/am3517_evm.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/omap3/emif4.c b/arch/arm/mach-omap2/omap3/emif4.c
index d7d779819b..491e7c23db 100644
--- a/arch/arm/mach-omap2/omap3/emif4.c
+++ b/arch/arm/mach-omap2/omap3/emif4.c
@@ -41,7 +41,7 @@ static u32 get_sdr_cs_size(u32 cs)
/* TODO: Calculate the size based on EMIF4 configuration */
if (cs == CS0)
- size = CONFIG_SYS_CS0_SIZE;
+ size = 256 * 1024 * 1024;
return size;
}
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index e6c9039d16..93beed4ad7 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -85,9 +85,6 @@
/* memtest works on */
-/* Physical Memory Map */
-#define CONFIG_SYS_CS0_SIZE (256 * 1024 * 1024)
-
/* FLASH and environment organization */
/* **** PISMO SUPPORT *** */