123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef __DRIVERS_MISC_TEGRA_FUSE_H
- #define __DRIVERS_MISC_TEGRA_FUSE_H
- #define TEGRA_FUSE_BASE 0x7000f800
- #define TEGRA_FUSE_SIZE 0x400
- int tegra_fuse_create_sysfs(struct device *dev, int size,
- u32 (*readl)(const unsigned int offset));
- bool tegra30_spare_fuse(int bit);
- u32 tegra30_fuse_readl(const unsigned int offset);
- void tegra30_init_fuse_early(void);
- void tegra_init_revision(void);
- void tegra_init_apbmisc(void);
- #ifdef CONFIG_ARCH_TEGRA_2x_SOC
- void tegra20_init_speedo_data(struct tegra_sku_info *sku_info);
- bool tegra20_spare_fuse_early(int spare_bit);
- void tegra20_init_fuse_early(void);
- u32 tegra20_fuse_early(const unsigned int offset);
- #else
- static inline void tegra20_init_speedo_data(struct tegra_sku_info *sku_info) {}
- static inline bool tegra20_spare_fuse_early(int spare_bit)
- {
- return false;
- }
- static inline void tegra20_init_fuse_early(void) {}
- static inline u32 tegra20_fuse_early(const unsigned int offset)
- {
- return 0;
- }
- #endif
- #ifdef CONFIG_ARCH_TEGRA_3x_SOC
- void tegra30_init_speedo_data(struct tegra_sku_info *sku_info);
- #else
- static inline void tegra30_init_speedo_data(struct tegra_sku_info *sku_info) {}
- #endif
- #ifdef CONFIG_ARCH_TEGRA_114_SOC
- void tegra114_init_speedo_data(struct tegra_sku_info *sku_info);
- #else
- static inline void tegra114_init_speedo_data(struct tegra_sku_info *sku_info) {}
- #endif
- #ifdef CONFIG_ARCH_TEGRA_124_SOC
- void tegra124_init_speedo_data(struct tegra_sku_info *sku_info);
- #else
- static inline void tegra124_init_speedo_data(struct tegra_sku_info *sku_info) {}
- #endif
- #endif
|