0021-MIPS-vrx200-add-NAND-SPL-support.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  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. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
  6. --- a/arch/mips/cpu/mips32/vrx200/config.mk
  7. +++ b/arch/mips/cpu/mips32/vrx200/config.mk
  8. @@ -27,4 +27,9 @@ ALL-y += $(obj)u-boot.ltq.norspl
  9. ALL-$(CONFIG_SPL_LZO_SUPPORT) += $(obj)u-boot.ltq.lzo.norspl
  10. ALL-$(CONFIG_SPL_LZMA_SUPPORT) += $(obj)u-boot.ltq.lzma.norspl
  11. endif
  12. +ifdef CONFIG_SYS_BOOT_NANDSPL
  13. +ALL-y += $(obj)u-boot.ltq.nandspl
  14. +ALL-$(CONFIG_SPL_LZO_SUPPORT) += $(obj)u-boot.ltq.lzo.nandspl
  15. +ALL-$(CONFIG_SPL_LZMA_SUPPORT) += $(obj)u-boot.ltq.lzma.nandspl
  16. +endif
  17. endif
  18. --- a/arch/mips/include/asm/arch-vrx200/config.h
  19. +++ b/arch/mips/include/asm/arch-vrx200/config.h
  20. @@ -164,7 +164,7 @@
  21. #define CONFIG_SYS_TEXT_BASE 0xB0000000
  22. #endif
  23. -#if defined(CONFIG_SYS_BOOT_SFSPL)
  24. +#if defined(CONFIG_SYS_BOOT_SFSPL) || defined(CONFIG_SYS_BOOT_NANDSPL)
  25. #define CONFIG_SYS_TEXT_BASE 0x80100000
  26. #define CONFIG_SPL_TEXT_BASE 0xBE220000
  27. #endif