CDEFINES += -DENABLE_SMMU_S1_TRANSLATION
endif
+ifeq ($(CONFIG_ARCH_SDXPOORWILLS), y)
+ifeq ($(CONFIG_ROME_IF),pci)
+CDEFINES += -DENABLE_SMMU_S1_TRANSLATION
+endif
+endif
+
ifeq ($(CONFIG_DYNAMIC_DEBUG),y)
CDEFINES += -DFEATURE_MULTICAST_HOST_FW_MSGS
endif
/*
- * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
ptr = pld_snoc_smmu_get_mapping(dev);
break;
case PLD_BUS_TYPE_PCIE:
- pr_err("Not supported on type %d\n", type);
+ ptr = pld_pcie_smmu_get_mapping();
break;
default:
pr_err("Invalid device type %d\n", type);
ret = pld_snoc_smmu_map(dev, paddr, iova_addr, size);
break;
case PLD_BUS_TYPE_PCIE:
- pr_err("Not supported on type %d\n", type);
- ret = -ENODEV;
+ ret = pld_pcie_smmu_map(paddr, iova_addr, size);
break;
default:
pr_err("Invalid device type %d\n", type);
/*
- * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
#endif
#ifndef CONFIG_PLD_PCIE_CNSS
+static inline void *pld_pcie_smmu_get_mapping(void)
+{
+ return NULL;
+}
+static inline int pld_pcie_smmu_map(phys_addr_t paddr,
+ uint32_t *iova_addr, size_t size)
+{
+ return 0;
+}
static inline int
pld_pcie_get_fw_files_for_target(struct pld_fw_files *pfw_files,
u32 target_type, u32 target_version)
return 0;
}
#else
+static inline void *pld_pcie_smmu_get_mapping(void)
+{
+ return cnss_smmu_get_mapping();
+}
+static inline int pld_pcie_smmu_map(phys_addr_t paddr,
+ uint32_t *iova_addr, size_t size)
+{
+ return cnss_smmu_map(paddr, iova_addr, size);
+}
int pld_pcie_get_fw_files_for_target(struct pld_fw_files *pfw_files,
u32 target_type, u32 target_version);
int pld_pcie_get_platform_cap(struct pld_platform_cap *cap);