ARM: tegra: apbio access using dma for tegra20 only
The Tegra20 HW issue with accessing APBIO registers (such as fuse registers) directly from the CPU concurrently with APB DMA accesses has been fixed in Tegra30 and later chips. Access these registers directly from the CPU on Tegra30 and later, and apply the workaround only for Tegra20. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Chaitanya Bandi <bandik@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
此提交包含在:
@@ -16,24 +16,7 @@
|
||||
#ifndef __MACH_TEGRA_APBIO_H
|
||||
#define __MACH_TEGRA_APBIO_H
|
||||
|
||||
#ifdef CONFIG_TEGRA_SYSTEM_DMA
|
||||
|
||||
void tegra_apb_io_init(void);
|
||||
u32 tegra_apb_readl(unsigned long offset);
|
||||
void tegra_apb_writel(u32 value, unsigned long offset);
|
||||
|
||||
#else
|
||||
#include <asm/io.h>
|
||||
#include <mach/io.h>
|
||||
|
||||
static inline u32 tegra_apb_readl(unsigned long offset)
|
||||
{
|
||||
return readl(IO_TO_VIRT(offset));
|
||||
}
|
||||
|
||||
static inline void tegra_apb_writel(u32 value, unsigned long offset)
|
||||
{
|
||||
writel(value, IO_TO_VIRT(offset));
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
新增問題並參考
封鎖使用者