diff options
author | Gary King <gking@nvidia.com> | 2010-10-12 17:38:52 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:41:55 -0800 |
commit | f31853e7ec325ed79ef9ccd737fa464446c1efcd (patch) | |
tree | a964d1363f842d17ce0dac44056a94263c7198a0 /arch/arm/mach-tegra/fuse.c | |
parent | 4392178899628307e1faada8479cb433a2d38028 (diff) |
[ARM] tegra: add utility function to read spare fuse bits
spare fuse bits 18 and 19 are used to distinguish A03p Tegra 2
chips from A03 chips. this is needed on some platforms to
determine whether or not LP0 suspend should be enabled.
Original-Change-Id: I03a964eac3783535357faecee8cd35e65350b356
Reviewed-on: http://git-master/r/12078
Tested-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Tested-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: Rd59fb4d4002b05d88529c44bb7a8d5c5b6bff79b
Diffstat (limited to 'arch/arm/mach-tegra/fuse.c')
-rw-r--r-- | arch/arm/mach-tegra/fuse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/fuse.c b/arch/arm/mach-tegra/fuse.c index 101af0a2de15..769346d4db43 100644 --- a/arch/arm/mach-tegra/fuse.c +++ b/arch/arm/mach-tegra/fuse.c @@ -73,6 +73,12 @@ unsigned long long tegra_chip_uid(void) return (hi << 32ull) | lo; } +unsigned int tegra_spare_fuse(int bit) +{ + BUG_ON(bit < 0 || bit > 61); + return tegra_fuse_readl(FUSE_SPARE_BIT + bit * 4); +} + int tegra_sku_id(void) { int sku_id; |