t210: tegra-fuse: add support to read UID
authorShardar Shariff Md <smohammed@nvidia.com>
Thu, 1 Sep 2016 09:12:20 +0000 (14:12 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 16 Nov 2016 00:52:02 +0000 (16:52 -0800)
commitf54de84509a31be283f6cc5e62f546c59356d441
tree1a975c411eaa4063952120f001698704667b66e0
parent1ee03ed037ac6576e6bf09b8228ec0b3f63f36d2
t210: tegra-fuse: add support to read UID

- Add support to read unique ID (UID), there is no one register
field to read UID, instead UID is constructed from various bits
of information burned into the fuses during the manufactoring
process.

UID is constructed to 64 bit as below from below UID register
<CID:4><VENDOR:4><FAB:6><LOT:26><WAFER:6><X:9><Y:9>

- rename tegra21x offset filename to tegra210

Bug 1803702

Change-Id: Ie14ab25e147d6668ab2a092305a0c62b7257279a
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1218594
(cherry picked from commit d4b54be134a1c70ef00c4931bc48c2be29b7ed40)
Reviewed-on: http://git-master/r/1253246
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/misc/tegra-fuse/tegra210_fuse_offsets.h [moved from drivers/misc/tegra-fuse/tegra21x_fuse_offsets.h with 87% similarity]
drivers/misc/tegra-fuse/tegra_fuse.c