mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-27 13:33:40 +00:00
d83721f1d4
This is a small tool for calculation of SoC UID based on the same Linux function. It can be further used for generation of device unique data like mac address or exposing it as serial number. Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # LG P895 T30 Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
29 lines
668 B
C
29 lines
668 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2010,2011
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
*/
|
|
|
|
#ifndef _FUSE_H_
|
|
#define _FUSE_H_
|
|
|
|
/* FUSE registers */
|
|
struct fuse_regs {
|
|
u32 reserved0[64]; /* 0x00 - 0xFC: */
|
|
u32 production_mode; /* 0x100: FUSE_PRODUCTION_MODE */
|
|
u32 reserved1[3]; /* 0x104 - 0x10c: */
|
|
u32 sku_info; /* 0x110 */
|
|
u32 reserved2[13]; /* 0x114 - 0x144: */
|
|
u32 fa; /* 0x148: FUSE_FA */
|
|
u32 reserved3[21]; /* 0x14C - 0x19C: */
|
|
u32 security_mode; /* 0x1A0: FUSE_SECURITY_MODE */
|
|
};
|
|
|
|
/**
|
|
* Calculate SoC UID
|
|
*
|
|
* Return: uid if ok, 0 on error
|
|
*/
|
|
unsigned long long tegra_chip_uid(void);
|
|
|
|
#endif /* ifndef _FUSE_H_ */
|