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)
committerWinnie Hsu <whsu@nvidia.com>
Tue, 25 Oct 2016 20:56:29 +0000 (13:56 -0700)
commit0cc75dd0dedaf3f798c4fe0956fcc1ff403a6b43
tree42055375d6c581e1b5acf26916f98ec6ce25f8de
parent305b90b449252c177b7bcc9980371ae8755e0e2d
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/1241691
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
drivers/misc/tegra-fuse/tegra210_fuse_offsets.h [moved from drivers/misc/tegra-fuse/tegra21x_fuse_offsets.h with 86% similarity]
drivers/misc/tegra-fuse/tegra_fuse.c