diff options
author | Pushpal Sidhu <psidhu@gateworks.com> | 2015-04-08 12:55:04 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-04-22 14:39:12 +0200 |
commit | 9e2b0c2d72fe44776e645de0bf0060953fcd8178 (patch) | |
tree | aa716efa85d7462c43afb8832648e1e4766d401a /board | |
parent | 767d88b037c050793249a3013feec0db5f992632 (diff) | |
download | u-boot-9e2b0c2d72fe44776e645de0bf0060953fcd8178.tar.gz u-boot-9e2b0c2d72fe44776e645de0bf0060953fcd8178.tar.xz u-boot-9e2b0c2d72fe44776e645de0bf0060953fcd8178.zip |
imx: ventana: Update missing memory/calib handling
This commit combines catching missing memory and calibration data into
one if() block. It further prints pertinent information in determining
why the failure occurred.
Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/gateworks/gw_ventana/gw_ventana_spl.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c index e3d4e572c2..0c0fee3196 100644 --- a/board/gateworks/gw_ventana/gw_ventana_spl.c +++ b/board/gateworks/gw_ventana/gw_ventana_spl.c @@ -476,12 +476,14 @@ static void spl_dram_init(int width, int size_mb, int board_model) debug("4gB density\n"); } - if (!mem) { - puts("Error: Invalid Memory Configuration\n"); - hang(); - } - if (!calib) { - puts("Error: Invalid Board Calibration Configuration\n"); + if (!(mem && calib)) { + puts("Error: Invalid Calibration/Board Configuration\n"); + printf("MEM : %s\n", mem ? "OKAY" : "NULL"); + printf("CALIB : %s\n", calib ? "OKAY" : "NULL"); + printf("CPUTYPE: %s\n", + is_cpu_type(MXC_CPU_MX6Q) ? "IMX6Q" : "IMX6DL"); + printf("SIZE_MB: %d\n", size_mb); + printf("WIDTH : %d\n", width); hang(); } |