uboot-lantiq: update to v2013.10
[openwrt/svn-archive/archive.git] / package / boot / uboot-lantiq / patches / 0023-MIPS-lantiq-add-default-openwrt-config.patch
1 From 8f584936adad0fca8beece5f55eadcdcd02fad0a Mon Sep 17 00:00:00 2001
2 From: Luka Perkov <luka@openwrt.org>
3 Date: Sat, 17 Aug 2013 03:44:46 +0200
4 Subject: MIPS: lantiq: add default openwrt config
5
6 Signed-off-by: Luka Perkov <luka@openwrt.org>
7 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
8
9 diff --git a/include/configs/openwrt-lantiq-common.h b/include/configs/openwrt-lantiq-common.h
10 new file mode 100644
11 index 0000000..d119bef
12 --- /dev/null
13 +++ b/include/configs/openwrt-lantiq-common.h
14 @@ -0,0 +1,39 @@
15 +/*
16 + * Copyright (C) 2013 Luka Perkov <luka@openwrt.org>
17 + *
18 + * SPDX-License-Identifier: GPL-2.0+
19 + */
20 +
21 +#ifndef __OPENWRT_LANTIQ_COMMON_H
22 +#define __OPENWRT_LANTIQ_COMMON_H
23 +
24 +/* Commands */
25 +#if defined(CONFIG_LTQ_SUPPORT_ETHERNET)
26 +#define CONFIG_CMD_PING
27 +#endif
28 +
29 +/* Compression */
30 +#define CONFIG_LZMA
31 +
32 +/* Auto boot */
33 +#define CONFIG_BOOTDELAY 2
34 +
35 +/* Environment */
36 +#if !defined(CONFIG_SYS_BOOT_RAM)
37 +#define CONFIG_BOOTCOMMAND \
38 + "bootm ${kernel_addr}"
39 +#endif
40 +
41 +/* Ethernet */
42 +#if defined(CONFIG_LTQ_SUPPORT_ETHERNET)
43 +#define CONFIG_ETHADDR 00:01:02:03:04:05
44 +#define CONFIG_SERVERIP 192.168.1.2
45 +#define CONFIG_IPADDR 192.168.1.1
46 +#endif
47 +
48 +/* Unnecessary */
49 +#undef CONFIG_BOOTM_NETBSD
50 +#undef CONFIG_BOOTM_PLAN9
51 +#undef CONFIG_BOOTM_RTEMS
52 +
53 +#endif /* __OPENWRT_LANTIQ_COMMON_H */
54 --
55 1.8.3.2
56