diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2012-10-23 10:57:48 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2012-11-10 07:15:40 (GMT) |
commit | eb0344d9746103f4c1d61e05630ee4e6e61334ea (patch) | |
tree | c8e9784eae50f88c668deabb5123af1abfcfb545 /arch/arm/include/asm/arch-mx6 | |
parent | 5ea6d7c8fc05ad73d930a6fdb430188ff17a70e5 (diff) | |
download | u-boot-fsl-qoriq-eb0344d9746103f4c1d61e05630ee4e6e61334ea.tar.xz |
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-mx6')
-rw-r--r-- | arch/arm/include/asm/arch-mx6/sys_proto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h b/arch/arm/include/asm/arch-mx6/sys_proto.h index 6627bbc..3193297 100644 --- a/arch/arm/include/asm/arch-mx6/sys_proto.h +++ b/arch/arm/include/asm/arch-mx6/sys_proto.h @@ -34,6 +34,7 @@ #define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev) u32 get_cpu_rev(void); const char *get_imx_type(u32 imxtype); +unsigned imx_ddr_size(void); void set_vddsoc(u32 mv); |