diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-11 21:42:07 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-11 21:42:07 +0000 |
commit | f4431ebb081b656b12485c4a4ce5f7be3b813f66 (patch) | |
tree | 91b19d44949f9688e461713f7e22b1edb747bb94 /target/device/Atmel/arch-arm/u-boot/2009.01-rc1/u-boot-2009.01-rc1-012-ethinit.patch | |
parent | 00a1ff5bc32d568e50d73c122653ae53efc515ca (diff) | |
download | buildroot-novena-f4431ebb081b656b12485c4a4ce5f7be3b813f66.tar.gz buildroot-novena-f4431ebb081b656b12485c4a4ce5f7be3b813f66.zip |
Move AT91 patches for u-boot-2009.01-rc1 to device/Atmel/arch-arm/u-boot/2009.01-rc1
Diffstat (limited to 'target/device/Atmel/arch-arm/u-boot/2009.01-rc1/u-boot-2009.01-rc1-012-ethinit.patch')
-rw-r--r-- | target/device/Atmel/arch-arm/u-boot/2009.01-rc1/u-boot-2009.01-rc1-012-ethinit.patch | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/target/device/Atmel/arch-arm/u-boot/2009.01-rc1/u-boot-2009.01-rc1-012-ethinit.patch b/target/device/Atmel/arch-arm/u-boot/2009.01-rc1/u-boot-2009.01-rc1-012-ethinit.patch new file mode 100644 index 000000000..c2f709c70 --- /dev/null +++ b/target/device/Atmel/arch-arm/u-boot/2009.01-rc1/u-boot-2009.01-rc1-012-ethinit.patch @@ -0,0 +1,77 @@ +diff -urN u-boot-2009.01-0rig//common/cmd_ethinit.c u-boot-2009.01/common/cmd_ethinit.c +--- u-boot-2009.01-0rig//common/cmd_ethinit.c 1970-01-01 01:00:00.000000000 +0100 ++++ u-boot-2009.01/common/cmd_ethinit.c 2009-01-04 00:28:39.000000000 +0100 +@@ -0,0 +1,62 @@ ++/* ++ * (C) Copyright 2000 ++ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. ++ * ++ * See file CREDITS for list of people who contributed to this ++ * project. ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License as ++ * published by the Free Software Foundation; either version 2 of ++ * the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, ++ * MA 02111-1307 USA ++ */ ++ ++/* ++ * Boot support ++ */ ++#include <common.h> ++#include <command.h> ++#include <net.h> ++#ifdef CONFIG_CMD_ETHINIT ++extern int eth_init (bd_t * bd); ++ ++static void delay(void) ++{ ++} ++/* ++ * This command allows you to delay booting until you have a ++ * valid Ethernet connection. ++ * Neccessary if you want to NFS mount a rootfs etc. ++ * When both this target and the NFS server ++ * are powered on at the same time, then the NFS ++ * server can take a long time to boot. ++ */ ++int do_ethinit (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) ++{ ++ int i; ++ DECLARE_GLOBAL_DATA_PTR; ++ while(eth_init (gd->bd) == 0) { ++ for(i = 0; i < 10000000; i ++) { ++ delay(); ++ } ++ } ++ return 0; ++} ++ ++U_BOOT_CMD( ++ ethinit, 1, 1, do_ethinit, ++ "ethinit\t- Initialize Ethernet controller\n", ++ "\n" ++); ++ ++#endif /* CONFIG_CMD_ETHINIT */ +diff -urN u-boot-2009.01-0rig//common/Makefile u-boot-2009.01/common/Makefile +--- u-boot-2009.01-0rig//common/Makefile 2009-01-04 00:22:06.000000000 +0100 ++++ u-boot-2009.01/common/Makefile 2009-01-04 00:29:46.000000000 +0100 +@@ -83,6 +83,7 @@ + COBJS-$(CONFIG_ENV_IS_IN_EEPROM) += cmd_eeprom.o + COBJS-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o + COBJS-$(CONFIG_CMD_ELF) += cmd_elf.o ++COBJS-$(CONFIG_CMD_ETHINIT) += cmd_ethinit.o + COBJS-$(CONFIG_CMD_EXT2) += cmd_ext2.o + COBJS-$(CONFIG_CMD_FACTORY) += cmd_factory.o + COBJS-$(CONFIG_CMD_FAT) += cmd_fat.o |