]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: tegra: add AP20 and AP20H SKU
authorIon Agorria <ion@agorria.com>
Tue, 24 Sep 2024 19:46:45 +0000 (21:46 +0200)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Sun, 13 Oct 2024 14:24:15 +0000 (17:24 +0300)
Add previously undocumented SKU - AP20H found in LG Optimus 2X (P990).
Correct existing T20_7 name as it's proper name is AP20.

Signed-off-by: Ion Agorria <ion@agorria.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
arch/arm/include/asm/arch-tegra/tegra.h
arch/arm/mach-tegra/ap.c

index 7a4e0972fb76f4d56de28247b6f6eee547465af5..a399c94213b7ed5311576da3cd431ff2090c99b8 100644 (file)
@@ -68,8 +68,9 @@ struct timerus {
 
 /* These are the available SKUs (product types) for Tegra */
 enum {
-       SKU_ID_T20_7            = 0x7,
+       SKU_ID_AP20             = 0x7,
        SKU_ID_T20              = 0x8,
+       SKU_ID_AP20H            = 0xf,
        SKU_ID_T25SE            = 0x14,
        SKU_ID_AP25             = 0x17,
        SKU_ID_T25              = 0x18,
index a9875227da07ecd0e8c4fb14893c2b373a00ea23..f35bdba4d48aade69cb8417365e22ec881161f6b 100644 (file)
@@ -58,8 +58,9 @@ int tegra_get_chip_sku(void)
        switch (chip_id) {
        case CHIPID_TEGRA20:
                switch (sku_id) {
-               case SKU_ID_T20_7:
+               case SKU_ID_AP20:
                case SKU_ID_T20:
+               case SKU_ID_AP20H:
                        return TEGRA_SOC_T20;
                case SKU_ID_T25SE:
                case SKU_ID_AP25: