summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach/esdctl.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-16 09:43:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-06 13:43:08 +0100
commit4fa54b7e5d201a3962dbed318540855ef3553f19 (patch)
treeb084340b9f987e057739990cafba1cd7974b07fc /arch/arm/mach-imx/include/mach/esdctl.h
parent65c1ee9cc0dcd49526403da9244128781596ecfc (diff)
downloadbarebox-4fa54b7e5d201a3962dbed318540855ef3553f19.tar.gz
barebox-4fa54b7e5d201a3962dbed318540855ef3553f19.tar.xz
ARM i.MX: Add driver to get sdram base and size
The code initializing the SDRAM controller is not at the same place where SDRAM is registered with barebox. To reduce the risk of registering wrong SDRAM sizes this patch adds a driver for the ESDCTL which reads back the configured SDRAM size and registers the memory found with barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/esdctl.h')
-rw-r--r--arch/arm/mach-imx/include/mach/esdctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/esdctl.h b/arch/arm/mach-imx/include/mach/esdctl.h
index b601ff80c7..1a265c8e45 100644
--- a/arch/arm/mach-imx/include/mach/esdctl.h
+++ b/arch/arm/mach-imx/include/mach/esdctl.h
@@ -28,6 +28,7 @@
#define ESDCTL0_DSIZ_31_16 (0 << 16)
#define ESDCTL0_DSIZ_15_0 (1 << 16)
#define ESDCTL0_DSIZ_31_0 (2 << 16)
+#define ESDCTL0_DSIZ_MASK (3 << 16)
#define ESDCTL0_REF1 (1 << 13)
#define ESDCTL0_REF2 (2 << 13)
#define ESDCTL0_REF4 (3 << 13)