/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. * Copyright (c) 2023, Linaro Ltd. All rights reserved. */ #ifndef __QCOM_PMIC_TYPEC_PORT_H__ #define __QCOM_PMIC_TYPEC_PORT_H__ #include #include /* Resources */ #define PMIC_TYPEC_MAX_IRQS 0x08 struct pmic_typec_port_irq_params { int virq; char *irq_name; }; struct pmic_typec_port_resources { unsigned int nr_irqs; const struct pmic_typec_port_irq_params irq_params[PMIC_TYPEC_MAX_IRQS]; }; /* API */ extern const struct pmic_typec_port_resources pm8150b_port_res; int qcom_pmic_typec_port_probe(struct platform_device *pdev, struct pmic_typec *tcpm, const struct pmic_typec_port_resources *res, struct regmap *regmap, u32 base); #endif /* __QCOM_PMIC_TYPE_C_PORT_H__ */