diff options
author | Tim Harvey <tharvey@gateworks.com> | 2015-05-26 11:04:57 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-06-01 09:48:23 +0200 |
commit | fdead4be6ad29cce17b57e78a0f7e8a488aeba80 (patch) | |
tree | 0403c86df807641d0fce4f3ea12626417ee2c8c7 /board/gateworks | |
parent | 80d1a3ee72ad6b88b871f745343becd07a546bef (diff) | |
download | u-boot-imx-fdead4be6ad29cce17b57e78a0f7e8a488aeba80.zip u-boot-imx-fdead4be6ad29cce17b57e78a0f7e8a488aeba80.tar.gz u-boot-imx-fdead4be6ad29cce17b57e78a0f7e8a488aeba80.tar.bz2 |
imx: ventana: hang if board model could not be determined
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>
Diffstat (limited to 'board/gateworks')
-rw-r--r-- | board/gateworks/gw_ventana/gw_ventana_spl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c index 9f5d2b1..d4418e5 100644 --- a/board/gateworks/gw_ventana/gw_ventana_spl.c +++ b/board/gateworks/gw_ventana/gw_ventana_spl.c @@ -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, |