arm: Tegra: Use ODMDATA from BCT in IRAM
authorTom Warren <twarren@nvidia.com>
Wed, 30 May 2012 21:06:09 +0000 (14:06 -0700)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:21 +0000 (14:07 +0200)
commit76e350b7a3c568c8d27cf72f98036ec3ddb64f31
tree3d9f1eb6e7d14549b3e7c7559d2b2dc3ebe62e1b
parentf9f2f12e2cace3685ea0dbb6b6d78789fb75f043
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>
arch/arm/cpu/armv7/tegra2/ap20.c
arch/arm/include/asm/arch-tegra2/tegra2.h
include/configs/harmony.h
include/configs/medcom.h
include/configs/paz00.h
include/configs/plutux.h
include/configs/seaboard.h
include/configs/trimslice.h
include/configs/ventana.h
include/configs/whistler.h