projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
env: Move env_set() to env.h
[oweals/u-boot.git]
/
board
/
alliedtelesis
/
x530
/
x530.c
diff --git
a/board/alliedtelesis/x530/x530.c
b/board/alliedtelesis/x530/x530.c
index d7d1942fe686aa59138894cff4a881c4a879e8eb..e0fa8067c1c58f80bb4bc0f3bf09d8de2f8cb7d9 100644
(file)
--- a/
board/alliedtelesis/x530/x530.c
+++ b/
board/alliedtelesis/x530/x530.c
@@
-6,7
+6,9
@@
#include <common.h>
#include <command.h>
#include <dm.h>
#include <common.h>
#include <command.h>
#include <dm.h>
+#include <env.h>
#include <i2c.h>
#include <i2c.h>
+#include <wdt.h>
#include <asm/gpio.h>
#include <linux/mbus.h>
#include <linux/io.h>
#include <asm/gpio.h>
#include <linux/mbus.h>
#include <linux/io.h>
@@
-88,6
+90,10
@@
int board_early_init_f(void)
return 0;
}
return 0;
}
+void spl_board_init(void)
+{
+}
+
int board_init(void)
{
/* address of boot parameters */
int board_init(void)
{
/* address of boot parameters */
@@
-100,9
+106,18
@@
int board_init(void)
/* DEV_READYn is not needed for NVS, ignore it when accessing CS1 */
writel(0x00004001, MVEBU_DEV_BUS_BASE + 0xc8);
/* DEV_READYn is not needed for NVS, ignore it when accessing CS1 */
writel(0x00004001, MVEBU_DEV_BUS_BASE + 0xc8);
+ spl_board_init();
+
return 0;
}
return 0;
}
+void arch_preboot_os(void)
+{
+#ifdef CONFIG_WATCHDOG
+ wdt_stop(gd->watchdog_dev);
+#endif
+}
+
static int led_7seg_init(unsigned int segments)
{
int node;
static int led_7seg_init(unsigned int segments)
{
int node;