[U-Boot] [PATCH 1/1] ARM: mxs: get boot mode from OTP

Jörg Krause joerg.krause at embedded.rocks
Thu Mar 26 23:57:02 CET 2015


On Do, 2015-03-26 at 10:39 +0100, Jörg Krause wrote:
> Reading the GPIOs for getting the boot mode does not show the correct result
> for USB boot mode in case the recovery switch, eg. BM2 for switching from NAND
> to USB boot mode, is hold down while plugging in USB and released before U-Boot
> is loaded by mxsldr.
> 
> This state is stored in the HW_OCOTP_ROM0 register. HW_OCOTP_ROM0[27:24] maps to
> BM3-BM0, HW_OCOTP_ROM0[28] maps to voltage selector.
> 
> For using mxs_wait_mask_clr() add imx-common/misc.o to the SPL build.
> 
> Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> Cc: Stefano Babic <sbabic at denx.de>
> ---

This patch is superseded by:
ARM: mxs: Get boot mode from OCRAM
http://patchwork.ozlabs.org/patch/455231/




More information about the U-Boot mailing list