]> git.ipfire.org Git - people/ms/u-boot.git/commit
spl: spl_mmc: Clearer structure in spl_mmc_load_image and cosmetics
authorPaul Kocialkowski <contact@paulk.fr>
Mon, 27 Apr 2015 08:20:22 +0000 (10:20 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 10 May 2015 11:27:19 +0000 (07:27 -0400)
commit91199f4a5a21a7cf9dd9e7c05e295a042f8c2b7e
treebb29559939e9efbcaa5dfba36ebd9af6d5097739
parent895b5d65c7163436f06fa95281538f43e1a41d9e
spl: spl_mmc: Clearer structure in spl_mmc_load_image and cosmetics

This refactors spl_mmc_load_image to use a switch/case structure and easier
to understand spl_start_uboot checks. This also introduces some more automatic
fallback on the next mmc boot mode as long as it keeps failing.

Lines that go beyond 80 chars are also reduced by reducing the number of tabs.
Debug and error strings are refctored to match a common style.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
[trini: Fix a thinko in the SPL_EXT_SUPPORT + SPL_OS conversion, make part be
 __maybe_unused]
Signed-off-by: Tom Rini <trini@konsulko.com>
common/spl/spl_mmc.c