]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: tegra: support T33 SKU of Tegra30
authorStephen Warren <swarren@nvidia.com>
Wed, 27 Mar 2013 09:37:02 +0000 (09:37 +0000)
committerTom Warren <twarren@nvidia.com>
Mon, 15 Apr 2013 18:01:37 +0000 (11:01 -0700)
Make U-Boot aware of the T33 SKU of Tegra30, and treat it identically
to any other Tegra30.

An alternative would be to simply remove the SKU checking from
tegra_get_chip_type(); most use of the value most likely simply wants
to know the current chip, not the specific SKU. Or, the function could
be split into separate tegra_get_chip() and tegra_get_sku() for the
cases where differentiation really is required.

I wonder whether tegra_get_chip_type() should printf() whenever any
unkown chip/SKU is found, although perhaps the function is called so
early that the printf() wouldn't actually make it to the UART anyway.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/cpu/tegra-common/ap.c
arch/arm/include/asm/arch-tegra/tegra.h

index 236cda8419fc0ce5c4444d201cee35308b35c17a..3f30805edbcd7a990db021df084325571c5bca9c 100644 (file)
@@ -65,6 +65,7 @@ int tegra_get_chip_type(void)
                break;
        case CHIPID_TEGRA30:
                switch (tegra_sku_id) {
+               case SKU_ID_T33:
                case SKU_ID_T30:
                        return TEGRA_SOC_T30;
                }
index bf7229d8ace9fbc09461342d916dd04498a018b8..3e642e92f863936f3ee01b478a9eac2436990fa0 100644 (file)
@@ -78,6 +78,7 @@ enum {
        SKU_ID_T25              = 0x18,
        SKU_ID_AP25E            = 0x1b,
        SKU_ID_T25E             = 0x1c,
+       SKU_ID_T33              = 0x80,
        SKU_ID_T30              = 0x81, /* Cardhu value */
        SKU_ID_T114_ENG         = 0x00, /* Dalmore value, unfused */
 };