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: David Pu <dpu@nvidia.com>
This commit is contained in:
parent
57e92daf76
commit
43d22073d4
|
@ -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 @@
|
||||||
#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);
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue