18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef __SOC_TEGRA_FUSE_H__ 78c2ecf20Sopenharmony_ci#define __SOC_TEGRA_FUSE_H__ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#define TEGRA20 0x20 108c2ecf20Sopenharmony_ci#define TEGRA30 0x30 118c2ecf20Sopenharmony_ci#define TEGRA114 0x35 128c2ecf20Sopenharmony_ci#define TEGRA124 0x40 138c2ecf20Sopenharmony_ci#define TEGRA132 0x13 148c2ecf20Sopenharmony_ci#define TEGRA210 0x21 158c2ecf20Sopenharmony_ci#define TEGRA186 0x18 168c2ecf20Sopenharmony_ci#define TEGRA194 0x19 178c2ecf20Sopenharmony_ci#define TEGRA234 0x23 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define TEGRA_FUSE_SKU_CALIB_0 0xf0 208c2ecf20Sopenharmony_ci#define TEGRA30_FUSE_SATA_CALIB 0x124 218c2ecf20Sopenharmony_ci#define TEGRA_FUSE_USB_CALIB_EXT_0 0x250 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__ 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciu32 tegra_read_chipid(void); 268c2ecf20Sopenharmony_ciu8 tegra_get_chip_id(void); 278c2ecf20Sopenharmony_ciu8 tegra_get_platform(void); 288c2ecf20Sopenharmony_cibool tegra_is_silicon(void); 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_cienum tegra_revision { 318c2ecf20Sopenharmony_ci TEGRA_REVISION_UNKNOWN = 0, 328c2ecf20Sopenharmony_ci TEGRA_REVISION_A01, 338c2ecf20Sopenharmony_ci TEGRA_REVISION_A02, 348c2ecf20Sopenharmony_ci TEGRA_REVISION_A03, 358c2ecf20Sopenharmony_ci TEGRA_REVISION_A03p, 368c2ecf20Sopenharmony_ci TEGRA_REVISION_A04, 378c2ecf20Sopenharmony_ci TEGRA_REVISION_MAX, 388c2ecf20Sopenharmony_ci}; 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_cistruct tegra_sku_info { 418c2ecf20Sopenharmony_ci int sku_id; 428c2ecf20Sopenharmony_ci int cpu_process_id; 438c2ecf20Sopenharmony_ci int cpu_speedo_id; 448c2ecf20Sopenharmony_ci int cpu_speedo_value; 458c2ecf20Sopenharmony_ci int cpu_iddq_value; 468c2ecf20Sopenharmony_ci int soc_process_id; 478c2ecf20Sopenharmony_ci int soc_speedo_id; 488c2ecf20Sopenharmony_ci int soc_speedo_value; 498c2ecf20Sopenharmony_ci int gpu_process_id; 508c2ecf20Sopenharmony_ci int gpu_speedo_id; 518c2ecf20Sopenharmony_ci int gpu_speedo_value; 528c2ecf20Sopenharmony_ci enum tegra_revision revision; 538c2ecf20Sopenharmony_ci}; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ciu32 tegra_read_straps(void); 568c2ecf20Sopenharmony_ciu32 tegra_read_ram_code(void); 578c2ecf20Sopenharmony_ciint tegra_fuse_readl(unsigned long offset, u32 *value); 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ciextern struct tegra_sku_info tegra_sku_info; 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_cistruct device *tegra_soc_device_register(void); 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci#endif /* __ASSEMBLY__ */ 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci#endif /* __SOC_TEGRA_FUSE_H__ */ 66