mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-14 16:46:23 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user