From: Pushpal Sidhu Date: Wed, 8 Apr 2015 19:55:04 +0000 (-0700) Subject: imx: ventana: Update missing memory/calib handling X-Git-Tag: KARO-TX6-2015-09-18~3035 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4217151cb071fb5be64d588e91a8b39928daaa54;p=karo-tx-uboot.git 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 Signed-off-by: Tim Harvey --- 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(); }