ARM: uniphier: support USB boot mode for ProXstream2 / PH1-LD6b SoC
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 2 Feb 2016 12:11:31 +0000 (21:11 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 14 Feb 2016 07:36:13 +0000 (16:36 +0900)
commitfec4816387a978e651da74c83bcdd5019a6d024c
tree0f35c45af79851593de6e3ba1236b8ac84190f49
parenta89be270e7eb42fca6c77bb25bd77971569f31ee
ARM: uniphier: support USB boot mode for ProXstream2 / PH1-LD6b SoC

The USB boot code is too fat and complicated to be included in SPL
(at least for now).  So, it was implemented as a separate project
(what we call USB-loader).

The expected boot sequence is as follows:

  Boot ROM -> USB-loader -> SPL -> U-Boot proper

The USB-loader loads the SPL and U-Boot proper from a USB memory
onto the locked L2 cache.  Then, SPL needs to copy the U-Boot proper
to DRAM, so this mode looks like a NOR boot from the view of SPL.
However, we want to distinguish between (genuine) NOR boot and USB
boot in some places.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/board_late_init.c
arch/arm/mach-uniphier/boot-mode/boot-device.h
arch/arm/mach-uniphier/boot-mode/boot-mode-proxstream2.c
arch/arm/mach-uniphier/boot-mode/boot-mode.c