2010-06-24 00:49:17 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 Google, Inc.
|
2013-03-18 12:17:34 +01:00
|
|
|
* Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
|
2010-06-24 00:49:17 +02:00
|
|
|
*
|
|
|
|
* Author:
|
|
|
|
* Colin Cross <ccross@android.com>
|
|
|
|
*
|
|
|
|
* This software is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
|
|
* may be copied, distributed, and modified under those terms.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-10-13 09:31:20 +02:00
|
|
|
#ifndef __MACH_TEGRA_FUSE_H
|
|
|
|
#define __MACH_TEGRA_FUSE_H
|
|
|
|
|
|
|
|
#define SKU_ID_T20 8
|
|
|
|
#define SKU_ID_T25SE 20
|
|
|
|
#define SKU_ID_AP25 23
|
|
|
|
#define SKU_ID_T25 24
|
|
|
|
#define SKU_ID_AP25E 27
|
|
|
|
#define SKU_ID_T25E 28
|
|
|
|
|
2012-02-10 00:47:41 +01:00
|
|
|
#define TEGRA20 0x20
|
|
|
|
#define TEGRA30 0x30
|
2013-01-24 02:10:22 +01:00
|
|
|
#define TEGRA114 0x35
|
2013-10-08 06:50:03 +02:00
|
|
|
#define TEGRA124 0x40
|
2012-02-10 00:47:41 +01:00
|
|
|
|
2013-05-20 12:39:24 +02:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
enum tegra_revision {
|
|
|
|
TEGRA_REVISION_UNKNOWN = 0,
|
|
|
|
TEGRA_REVISION_A01,
|
|
|
|
TEGRA_REVISION_A02,
|
|
|
|
TEGRA_REVISION_A03,
|
|
|
|
TEGRA_REVISION_A03p,
|
|
|
|
TEGRA_REVISION_A04,
|
|
|
|
TEGRA_REVISION_MAX,
|
|
|
|
};
|
|
|
|
|
2011-10-13 09:31:20 +02:00
|
|
|
extern int tegra_sku_id;
|
|
|
|
extern int tegra_cpu_process_id;
|
|
|
|
extern int tegra_core_process_id;
|
2012-02-10 00:47:42 +01:00
|
|
|
extern int tegra_chip_id;
|
2012-11-15 08:42:34 +01:00
|
|
|
extern int tegra_cpu_speedo_id; /* only exist in Tegra30 and later */
|
2012-11-15 08:42:33 +01:00
|
|
|
extern int tegra_soc_speedo_id;
|
2011-10-13 09:31:20 +02:00
|
|
|
extern enum tegra_revision tegra_revision;
|
|
|
|
|
2011-10-18 01:39:24 +02:00
|
|
|
extern int tegra_bct_strapping;
|
|
|
|
|
2010-06-24 00:49:17 +02:00
|
|
|
unsigned long long tegra_chip_uid(void);
|
|
|
|
void tegra_init_fuse(void);
|
2012-11-15 08:42:32 +01:00
|
|
|
bool tegra_spare_fuse(int bit);
|
|
|
|
u32 tegra_fuse_readl(unsigned long offset);
|
2011-10-13 09:31:20 +02:00
|
|
|
|
2012-11-15 08:42:33 +01:00
|
|
|
#ifdef CONFIG_ARCH_TEGRA_2x_SOC
|
|
|
|
void tegra20_init_speedo_data(void);
|
|
|
|
#else
|
|
|
|
static inline void tegra20_init_speedo_data(void) {}
|
|
|
|
#endif
|
|
|
|
|
2012-11-15 08:42:34 +01:00
|
|
|
#ifdef CONFIG_ARCH_TEGRA_3x_SOC
|
|
|
|
void tegra30_init_speedo_data(void);
|
|
|
|
#else
|
|
|
|
static inline void tegra30_init_speedo_data(void) {}
|
|
|
|
#endif
|
|
|
|
|
2013-03-18 12:17:34 +01:00
|
|
|
#ifdef CONFIG_ARCH_TEGRA_114_SOC
|
|
|
|
void tegra114_init_speedo_data(void);
|
|
|
|
#else
|
|
|
|
static inline void tegra114_init_speedo_data(void) {}
|
|
|
|
#endif
|
2013-05-20 12:39:24 +02:00
|
|
|
#endif /* __ASSEMBLY__ */
|
2013-03-18 12:17:34 +01:00
|
|
|
|
2011-10-13 09:31:20 +02:00
|
|
|
#endif
|