mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 07:30:26 +09:00
sysreset: Use a shorter error with SPL
Use a minimal error message to save space. Sort the header files while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c8fbf3089b
commit
4c66cb4a78
@ -9,12 +9,13 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
#include <hang.h>
|
|
||||||
#include <log.h>
|
|
||||||
#include <sysreset.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <hang.h>
|
||||||
|
#include <log.h>
|
||||||
#include <regmap.h>
|
#include <regmap.h>
|
||||||
|
#include <spl.h>
|
||||||
|
#include <sysreset.h>
|
||||||
#include <dm/device-internal.h>
|
#include <dm/device-internal.h>
|
||||||
#include <dm/lists.h>
|
#include <dm/lists.h>
|
||||||
#include <dm/root.h>
|
#include <dm/root.h>
|
||||||
@ -101,7 +102,10 @@ void sysreset_walk_halt(enum sysreset_t type)
|
|||||||
mdelay(100);
|
mdelay(100);
|
||||||
|
|
||||||
/* Still no reset? Give up */
|
/* Still no reset? Give up */
|
||||||
log_err("System reset not supported on this platform\n");
|
if (spl_phase() <= PHASE_SPL)
|
||||||
|
log_err("no sysreset\n");
|
||||||
|
else
|
||||||
|
log_err("System reset not supported on this platform\n");
|
||||||
hang();
|
hang();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user