ba24baef13b47a036eee1b33a7f1899137e5ca0d
[openwrt.git] / package / boot / uboot-lantiq / patches / 0024-MIPS-VRX200-add-option-to-boot-from-AVM-EVA-loader.patch
1 From 2c6115188c7353a601835885a6c544240cfc479e Mon Sep 17 00:00:00 2001
2 From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3 Date: Fri, 30 Nov 2012 18:09:25 +0100
4 Subject: MIPS: VRX200: add option to boot from AVM EVA loader
5
6 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
7
8 --- a/arch/mips/cpu/mips32/vrx200/config.mk
9 +++ b/arch/mips/cpu/mips32/vrx200/config.mk
10 @@ -17,6 +17,9 @@ endif
11  LIBS-y += $(CPUDIR)/lantiq-common/liblantiq-common.o
12  
13  ifndef CONFIG_SPL_BUILD
14 +ifdef CONFIG_SYS_BOOT_EVA
15 +ALL-y += $(obj)u-boot.bin.lzma
16 +endif
17  ifdef CONFIG_SYS_BOOT_SFSPL
18  ALL-y += $(obj)u-boot.ltq.sfspl
19  ALL-$(CONFIG_SPL_LZO_SUPPORT) += $(obj)u-boot.ltq.lzo.sfspl
20 --- a/arch/mips/include/asm/arch-vrx200/config.h
21 +++ b/arch/mips/include/asm/arch-vrx200/config.h
22 @@ -161,6 +161,11 @@
23  #define CONFIG_SYS_DISABLE_CACHE
24  #endif
25  
26 +#if defined(CONFIG_SYS_BOOT_EVA)
27 +#define CONFIG_SYS_TEXT_BASE           0x80100000
28 +#define CONFIG_SKIP_LOWLEVEL_INIT
29 +#endif
30 +
31  #if defined(CONFIG_SYS_BOOT_NOR)
32  #define CONFIG_SYS_TEXT_BASE           0xB0000000
33  #endif