diff options
author | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2015-02-16 10:23:59 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-02-16 20:23:52 +0100 |
commit | 840fe95c3bcff7692c51b90ebc0d350792597ff0 (patch) | |
tree | e1356e133b4e7dfb3f583d5ec0031e2483fe6670 /include/configs/sunxi-common.h | |
parent | 942cb0b6a29f74507adeb0bce7ff7f23f69faf84 (diff) | |
download | u-boot-imx-840fe95c3bcff7692c51b90ebc0d350792597ff0.zip u-boot-imx-840fe95c3bcff7692c51b90ebc0d350792597ff0.tar.gz u-boot-imx-840fe95c3bcff7692c51b90ebc0d350792597ff0.tar.bz2 |
sunxi: Support the FEL boot mode in the regular u-boot build
So that the CONFIG_SPL_FEL option is not needed anymore. And the regular
SPL binary, generated by the default u-boot build, is now also bootable
over USB in the FEL mode. The SPL still can boot from the SD card too.
A bunch of system registers need to be saved/restored in order to ensure
that the IRQ handler still works in the BROM FEL code after getting
control back from the SPL. This is done in the sunxi code instead of
abusing ifdefs in 'start.S'.
The decision whether to load the main u-boot binary from the SD card or
return to the FEL code in the BROM is done at runtime.
Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
[hdegoede@redhat.com: Since we now restore various regs before returning to
the FEL BROM code we can drop the sunxi specific #ifdefs in start.S]
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/configs/sunxi-common.h')
0 files changed, 0 insertions, 0 deletions