mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
configs: drop CONFIG_SYS_EXTRA_ENV_RELOC
Instead of manually specifying CONFIG_SYS_EXTRA_ENV_RELOC for every board that needs it, it shouldn't hurt to let initr_reloc_global_data() always relocate gd->env_addr unless we know this pointer is outside the initial binary. To achieve this, the relocation is omitted if CONFIG_ENV_ADDR is defined (and ENV_IS_EMBEDDED is not). Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
This commit is contained in:
parent
c906f372b2
commit
6c6add6029
23 changed files with 4 additions and 56 deletions
|
@ -140,15 +140,12 @@ static int initr_reloc_global_data(void)
|
||||||
*/
|
*/
|
||||||
fixup_cpu();
|
fixup_cpu();
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SYS_EXTRA_ENV_RELOC
|
#if !defined(CONFIG_ENV_ADDR) || defined(ENV_IS_EMBEDDED)
|
||||||
/*
|
/*
|
||||||
* Some systems need to relocate the env_addr pointer early because the
|
* Relocate the early env_addr pointer unless we know it is not inside
|
||||||
* location it points to will get invalidated before env_relocate is
|
* the binary. Some systems need this and for the rest, it doesn't hurt.
|
||||||
* called. One example is on systems that might use a L2 or L3 cache
|
|
||||||
* in SRAM mode and initialize that cache from SRAM mode back to being
|
|
||||||
* a cache in cpu_init_r.
|
|
||||||
*/
|
*/
|
||||||
gd->env_addr += gd->relocaddr - CONFIG_SYS_MONITOR_BASE;
|
gd->env_addr += gd->reloc_off;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_OF_EMBED
|
#ifdef CONFIG_OF_EMBED
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -106,7 +106,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -115,12 +114,10 @@
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 1097)
|
#define CONFIG_ENV_OFFSET (512 * 1097)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (10 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (10 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#ifdef CONFIG_SPIFLASH
|
#ifdef CONFIG_SPIFLASH
|
||||||
#define CONFIG_RAMBOOT_SPIFLASH
|
#define CONFIG_RAMBOOT_SPIFLASH
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -266,7 +265,6 @@ extern unsigned long get_sdram_size(void);
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
||||||
#define CONFIG_ENV_OFFSET ((768 * 1024) + CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET ((768 * 1024) + CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#define CONFIG_ENV_RANGE (3 * CONFIG_ENV_SIZE)
|
#define CONFIG_ENV_RANGE (3 * CONFIG_ENV_SIZE)
|
||||||
|
|
|
@ -13,19 +13,16 @@
|
||||||
#ifdef CONFIG_SDCARD
|
#ifdef CONFIG_SDCARD
|
||||||
#define CONFIG_RAMBOOT_SDCARD
|
#define CONFIG_RAMBOOT_SDCARD
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SPIFLASH
|
#ifdef CONFIG_SPIFLASH
|
||||||
#define CONFIG_RAMBOOT_SPIFLASH
|
#define CONFIG_RAMBOOT_SPIFLASH
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NAND_SECBOOT
|
#ifdef CONFIG_NAND_SECBOOT
|
||||||
#define CONFIG_RAMBOOT_NAND
|
#define CONFIG_RAMBOOT_NAND
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -278,7 +278,6 @@
|
||||||
|
|
||||||
#if defined(CONFIG_RAMBOOT_SPIFLASH)
|
#if defined(CONFIG_RAMBOOT_SPIFLASH)
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_SYS_INIT_RAM_LOCK
|
#define CONFIG_SYS_INIT_RAM_LOCK
|
||||||
|
|
|
@ -181,7 +181,6 @@
|
||||||
|
|
||||||
#if defined(CONFIG_RAMBOOT_SDCARD) || defined(CONFIG_RAMBOOT_SPIFLASH)
|
#if defined(CONFIG_RAMBOOT_SDCARD) || defined(CONFIG_RAMBOOT_SPIFLASH)
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#else
|
#else
|
||||||
#undef CONFIG_SYS_RAMBOOT
|
#undef CONFIG_SYS_RAMBOOT
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -463,7 +463,6 @@ extern unsigned long get_sdram_size(void);
|
||||||
#if defined(CONFIG_RAMBOOT_SDCARD) || defined(CONFIG_RAMBOOT_SPIFLASH) || \
|
#if defined(CONFIG_RAMBOOT_SDCARD) || defined(CONFIG_RAMBOOT_SPIFLASH) || \
|
||||||
defined(CONFIG_RAMBOOT_NAND)
|
defined(CONFIG_RAMBOOT_NAND)
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#else
|
#else
|
||||||
#undef CONFIG_SYS_RAMBOOT
|
#undef CONFIG_SYS_RAMBOOT
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -56,7 +56,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -65,13 +64,11 @@
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_FSL_FIXED_MMC_LOCATION
|
#define CONFIG_FSL_FIXED_MMC_LOCATION
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 1658)
|
#define CONFIG_ENV_OFFSET (512 * 1658)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
||||||
#define CONFIG_ENV_OFFSET (7 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (7 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
||||||
|
|
|
@ -135,7 +135,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -144,12 +143,10 @@
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (10 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (10 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
||||||
|
|
|
@ -150,7 +150,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -163,12 +162,10 @@
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x40000
|
#define CONFIG_ENV_SECT_SIZE 0x40000
|
||||||
#endif
|
#endif
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#if defined(CONFIG_TARGET_T1024RDB)
|
#if defined(CONFIG_TARGET_T1024RDB)
|
||||||
#define CONFIG_ENV_OFFSET (2 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (2 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
|
|
|
@ -66,7 +66,6 @@
|
||||||
|
|
||||||
#ifdef CONFIG_MTD_NOR_FLASH
|
#ifdef CONFIG_MTD_NOR_FLASH
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -75,12 +74,10 @@
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 1658)
|
#define CONFIG_ENV_OFFSET (512 * 1658)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
||||||
#define CONFIG_ENV_OFFSET (7 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (7 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -170,12 +170,10 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_sd_rcw.cfg
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE 0x2000 /* 8KB */
|
#define CONFIG_ENV_SIZE 0x2000 /* 8KB */
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
||||||
|
@ -184,7 +182,6 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_sd_rcw.cfg
|
||||||
#define CONFIG_RAMBOOT_NAND
|
#define CONFIG_RAMBOOT_NAND
|
||||||
#define CONFIG_BOOTSCRIPT_COPY_RAM
|
#define CONFIG_BOOTSCRIPT_COPY_RAM
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (3 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (3 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -131,7 +131,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -140,12 +139,10 @@
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (10 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (10 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
||||||
|
|
|
@ -116,7 +116,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -125,12 +124,10 @@
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (2 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (2 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
||||||
|
|
|
@ -81,7 +81,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -90,12 +89,10 @@
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (10 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (10 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
||||||
|
|
|
@ -288,7 +288,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -297,12 +296,10 @@
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
#define CONFIG_ENV_OFFSET (512 * 0x800)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
||||||
#define CONFIG_ENV_OFFSET (7 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (7 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#elif defined(CONFIG_ENV_IS_NOWHERE)
|
#elif defined(CONFIG_ENV_IS_NOWHERE)
|
||||||
|
|
|
@ -77,14 +77,12 @@
|
||||||
#ifdef CONFIG_SDCARD
|
#ifdef CONFIG_SDCARD
|
||||||
#define CONFIG_RAMBOOT_SDCARD
|
#define CONFIG_RAMBOOT_SDCARD
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_RESET_VECTOR_ADDRESS 0x1107fffc
|
#define CONFIG_RESET_VECTOR_ADDRESS 0x1107fffc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SPIFLASH
|
#ifdef CONFIG_SPIFLASH
|
||||||
#define CONFIG_RAMBOOT_SPIFLASH
|
#define CONFIG_RAMBOOT_SPIFLASH
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_RESET_VECTOR_ADDRESS 0x1107fffc
|
#define CONFIG_RESET_VECTOR_ADDRESS 0x1107fffc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -298,8 +298,6 @@
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Command line configuration.
|
* Command line configuration.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -67,7 +67,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
#define CONFIG_ENV_SPI_MAX_HZ 10000000
|
||||||
|
@ -76,13 +75,11 @@
|
||||||
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
|
||||||
#define CONFIG_ENV_SECT_SIZE 0x10000
|
#define CONFIG_ENV_SECT_SIZE 0x10000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_FSL_FIXED_MMC_LOCATION
|
#define CONFIG_FSL_FIXED_MMC_LOCATION
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
#define CONFIG_ENV_OFFSET (512 * 1658)
|
#define CONFIG_ENV_OFFSET (512 * 1658)
|
||||||
#elif defined(CONFIG_NAND)
|
#elif defined(CONFIG_NAND)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
|
||||||
#define CONFIG_ENV_OFFSET (7 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (7 * CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
#define CONFIG_ENV_OVERWRITE
|
#define CONFIG_ENV_OVERWRITE
|
||||||
|
|
||||||
#if defined(CONFIG_SDCARD)
|
#if defined(CONFIG_SDCARD)
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_FSL_FIXED_MMC_LOCATION
|
#define CONFIG_FSL_FIXED_MMC_LOCATION
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_ENV_SIZE 0x2000
|
#define CONFIG_ENV_SIZE 0x2000
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
#define CONFIG_SYS_DPAA_RMAN /* RMan */
|
#define CONFIG_SYS_DPAA_RMAN /* RMan */
|
||||||
|
|
||||||
/* Environment in SPI Flash */
|
/* Environment in SPI Flash */
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_ENV_SPI_BUS 0
|
#define CONFIG_ENV_SPI_BUS 0
|
||||||
#define CONFIG_ENV_SPI_CS 0
|
#define CONFIG_ENV_SPI_CS 0
|
||||||
#define CONFIG_ENV_SPI_MAX_HZ 20000000
|
#define CONFIG_ENV_SPI_MAX_HZ 20000000
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#ifdef CONFIG_SDCARD
|
#ifdef CONFIG_SDCARD
|
||||||
#define CONFIG_RAMBOOT_SDCARD
|
#define CONFIG_RAMBOOT_SDCARD
|
||||||
#define CONFIG_SYS_RAMBOOT
|
#define CONFIG_SYS_RAMBOOT
|
||||||
#define CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
#define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -2542,7 +2542,6 @@ CONFIG_SYS_ETHOC_BASE
|
||||||
CONFIG_SYS_ETHOC_BUFFER_ADDR
|
CONFIG_SYS_ETHOC_BUFFER_ADDR
|
||||||
CONFIG_SYS_ETVPE_CLK
|
CONFIG_SYS_ETVPE_CLK
|
||||||
CONFIG_SYS_EXCEPTION_VECTORS_HIGH
|
CONFIG_SYS_EXCEPTION_VECTORS_HIGH
|
||||||
CONFIG_SYS_EXTRA_ENV_RELOC
|
|
||||||
CONFIG_SYS_FAST_CLK
|
CONFIG_SYS_FAST_CLK
|
||||||
CONFIG_SYS_FAULT_ECHO_LINK_DOWN
|
CONFIG_SYS_FAULT_ECHO_LINK_DOWN
|
||||||
CONFIG_SYS_FAULT_MII_ADDR
|
CONFIG_SYS_FAULT_MII_ADDR
|
||||||
|
|
Loading…
Reference in a new issue