Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Yen Lin | 1bf6c77 | 2012-04-02 13:18:49 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2010,2011 |
| 4 | * NVIDIA Corporation <www.nvidia.com> |
Yen Lin | 1bf6c77 | 2012-04-02 13:18:49 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _FUSE_H_ |
| 8 | #define _FUSE_H_ |
| 9 | |
| 10 | /* FUSE registers */ |
| 11 | struct fuse_regs { |
| 12 | u32 reserved0[64]; /* 0x00 - 0xFC: */ |
| 13 | u32 production_mode; /* 0x100: FUSE_PRODUCTION_MODE */ |
| 14 | u32 reserved1[3]; /* 0x104 - 0x10c: */ |
| 15 | u32 sku_info; /* 0x110 */ |
| 16 | u32 reserved2[13]; /* 0x114 - 0x144: */ |
| 17 | u32 fa; /* 0x148: FUSE_FA */ |
| 18 | u32 reserved3[21]; /* 0x14C - 0x19C: */ |
| 19 | u32 security_mode; /* 0x1A0: FUSE_SECURITY_MODE */ |
| 20 | }; |
| 21 | |
Svyatoslav Ryhel | d7f34ff | 2023-06-30 10:29:02 +0300 | [diff] [blame^] | 22 | /** |
| 23 | * Calculate SoC UID |
| 24 | * |
| 25 | * Return: uid if ok, 0 on error |
| 26 | */ |
| 27 | unsigned long long tegra_chip_uid(void); |
| 28 | |
Yen Lin | 1bf6c77 | 2012-04-02 13:18:49 +0000 | [diff] [blame] | 29 | #endif /* ifndef _FUSE_H_ */ |