uboot-lantiq: update to v2013.10
[openwrt.git] / package / boot / uboot-lantiq / patches / 0021-MIPS-vrx200-add-NAND-SPL-support.patch
1 From 7361581a1baaec43058f5b9350c32c7ac4e58064 Mon Sep 17 00:00:00 2001
2 From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3 Date: Mon, 12 Aug 2013 00:11:16 +0200
4 Subject: MIPS: vrx200: add NAND SPL support
5
6 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
7
8 diff --git a/arch/mips/cpu/mips32/vrx200/config.mk b/arch/mips/cpu/mips32/vrx200/config.mk
9 index 442156a..b0fc882 100644
10 --- a/arch/mips/cpu/mips32/vrx200/config.mk
11 +++ b/arch/mips/cpu/mips32/vrx200/config.mk
12 @@ -27,4 +27,9 @@ ALL-y += $(obj)u-boot.ltq.norspl
13  ALL-$(CONFIG_SPL_LZO_SUPPORT) += $(obj)u-boot.ltq.lzo.norspl
14  ALL-$(CONFIG_SPL_LZMA_SUPPORT) += $(obj)u-boot.ltq.lzma.norspl
15  endif
16 +ifdef CONFIG_SYS_BOOT_NANDSPL
17 +ALL-y += $(obj)u-boot.ltq.nandspl
18 +ALL-$(CONFIG_SPL_LZO_SUPPORT) += $(obj)u-boot.ltq.lzo.nandspl
19 +ALL-$(CONFIG_SPL_LZMA_SUPPORT) += $(obj)u-boot.ltq.lzma.nandspl
20 +endif
21  endif
22 diff --git a/arch/mips/include/asm/arch-vrx200/config.h b/arch/mips/include/asm/arch-vrx200/config.h
23 index 88ef256..4ec6092 100644
24 --- a/arch/mips/include/asm/arch-vrx200/config.h
25 +++ b/arch/mips/include/asm/arch-vrx200/config.h
26 @@ -164,7 +164,7 @@
27  #define CONFIG_SYS_TEXT_BASE           0xB0000000
28  #endif
29  
30 -#if defined(CONFIG_SYS_BOOT_SFSPL)
31 +#if defined(CONFIG_SYS_BOOT_SFSPL) || defined(CONFIG_SYS_BOOT_NANDSPL)
32  #define CONFIG_SYS_TEXT_BASE           0x80100000
33  #define CONFIG_SPL_TEXT_BASE           0xBE220000
34  #endif
35 -- 
36 1.8.3.2
37