diff options
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/tegra/fuse.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 0e03f104fbf8..a43a750dd0a3 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h | |||
@@ -27,6 +27,20 @@ | |||
27 | u32 tegra_read_chipid(void); | 27 | u32 tegra_read_chipid(void); |
28 | u8 tegra_get_chip_id(void); | 28 | u8 tegra_get_chip_id(void); |
29 | 29 | ||
30 | #if defined(CONFIG_TEGRA20_APB_DMA) | ||
31 | int tegra_apb_readl_using_dma(unsigned long offset, u32 *value); | ||
32 | int tegra_apb_writel_using_dma(u32 value, unsigned long offset); | ||
33 | #else | ||
34 | static inline int tegra_apb_readl_using_dma(unsigned long offset, u32 *value) | ||
35 | { | ||
36 | return -EINVAL; | ||
37 | } | ||
38 | static inline int tegra_apb_writel_using_dma(u32 value, unsigned long offset) | ||
39 | { | ||
40 | return -EINVAL; | ||
41 | } | ||
42 | #endif /* CONFIG_TEGRA20_APB_DMA */ | ||
43 | |||
30 | #endif /* __ASSEMBLY__ */ | 44 | #endif /* __ASSEMBLY__ */ |
31 | 45 | ||
32 | #endif /* __SOC_TEGRA_FUSE_H__ */ | 46 | #endif /* __SOC_TEGRA_FUSE_H__ */ |