mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ARM: tegra: export apb dma readl/writel
Export APB DMA readl and writel. These are needed because we can't access the fuses directly on Tegra20 without potentially causing a system hang. Also have the APB DMA readl and writel return an error in case of a read failure instead of just returning zero or ignore write failures. Signed-off-by: Peter De Schrijver <[email protected]> Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
This commit is contained in:
parent
304664eab9
commit
3f394f8064
2 changed files with 45 additions and 20 deletions
|
|
@ -27,6 +27,20 @@
|
|||
u32 tegra_read_chipid(void);
|
||||
u8 tegra_get_chip_id(void);
|
||||
|
||||
#if defined(CONFIG_TEGRA20_APB_DMA)
|
||||
int tegra_apb_readl_using_dma(unsigned long offset, u32 *value);
|
||||
int tegra_apb_writel_using_dma(u32 value, unsigned long offset);
|
||||
#else
|
||||
static inline int tegra_apb_readl_using_dma(unsigned long offset, u32 *value)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
static inline int tegra_apb_writel_using_dma(u32 value, unsigned long offset)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif /* CONFIG_TEGRA20_APB_DMA */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* __SOC_TEGRA_FUSE_H__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue