diff options
author | Naveen Kumar S <nkumars@nvidia.com> | 2013-07-04 21:40:06 +0530 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2013-08-06 14:25:40 -0700 |
commit | 6f1206720514ebf1c0c5bc36c0a54a96427e9540 (patch) | |
tree | fe0af5d40f9280368d86f873d56eb95854ac3af2 | |
parent | c9675b990b243c3a73a52d01578c4074b4f01aa6 (diff) |
arm: tegra: fuse: add api for chip minor revision
Added function tegra_get_minor_rev() to return minor revision number
of the chip.
Bug 1166110
Change-Id: I087331433cabb35c05fa2ce0bd53013b6fb6624f
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/245330
(cherry picked from commit f29df745d2e97c0feb5f9c195202ca55041fa14c)
Reviewed-on: http://git-master/r/251198
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/include/mach/hardware.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/tegra_fuse.c | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/include/mach/hardware.h b/arch/arm/mach-tegra/include/mach/hardware.h index 9b17d6a82d35..ac49b94ec787 100644 --- a/arch/arm/mach-tegra/include/mach/hardware.h +++ b/arch/arm/mach-tegra/include/mach/hardware.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2010 Google, Inc. - * Copyright (C) 2011-2012 NVIDIA Corp. + * Copyright (c) 2011-2013 NVIDIA CORPORATION. All rights reserved. * * Author: * Colin Cross <ccross@google.com> @@ -48,6 +48,7 @@ enum tegra_revision { extern enum tegra_revision tegra_revision; enum tegra_chipid tegra_get_chipid(void); +unsigned int tegra_get_minor_rev(void); #ifndef CONFIG_TEGRA_SILICON_PLATFORM void tegra_get_netlist_revision(u32 *netlist, u32* patchid); diff --git a/arch/arm/mach-tegra/tegra_fuse.c b/arch/arm/mach-tegra/tegra_fuse.c index 35d8f712308f..c1f00ef5a587 100644 --- a/arch/arm/mach-tegra/tegra_fuse.c +++ b/arch/arm/mach-tegra/tegra_fuse.c @@ -482,6 +482,14 @@ enum tegra_revision tegra_get_revision(void) return tegra_id.revision; } +unsigned int tegra_get_minor_rev(void) +{ + if (tegra_id.chipid == TEGRA_CHIPID_UNKNOWN) + tegra_get_tegraid_from_hw(); + + return tegra_id.minor; +} + #ifdef CONFIG_TEGRA_PRE_SILICON_SUPPORT void tegra_get_netlist_revision(u32 *netlist, u32 *patchid) { |