u-boot-brain/arch
Stefan Agner 2df17bffbc imx_common: detect USB serial downloader reliably
The current mechanism using SCR/GPR registers work well when
the serial downloader boot mode has been selected explicitly
(either via boot mode pins or using bmode command). However,
in case the system entered boot ROM due to unbootable primary
boot devices (e.g. empty eMMC), the SPL fails to detect that
it has been downloaded through serial loader and tries to
continue booting from eMMC:
  Trying to boot from MMC1
  mmc_load_image_raw_sector: mmc block read error
  SPL: failed to boot from all boot devices
  ### ERROR ### Please RESET the board ###

The only known way to reliably detect USB serial downloader
is by checking the USB PHY receiver block power state...

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Eric Nelson <eric@nelint.com>
(cherry picked from commit e203dcf23e)
2017-09-20 23:32:31 -03:00
..
arc env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
arm imx_common: detect USB serial downloader reliably 2017-09-20 23:32:31 -03:00
m68k m68k: add board stmark2, mcf5441x based 2017-08-18 01:26:52 +02:00
microblaze env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
mips env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
nds32 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
nios2 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
powerpc powerpc: Rework interrupt_init_cpu() 2017-08-26 14:56:08 -04:00
sandbox sandbox: Add a dummy invalidate_dcache_range() function 2017-08-28 07:17:16 -04:00
sh sh: Fix linking of ms7722se 2017-08-27 11:50:16 -04:00
x86 x86: baytrail: acpi: Add full reset bit to the reset register value in FADT 2017-09-02 23:35:55 +08:00
xtensa env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig usb: net: migrate USB Ethernet adapters to Kconfig 2017-09-08 10:23:00 -04:00