diff options
author | Peng Du <pdu@nvidia.com> | 2013-08-08 16:19:14 -0700 |
---|---|---|
committer | Tom Cherry <tcherry@nvidia.com> | 2014-01-21 15:13:55 -0800 |
commit | d02d092d5ff5409d477f4c8731f8d932a992fbdf (patch) | |
tree | 49e1f2ff40d675733dfa2cd85432738bfe34bcc6 /drivers/pci | |
parent | e4a449f6d76ec59a07751f49b48e9bfae5f9d9ae (diff) |
ARM: tegra13: fix pcie driver for ARM64
Change-Id: I563e6a59bf37d137114cd84161081f89f669de53
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/259835
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/host/pci-tegra.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c index a6d5fcebcc8f..57ce04f60338 100644 --- a/drivers/pci/host/pci-tegra.c +++ b/drivers/pci/host/pci-tegra.c @@ -375,8 +375,13 @@ static unsigned long tegra_pcie_conf_offset(unsigned int devfn, int where) static struct tegra_pcie_bus *tegra_pcie_bus_alloc(unsigned int busnr) { +#ifndef CONFIG_ARM64 pgprot_t prot = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | L_PTE_XN | L_PTE_MT_DEV_SHARED | L_PTE_SHARED; +#else + pgprot_t prot = PTE_PRESENT | PTE_YOUNG | PTE_DIRTY | PTE_XN | PTE_SHARED; + pgprot_dmacoherent(prot); /* L_PTE_MT_DEV_SHARED */ +#endif phys_addr_t cs = (phys_addr_t)PCIE_CFG_OFF; struct tegra_pcie_bus *bus; unsigned int i; |