diff options
author | Tom Warren <twarren@nvidia.com> | 2012-05-30 14:06:09 -0700 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-07-07 14:07:21 +0200 |
commit | 76e350b7a3c568c8d27cf72f98036ec3ddb64f31 (patch) | |
tree | 3d9f1eb6e7d14549b3e7c7559d2b2dc3ebe62e1b /arch/arm/include/asm/arch-tegra2/tegra2.h | |
parent | f9f2f12e2cace3685ea0dbb6b6d78789fb75f043 (diff) | |
download | u-boot-imx-76e350b7a3c568c8d27cf72f98036ec3ddb64f31.zip u-boot-imx-76e350b7a3c568c8d27cf72f98036ec3ddb64f31.tar.gz u-boot-imx-76e350b7a3c568c8d27cf72f98036ec3ddb64f31.tar.bz2 |
arm: Tegra: Use ODMDATA from BCT in IRAM
Walk the BIT and BCT to find the ODMDATA word in the
CustomerData field and put it into Scratch20 reg for
use by kernel, etc.
Built all Tegra builds OK; Booted on Seaboard and saw
ODMDATA in PMC scratch20 was the same as the value in my
burn-u-boot.sh file (0x300D8011). NOTE: All flash utilities
will have to specify the odmdata (nvflash --odmdata n) on
the command line or via a cfg file, or built in to their
BCT.
Signed-off-by: Tom Warren <twarren@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'arch/arm/include/asm/arch-tegra2/tegra2.h')
-rw-r--r-- | arch/arm/include/asm/arch-tegra2/tegra2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra2/tegra2.h b/arch/arm/include/asm/arch-tegra2/tegra2.h index d4ada10..3c8d8a8 100644 --- a/arch/arm/include/asm/arch-tegra2/tegra2.h +++ b/arch/arm/include/asm/arch-tegra2/tegra2.h @@ -60,6 +60,10 @@ struct timerus { /* Address at which WB code runs, it must not overlap Bootrom's IRAM usage */ #define AP20_WB_RUN_ADDRESS 0x40020000 +#define NVBOOTINFOTABLE_BCTSIZE 0x38 /* BCT size in BIT in IRAM */ +#define NVBOOTINFOTABLE_BCTPTR 0x3C /* BCT pointer in BIT in IRAM */ +#define BCT_ODMDATA_OFFSET 4068 /* 12 bytes from end of BCT */ + /* These are the available SKUs (product types) for Tegra */ enum { SKU_ID_T20 = 0x8, |