pcie-pdc.h 473 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef __SOC_QCOM_PCIE_PDC_H__
  6. #define __SOC_QCOM_PCIE_PDC_H__
  7. #if IS_ENABLED(CONFIG_QCOM_PCIE_PDC)
  8. int pcie_pdc_cfg_irq(u32 gpio, unsigned int type, bool enable);
  9. #else
  10. static inline int pcie_pdc_cfg_irq(u32 gpio, unsigned int type, bool enable)
  11. { return -ENODEV; }
  12. #endif /* CONFIG_QCOM_PCIE_PDC */
  13. #endif /* __SOC_QCOM_PCIE_PDC_H__ */