~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/soc/tegra/fuse.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/soc/tegra/fuse.h (Version linux-6.12-rc7) and /include/soc/tegra/fuse.h (Version linux-5.1.21)


  1 /* SPDX-License-Identifier: GPL-2.0-only */    << 
  2 /*                                                  1 /*
  3  * Copyright (c) 2012-2023, NVIDIA CORPORATION !!   2  * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
                                                   >>   3  *
                                                   >>   4  * This program is free software; you can redistribute it and/or modify it
                                                   >>   5  * under the terms and conditions of the GNU General Public License,
                                                   >>   6  * version 2, as published by the Free Software Foundation.
                                                   >>   7  *
                                                   >>   8  * This program is distributed in the hope it will be useful, but WITHOUT
                                                   >>   9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
                                                   >>  10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
                                                   >>  11  * more details.
                                                   >>  12  *
                                                   >>  13  * You should have received a copy of the GNU General Public License
                                                   >>  14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  4  */                                                15  */
  5                                                    16 
  6 #ifndef __SOC_TEGRA_FUSE_H__                       17 #ifndef __SOC_TEGRA_FUSE_H__
  7 #define __SOC_TEGRA_FUSE_H__                       18 #define __SOC_TEGRA_FUSE_H__
  8                                                    19 
  9 #include <linux/types.h>                       << 
 10                                                << 
 11 #define TEGRA20         0x20                       20 #define TEGRA20         0x20
 12 #define TEGRA30         0x30                       21 #define TEGRA30         0x30
 13 #define TEGRA114        0x35                       22 #define TEGRA114        0x35
 14 #define TEGRA124        0x40                       23 #define TEGRA124        0x40
 15 #define TEGRA132        0x13                       24 #define TEGRA132        0x13
 16 #define TEGRA210        0x21                       25 #define TEGRA210        0x21
 17 #define TEGRA186        0x18                   << 
 18 #define TEGRA194        0x19                   << 
 19 #define TEGRA234        0x23                   << 
 20 #define TEGRA241        0x24                   << 
 21 #define TEGRA264        0x26                   << 
 22                                                    26 
 23 #define TEGRA_FUSE_SKU_CALIB_0  0xf0               27 #define TEGRA_FUSE_SKU_CALIB_0  0xf0
 24 #define TEGRA30_FUSE_SATA_CALIB 0x124              28 #define TEGRA30_FUSE_SATA_CALIB 0x124
 25 #define TEGRA_FUSE_USB_CALIB_EXT_0 0x250           29 #define TEGRA_FUSE_USB_CALIB_EXT_0 0x250
 26                                                    30 
 27 #ifndef __ASSEMBLY__                               31 #ifndef __ASSEMBLY__
 28                                                    32 
                                                   >>  33 u32 tegra_read_chipid(void);
                                                   >>  34 u8 tegra_get_chip_id(void);
                                                   >>  35 
 29 enum tegra_revision {                              36 enum tegra_revision {
 30         TEGRA_REVISION_UNKNOWN = 0,                37         TEGRA_REVISION_UNKNOWN = 0,
 31         TEGRA_REVISION_A01,                        38         TEGRA_REVISION_A01,
 32         TEGRA_REVISION_A02,                        39         TEGRA_REVISION_A02,
 33         TEGRA_REVISION_A03,                        40         TEGRA_REVISION_A03,
 34         TEGRA_REVISION_A03p,                       41         TEGRA_REVISION_A03p,
 35         TEGRA_REVISION_A04,                        42         TEGRA_REVISION_A04,
 36         TEGRA_REVISION_MAX,                        43         TEGRA_REVISION_MAX,
 37 };                                                 44 };
 38                                                    45 
 39 enum tegra_platform {                          << 
 40         TEGRA_PLATFORM_SILICON = 0,            << 
 41         TEGRA_PLATFORM_QT,                     << 
 42         TEGRA_PLATFORM_SYSTEM_FPGA,            << 
 43         TEGRA_PLATFORM_UNIT_FPGA,              << 
 44         TEGRA_PLATFORM_ASIM_QT,                << 
 45         TEGRA_PLATFORM_ASIM_LINSIM,            << 
 46         TEGRA_PLATFORM_DSIM_ASIM_LINSIM,       << 
 47         TEGRA_PLATFORM_VERIFICATION_SIMULATION << 
 48         TEGRA_PLATFORM_VDK,                    << 
 49         TEGRA_PLATFORM_VSP,                    << 
 50         TEGRA_PLATFORM_MAX,                    << 
 51 };                                             << 
 52                                                << 
 53 struct tegra_sku_info {                            46 struct tegra_sku_info {
 54         int sku_id;                                47         int sku_id;
 55         int cpu_process_id;                        48         int cpu_process_id;
 56         int cpu_speedo_id;                         49         int cpu_speedo_id;
 57         int cpu_speedo_value;                      50         int cpu_speedo_value;
 58         int cpu_iddq_value;                        51         int cpu_iddq_value;
 59         int soc_process_id;                        52         int soc_process_id;
 60         int soc_speedo_id;                         53         int soc_speedo_id;
 61         int soc_speedo_value;                      54         int soc_speedo_value;
 62         int gpu_process_id;                        55         int gpu_process_id;
 63         int gpu_speedo_id;                         56         int gpu_speedo_id;
 64         int gpu_speedo_value;                      57         int gpu_speedo_value;
 65         enum tegra_revision revision;              58         enum tegra_revision revision;
 66         enum tegra_platform platform;          << 
 67 };                                                 59 };
 68                                                    60 
 69 #ifdef CONFIG_ARCH_TEGRA                       << 
 70 extern struct tegra_sku_info tegra_sku_info;   << 
 71 u32 tegra_read_straps(void);                       61 u32 tegra_read_straps(void);
 72 u32 tegra_read_ram_code(void);                     62 u32 tegra_read_ram_code(void);
 73 int tegra_fuse_readl(unsigned long offset, u32     63 int tegra_fuse_readl(unsigned long offset, u32 *value);
 74 u32 tegra_read_chipid(void);                   !!  64 
 75 u8 tegra_get_chip_id(void);                    !!  65 extern struct tegra_sku_info tegra_sku_info;
 76 u8 tegra_get_platform(void);                   << 
 77 bool tegra_is_silicon(void);                   << 
 78 int tegra194_miscreg_mask_serror(void);        << 
 79 #else                                          << 
 80 static struct tegra_sku_info tegra_sku_info __ << 
 81                                                << 
 82 static inline u32 tegra_read_straps(void)      << 
 83 {                                              << 
 84         return 0;                              << 
 85 }                                              << 
 86                                                << 
 87 static inline u32 tegra_read_ram_code(void)    << 
 88 {                                              << 
 89         return 0;                              << 
 90 }                                              << 
 91                                                << 
 92 static inline int tegra_fuse_readl(unsigned lo << 
 93 {                                              << 
 94         return -ENODEV;                        << 
 95 }                                              << 
 96                                                << 
 97 static inline u32 tegra_read_chipid(void)      << 
 98 {                                              << 
 99         return 0;                              << 
100 }                                              << 
101                                                << 
102 static inline u8 tegra_get_chip_id(void)       << 
103 {                                              << 
104         return 0;                              << 
105 }                                              << 
106                                                << 
107 static inline u8 tegra_get_platform(void)      << 
108 {                                              << 
109         return 0;                              << 
110 }                                              << 
111                                                << 
112 static inline bool tegra_is_silicon(void)      << 
113 {                                              << 
114         return false;                          << 
115 }                                              << 
116                                                << 
117 static inline int tegra194_miscreg_mask_serror << 
118 {                                              << 
119         return false;                          << 
120 }                                              << 
121 #endif                                         << 
122                                                    66 
123 struct device *tegra_soc_device_register(void)     67 struct device *tegra_soc_device_register(void);
124                                                    68 
125 #endif /* __ASSEMBLY__ */                          69 #endif /* __ASSEMBLY__ */
126                                                    70 
127 #endif /* __SOC_TEGRA_FUSE_H__ */                  71 #endif /* __SOC_TEGRA_FUSE_H__ */
128                                                    72 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php