diff options
Diffstat (limited to 'arch/arm/mach-tegra/fuse.h')
| -rw-r--r-- | arch/arm/mach-tegra/fuse.h | 65 | 
1 files changed, 60 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/fuse.h b/arch/arm/mach-tegra/fuse.h index 584b2e27dbd..c01d04785d6 100644 --- a/arch/arm/mach-tegra/fuse.h +++ b/arch/arm/mach-tegra/fuse.h @@ -1,7 +1,6 @@  /* - * arch/arm/mach-tegra/fuse.c - *   * Copyright (C) 2010 Google, Inc. + * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.   *   * Author:   *	Colin Cross <ccross@android.com> @@ -17,8 +16,64 @@   *   */ +#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 + +#define TEGRA20		0x20 +#define TEGRA30		0x30 +#define TEGRA114	0x35 +#define TEGRA124	0x40 + +#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, +}; + +extern int tegra_sku_id; +extern int tegra_cpu_process_id; +extern int tegra_core_process_id; +extern int tegra_chip_id; +extern int tegra_cpu_speedo_id;		/* only exist in Tegra30 and later */ +extern int tegra_soc_speedo_id; +extern enum tegra_revision tegra_revision; + +extern int tegra_bct_strapping; +  unsigned long long tegra_chip_uid(void); -int tegra_sku_id(void); -int tegra_cpu_process_id(void); -int tegra_core_process_id(void);  void tegra_init_fuse(void); +bool tegra_spare_fuse(int bit); +u32 tegra_fuse_readl(unsigned long offset); + +#ifdef CONFIG_ARCH_TEGRA_2x_SOC +void tegra20_init_speedo_data(void); +#else +static inline void tegra20_init_speedo_data(void) {} +#endif + +#ifdef CONFIG_ARCH_TEGRA_3x_SOC +void tegra30_init_speedo_data(void); +#else +static inline void tegra30_init_speedo_data(void) {} +#endif + +#ifdef CONFIG_ARCH_TEGRA_114_SOC +void tegra114_init_speedo_data(void); +#else +static inline void tegra114_init_speedo_data(void) {} +#endif +#endif /* __ASSEMBLY__ */ + +#endif  | 
