projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: Move get_ticks() function out of common.h
[oweals/u-boot.git]
/
common
/
bootretry.c
diff --git
a/common/bootretry.c
b/common/bootretry.c
index 2d82798cd04bc6ba004d2382ceaab79637c79a85..dac891fbc5e3fa0cc01a15e811a2442518eee50c 100644
(file)
--- a/
common/bootretry.c
+++ b/
common/bootretry.c
@@
-1,14
+1,15
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
/*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <bootretry.h>
#include <cli.h>
*/
#include <common.h>
#include <bootretry.h>
#include <cli.h>
+#include <env.h>
#include <errno.h>
#include <errno.h>
+#include <time.h>
#include <watchdog.h>
#ifndef CONFIG_BOOT_RETRY_MIN
#include <watchdog.h>
#ifndef CONFIG_BOOT_RETRY_MIN
@@
-23,7
+24,7
@@
static int retry_time = -1; /* -1 so can call readline before main_loop */
*/
void bootretry_init_cmd_timeout(void)
{
*/
void bootretry_init_cmd_timeout(void)
{
- char *s =
getenv
("bootretry");
+ char *s =
env_get
("bootretry");
if (s != NULL)
retry_time = (int)simple_strtol(s, NULL, 10);
if (s != NULL)
retry_time = (int)simple_strtol(s, NULL, 10);