[U-Boot] [PATCH 05/14] tegra: Add tegra_get_chip_type() to detect SKU
Stephen Warren
swarren at nvidia.com
Thu Jan 12 20:48:49 CET 2012
Simon Glass wrote at Thursday, January 12, 2012 12:36 PM:
> On Mon, Jan 9, 2012 at 3:24 PM, Stephen Warren <swarren at nvidia.com> wrote:
> > On 12/26/2011 12:32 PM, Simon Glass wrote:
...
> > I think this should read/validate/switch-on the SoC ID field too; I
> > assume the SKU IDs can only be interpreted relative to some specific SoC ID.
> >
> > Chip ID is bits 15:8 of the register APB_MISC + 0x804, and has value
> > 0x20 for Tegra20, 0x30 for Tegra30.
>
> My TRM doesn't mention those values. What version are you referring
> to? I have v06.
In both v06 and v01p (the public version), the register is in section
11.1.6.8. I guess that doesn't actually define the values of the fields,
sigh. But, I can say that Tegra20 is 0x20 and Tegra30 is 0x30.
For example, see:
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=blob;f=arch/arm/mach-tegra/fuse.c;h=fd703f9c1621a6d93db787e60b0d1b6314f8fb3e;hb=android-tegra-nv-2.6.39
function void tegra_get_tegraid_from_hw, and:
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=blob;f=arch/arm/mach-tegra/include/mach/hardware.h;h=d8f9bfbce42d4255d3e91db166f283a48bb4a8f2;hb=android-tegra-nv-2.6.39
for definitions of TEGRA_CHIPID_*.
--
nvpublic
More information about the U-Boot
mailing list