Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc/tegra: fuse: Add stubs needed for compile testing

Add stubs needed for compile-testing of tegra-cpuidle driver.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Dmitry Osipenko and committed by
Thierry Reding
45e93440 6880fa6c

+26 -5
+26 -5
include/soc/tegra/fuse.h
··· 6 6 #ifndef __SOC_TEGRA_FUSE_H__ 7 7 #define __SOC_TEGRA_FUSE_H__ 8 8 9 + #include <linux/types.h> 10 + 9 11 #define TEGRA20 0x20 10 12 #define TEGRA30 0x30 11 13 #define TEGRA114 0x35 ··· 23 21 #define TEGRA_FUSE_USB_CALIB_EXT_0 0x250 24 22 25 23 #ifndef __ASSEMBLY__ 26 - 27 - u32 tegra_read_chipid(void); 28 - u8 tegra_get_chip_id(void); 29 - u8 tegra_get_platform(void); 30 - bool tegra_is_silicon(void); 31 24 32 25 enum tegra_revision { 33 26 TEGRA_REVISION_UNKNOWN = 0, ··· 54 57 u32 tegra_read_straps(void); 55 58 u32 tegra_read_ram_code(void); 56 59 int tegra_fuse_readl(unsigned long offset, u32 *value); 60 + u32 tegra_read_chipid(void); 61 + u8 tegra_get_chip_id(void); 62 + u8 tegra_get_platform(void); 63 + bool tegra_is_silicon(void); 57 64 #else 58 65 static struct tegra_sku_info tegra_sku_info __maybe_unused; 59 66 ··· 74 73 static inline int tegra_fuse_readl(unsigned long offset, u32 *value) 75 74 { 76 75 return -ENODEV; 76 + } 77 + 78 + static inline u32 tegra_read_chipid(void) 79 + { 80 + return 0; 81 + } 82 + 83 + static inline u8 tegra_get_chip_id(void) 84 + { 85 + return 0; 86 + } 87 + 88 + static inline u8 tegra_get_platform(void) 89 + { 90 + return 0; 91 + } 92 + 93 + static inline bool tegra_is_silicon(void) 94 + { 95 + return false; 77 96 } 78 97 #endif 79 98