Commit ea6dec5d authored by Varun Wadekar's avatar Varun Wadekar
Browse files

Tegra: public interfaces to get the chip's major/minor versions



This patch opens up the interfaces to read the chip's major/minor versions
for all Tegra drivers to use.
Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
parent 6db7190b
...@@ -82,7 +82,7 @@ static uint32_t tegra_get_chipid(void) ...@@ -82,7 +82,7 @@ static uint32_t tegra_get_chipid(void)
/* /*
* Read the chip's major version from chip ID value * Read the chip's major version from chip ID value
*/ */
static uint32_t tegra_get_chipid_major(void) uint32_t tegra_get_chipid_major(void)
{ {
return (tegra_get_chipid() >> MAJOR_VERSION_SHIFT) & MAJOR_VERSION_MASK; return (tegra_get_chipid() >> MAJOR_VERSION_SHIFT) & MAJOR_VERSION_MASK;
} }
...@@ -90,7 +90,7 @@ static uint32_t tegra_get_chipid_major(void) ...@@ -90,7 +90,7 @@ static uint32_t tegra_get_chipid_major(void)
/* /*
* Read the chip's minor version from the chip ID value * Read the chip's minor version from the chip ID value
*/ */
static uint32_t tegra_get_chipid_minor(void) uint32_t tegra_get_chipid_minor(void)
{ {
return (tegra_get_chipid() >> MINOR_VERSION_SHIFT) & MINOR_VERSION_MASK; return (tegra_get_chipid() >> MINOR_VERSION_SHIFT) & MINOR_VERSION_MASK;
} }
......
...@@ -33,6 +33,12 @@ ...@@ -33,6 +33,12 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
/*
* Tegra chip major/minor version
*/
uint32_t tegra_get_chipid_major(void);
uint32_t tegra_get_chipid_minor(void);
/* /*
* Tegra chip identifiers * Tegra chip 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