]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
imx: ventana: hang if board model could not be determined
authorTim Harvey <tharvey@gateworks.com>
Tue, 26 May 2015 18:04:57 +0000 (11:04 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:47:21 +0000 (22:47 +0200)
If the EEPROM could not be read or is corrupt we always want to hang.
Note that an error message will have been displayed by read_eeprom in this
case.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana_spl.c

index 9f5d2b17cd09717451b4b211c5591f1a2dfa9ae3..d4418e554c4aac209a37126d4e6b73b009ea6c0c 100644 (file)
@@ -515,10 +515,8 @@ void board_init_f(ulong dummy)
        setup_iomux_gpio(board_model, &ventana_info);
 
        /* provide some some default: 32bit 128MB */
-       if (GW_UNKNOWN == board_model) {
-               ventana_info.sdram_width = 2;
-               ventana_info.sdram_size = 3;
-       }
+       if (GW_UNKNOWN == board_model)
+               hang();
 
        /* configure MMDC for SDRAM width/size and per-model calibration */
        spl_dram_init(8 << ventana_info.sdram_width,