mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-18 15:19:38 +02:00

Add the Qualcomm PBS (Programmable Boot Sequencer) driver. The QCOM PBS driver supports configuring software PBS trigger events through PBS RAM on Qualcomm Technologies, Inc (QTI) PMICs. Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com> Link: https://lore.kernel.org/r/20240201204421.16992-6-quic_amelende@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
31 lines
640 B
C
31 lines
640 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _QCOM_PBS_H
|
|
#define _QCOM_PBS_H
|
|
|
|
#include <linux/errno.h>
|
|
#include <linux/types.h>
|
|
|
|
struct device_node;
|
|
struct pbs_dev;
|
|
|
|
#if IS_ENABLED(CONFIG_QCOM_PBS)
|
|
int qcom_pbs_trigger_event(struct pbs_dev *pbs, u8 bitmap);
|
|
struct pbs_dev *get_pbs_client_device(struct device *client_dev);
|
|
#else
|
|
static inline int qcom_pbs_trigger_event(struct pbs_dev *pbs, u8 bitmap)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline struct pbs_dev *get_pbs_client_device(struct device *client_dev)
|
|
{
|
|
return ERR_PTR(-ENODEV);
|
|
}
|
|
#endif
|
|
|
|
#endif
|