sunxi: spl: Detect at runtime where SPL was read from
authorDaniel Kochmański <dkochmanski@turtle-solutions.eu>
Fri, 29 May 2015 14:55:42 +0000 (16:55 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 24 Jul 2015 14:17:08 +0000 (16:17 +0200)
commita151403fd2da05a6f05d1f0e16ff7b8986a73823
tree3bfc03e35faf16e0a526efe1cd8868434248a898
parent645c48f50eab307a9879a82c4d066e74114ec78a
sunxi: spl: Detect at runtime where SPL was read from

Make possible using a single `u-boot-sunxi-with-spl.bin` binary for both NAND
memory and SD card. Detection where SPL was read from is implemented in
`spl_boot_device`.

Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
CC: Roy Spliet <r.spliet@ultimaker.com>
Cc: Ian Campbell <ijc@hellion.org.uk>
[hdegoede@redhat.com: Some small coding style fixes]
Acked-by: Hans De Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/board.c