Commit 43d22073 authored by David Pu's avatar David Pu Committed by Manish Pandey
Browse files

Tegra: platform: add function to check t194 chip



This patch adds tegra_chipid_is_t194() function to check if it is a
Tegra 194 chip.

Change-Id: I6da6d3a2c9676b748931e42fde1b174cbcb4fd40
Signed-off-by: default avatarDavid Pu <dpu@nvidia.com>
parent 57e92daf
...@@ -108,6 +108,13 @@ bool tegra_chipid_is_t210_b01(void) ...@@ -108,6 +108,13 @@ bool tegra_chipid_is_t210_b01(void)
return (tegra_chipid_is_t210() && (tegra_get_chipid_major() == 0x2U)); return (tegra_chipid_is_t210() && (tegra_get_chipid_major() == 0x2U));
} }
bool tegra_chipid_is_t194(void)
{
uint32_t chip_id = (tegra_get_chipid() >> CHIP_ID_SHIFT) & CHIP_ID_MASK;
return (chip_id == TEGRA_CHIPID_TEGRA19);
}
/* /*
* Read the chip ID value and derive the platform * Read the chip ID value and derive the platform
*/ */
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#define TEGRA_CHIPID_TEGRA13 U(0x13) #define TEGRA_CHIPID_TEGRA13 U(0x13)
#define TEGRA_CHIPID_TEGRA21 U(0x21) #define TEGRA_CHIPID_TEGRA21 U(0x21)
#define TEGRA_CHIPID_TEGRA18 U(0x18) #define TEGRA_CHIPID_TEGRA18 U(0x18)
#define TEGRA_CHIPID_TEGRA19 U(0x19)
/******************************************************************************* /*******************************************************************************
* JEDEC Standard Manufacturer's Identification Code and Bank ID * JEDEC Standard Manufacturer's Identification Code and Bank ID
...@@ -52,6 +53,7 @@ bool tegra_chipid_is_t132(void); ...@@ -52,6 +53,7 @@ bool tegra_chipid_is_t132(void);
bool tegra_chipid_is_t186(void); bool tegra_chipid_is_t186(void);
bool tegra_chipid_is_t210(void); bool tegra_chipid_is_t210(void);
bool tegra_chipid_is_t210_b01(void); bool tegra_chipid_is_t210_b01(void);
bool tegra_chipid_is_t194(void);
/* /*
* Tegra platform identifiers * Tegra platform identifiers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment