mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
ARM: tegra: make use of negative ENV_OFFSET on NVIDIA boards
Use a negative value of CONFIG_ENV_OFFSET for all NVIDIA reference boards that store the U-Boot environment in the 2nd eMMC boot partition. This makes U-Boot agnostic to the size of the eMMC boot partition, which can vary depending on which eMMC device was actually stuffed into the board. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Tom Warren <twarren@nvidia.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
5c088ee841
commit
91171091c6
7 changed files with 8 additions and 8 deletions
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
||||||
#define CONFIG_ENV_IS_IN_MMC
|
#define CONFIG_ENV_IS_IN_MMC
|
||||||
#define CONFIG_ENV_OFFSET ((1024 * 1024) - CONFIG_ENV_SIZE)
|
#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_SYS_MMC_ENV_PART 2
|
#define CONFIG_SYS_MMC_ENV_PART 2
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
||||||
#define CONFIG_ENV_IS_IN_MMC
|
#define CONFIG_ENV_IS_IN_MMC
|
||||||
#define CONFIG_ENV_OFFSET ((512 * 1024) - CONFIG_ENV_SIZE)
|
#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_SYS_MMC_ENV_PART 2
|
#define CONFIG_SYS_MMC_ENV_PART 2
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
#define CONFIG_ENV_IS_IN_MMC
|
#define CONFIG_ENV_IS_IN_MMC
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_SYS_MMC_ENV_PART 2
|
#define CONFIG_SYS_MMC_ENV_PART 2
|
||||||
#define CONFIG_ENV_OFFSET ((4096 * 1024) - CONFIG_ENV_SIZE)
|
#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
|
||||||
|
|
||||||
#define MACH_TYPE_DALMORE 4304 /* not yet in mach-types.h */
|
#define MACH_TYPE_DALMORE 4304 /* not yet in mach-types.h */
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
||||||
#define CONFIG_ENV_IS_IN_MMC
|
#define CONFIG_ENV_IS_IN_MMC
|
||||||
#define CONFIG_ENV_OFFSET ((1024 * 1024) - CONFIG_ENV_SIZE)
|
#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_SYS_MMC_ENV_PART 2
|
#define CONFIG_SYS_MMC_ENV_PART 2
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
||||||
#define CONFIG_ENV_IS_IN_MMC
|
#define CONFIG_ENV_IS_IN_MMC
|
||||||
#define CONFIG_ENV_OFFSET ((512 * 1024) - CONFIG_ENV_SIZE)
|
#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_SYS_MMC_ENV_PART 2
|
#define CONFIG_SYS_MMC_ENV_PART 2
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
/* Environment in eMMC, at the end of 2nd "boot sector" */
|
||||||
#define CONFIG_ENV_IS_IN_MMC
|
#define CONFIG_ENV_IS_IN_MMC
|
||||||
#define CONFIG_ENV_OFFSET ((1024 * 1024) - CONFIG_ENV_SIZE)
|
#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_SYS_MMC_ENV_PART 2
|
#define CONFIG_SYS_MMC_ENV_PART 2
|
||||||
|
|
||||||
|
|
|
@ -61,12 +61,12 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Environment in eMMC, at the end of 2nd "boot sector". Note: This assumes
|
* Environment in eMMC, at the end of 2nd "boot sector". Note: This assumes
|
||||||
* the user plugged the standard 8MB MoviNAND card into J29/HSMMC/POP. If
|
* the user plugged the standard 8GB MoviNAND card into J29/HSMMC/POP. If
|
||||||
* they didn't, the boot sector layout may be different. However, use of that
|
* they didn't, the boot sector layout may be different. However, use of that
|
||||||
* particular card is standard practice as far as I know.
|
* particular card is standard practice as far as I know.
|
||||||
*/
|
*/
|
||||||
#define CONFIG_ENV_IS_IN_MMC
|
#define CONFIG_ENV_IS_IN_MMC
|
||||||
#define CONFIG_ENV_OFFSET ((512 * 1024) - CONFIG_ENV_SIZE)
|
#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
|
||||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||||
#define CONFIG_SYS_MMC_ENV_PART 2
|
#define CONFIG_SYS_MMC_ENV_PART 2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue