u-boot/board/engicam/common
Eran Matityahu af104ae5b8 imx: spl: Fix NAND bootmode detection
commit 20f1471416 ("imx: spl: Update NAND bootmode detection bit")
broke the NAND bootmode detection by checking if
BOOT_CFG1[7:4] == 0x8 for NAND boot mode.
This commit essentially reverts it, while using the IMX6_BMODE_*
macros that were introduced since.

Tables 8-7 & 8-10 from IMX6DQRM say the NAND boot mode selection
is done when BOOT_CFG1[7] is 1, but BOOT_CFG1[6:4] is not
necessarily 0x0 in this case.
Actually, NAND boot mode is when 0x8 <= BOOT_CFG1[7:4] <= 0xf,
like it was in the code before.

Signed-off-by: Eran Matityahu <eran.m@variscite.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Jagan Teki <jagan@openedev.com>
Cc: Tim Harvey <tharvey@gateworks.com>
2018-01-03 14:01:38 +01:00
..
board.c imx: spl: Fix NAND bootmode detection 2018-01-03 14:01:38 +01:00
board.h i.MX6: engicam: Move set_fdt_file to common 2017-11-27 10:36:40 +01:00
Makefile engicam: common: Move common board code 2017-05-18 11:23:31 +02:00
spl.c i.MX6: engicam: Add imx6q/imx6ul boards for existing boards 2017-11-27 10:36:40 +01:00