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: Drop linux/delay.h from common header
[oweals/u-boot.git]
/
board
/
siemens
/
draco
/
board.c
diff --git
a/board/siemens/draco/board.c
b/board/siemens/draco/board.c
index c7a6a7aaa385b02a47ce2fdb5966587187cbf3e3..5ac73c0ef402a41f4330222f39fe2b43e8abf60c 100644
(file)
--- a/
board/siemens/draco/board.c
+++ b/
board/siemens/draco/board.c
@@
-1,3
+1,4
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Board functions for TI AM335X based draco board
* (C) Copyright 2013 Siemens Schweiz AG
/*
* Board functions for TI AM335X based draco board
* (C) Copyright 2013 Siemens Schweiz AG
@@
-9,12
+10,14
@@
* u-boot:/board/ti/am335x/board.c
*
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
* u-boot:/board/ti/am335x/board.c
*
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
+#include <command.h>
+#include <env.h>
#include <errno.h>
#include <errno.h>
+#include <init.h>
+#include <net.h>
#include <spl.h>
#include <asm/arch/cpu.h>
#include <asm/arch/hardware.h>
#include <spl.h>
#include <asm/arch/cpu.h>
#include <asm/arch/hardware.h>
@@
-32,6
+35,7
@@
#include <miiphy.h>
#include <cpsw.h>
#include <watchdog.h>
#include <miiphy.h>
#include <cpsw.h>
#include <watchdog.h>
+#include <linux/delay.h>
#include "board.h"
#include "../common/factoryset.h"
#include <nand.h>
#include "board.h"
#include "../common/factoryset.h"
#include <nand.h>
@@
-341,8
+345,8
@@
int board_eth_init(bd_t *bis)
return n;
}
return n;
}
-static int do_switch_reset(
cmd_tbl_t
*cmdtp, int flag, int argc,
- char *const argv[])
+static int do_switch_reset(
struct cmd_tbl
*cmdtp, int flag, int argc,
+
char *const argv[])
{
/* Reset SMSC LAN9303 switch for default configuration */
gpio_request(GPIO_LAN9303_NRST, "nRST");
{
/* Reset SMSC LAN9303 switch for default configuration */
gpio_request(GPIO_LAN9303_NRST, "nRST");