blob: f3f2ad8e3f2cc72f9102ec629327a7e1fccc9853 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Yen Lin1bf6c772012-04-02 13:18:49 +00002/*
3 * (C) Copyright 2010,2011
4 * NVIDIA Corporation <www.nvidia.com>
Yen Lin1bf6c772012-04-02 13:18:49 +00005 */
6
7#ifndef _FUSE_H_
8#define _FUSE_H_
9
10/* FUSE registers */
11struct 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 Ryheld7f34ff2023-06-30 10:29:02 +030022/**
23 * Calculate SoC UID
24 *
25 * Return: uid if ok, 0 on error
26 */
27unsigned long long tegra_chip_uid(void);
28
Yen Lin1bf6c772012-04-02 13:18:49 +000029#endif /* ifndef _FUSE_H_ */