aboutsummaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/tegra/fuse.h14
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 @@
27u32 tegra_read_chipid(void); 27u32 tegra_read_chipid(void);
28u8 tegra_get_chip_id(void); 28u8 tegra_get_chip_id(void);
29 29
30#if defined(CONFIG_TEGRA20_APB_DMA)
31int tegra_apb_readl_using_dma(unsigned long offset, u32 *value);
32int tegra_apb_writel_using_dma(u32 value, unsigned long offset);
33#else
34static inline int tegra_apb_readl_using_dma(unsigned long offset, u32 *value)
35{
36 return -EINVAL;
37}
38static 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__ */