u-boot/arch/arm/include/asm/mach-imx
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
..
boot_mode.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
dma.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
gpio.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
hab.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
imximage.cfg imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
iomux-v3.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
mx5_video.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
mxc_i2c.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
rdc-sema.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-apbh.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-bch.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-common.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-gpmi.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-lcdif.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-usbphy.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
sata.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
spi.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
sys_proto.h imx: spl: Fix NAND bootmode detection 2018-01-03 14:01:38 +01:00
syscounter.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
video.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00