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: Varun Wadekar <vwadekar@nvidia.com>
This commit is contained in:
Varun Wadekar
2017-03-10 09:53:37 -08:00
parent 6db7190b2c
commit ea6dec5db6
2 changed files with 8 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ static uint32_t tegra_get_chipid(void)
/*
* 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;
}
@@ -90,7 +90,7 @@ static uint32_t tegra_get_chipid_major(void)
/*
* 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;
}

View File

@@ -33,6 +33,12 @@
#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
*/