summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-mx5/sys_proto.h
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2012-10-23 10:57:48 +0000
committerStefano Babic <sbabic@denx.de>2012-11-10 08:15:40 +0100
commiteb0344d9746103f4c1d61e05630ee4e6e61334ea (patch)
treec8e9784eae50f88c668deabb5123af1abfcfb545 /arch/arm/include/asm/arch-mx5/sys_proto.h
parent5ea6d7c8fc05ad73d930a6fdb430188ff17a70e5 (diff)
downloadtalos-obmc-uboot-eb0344d9746103f4c1d61e05630ee4e6e61334ea.tar.gz
talos-obmc-uboot-eb0344d9746103f4c1d61e05630ee4e6e61334ea.zip
imx-common: cpu: add imx_ddr_size
Read memory setup registers to determine size of available ram. This routine works for mx53/mx6x I need this because when mx6solo called get_ram_size with a too large maximum size, the system hanged. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'arch/arm/include/asm/arch-mx5/sys_proto.h')
-rw-r--r--arch/arm/include/asm/arch-mx5/sys_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx5/sys_proto.h b/arch/arm/include/asm/arch-mx5/sys_proto.h
index 4435be1ee9..93ad1c6b33 100644
--- a/arch/arm/include/asm/arch-mx5/sys_proto.h
+++ b/arch/arm/include/asm/arch-mx5/sys_proto.h
@@ -33,6 +33,7 @@
#define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev)
u32 get_cpu_rev(void);
+unsigned imx_ddr_size(void);
void sdelay(unsigned long);
void set_chipselect_size(int const);
OpenPOWER on IntegriCloud