Add 'qcom/opensource/audio-kernel/' from commit '0ee387dfadf349618494d6f82ec8cec796ebef70'
git-subtree-dir: qcom/opensource/audio-kernel git-subtree-mainline:99ab089c55
git-subtree-split:0ee387dfad
Change-Id: repo: https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/audio-kernel-ar tag: AUDIO.LA.9.0.r1-07400-lanai.0
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef DIGITAL_CDC_RSC_MGR_H
|
||||
#define DIGITAL_CDC_RSC_MGR_H
|
||||
|
||||
#include <linux/clk.h>
|
||||
|
||||
#ifdef CONFIG_DIGITAL_CDC_RSC_MGR
|
||||
|
||||
int digital_cdc_rsc_mgr_hw_vote_enable(struct clk *vote_handle, struct device *dev);
|
||||
void digital_cdc_rsc_mgr_hw_vote_disable(struct clk *vote_handle, struct device *dev);
|
||||
void digital_cdc_rsc_mgr_hw_vote_reset(struct clk *vote_handle);
|
||||
|
||||
void digital_cdc_rsc_mgr_init(void);
|
||||
void digital_cdc_rsc_mgr_exit(void);
|
||||
|
||||
#else
|
||||
|
||||
static inline int digital_cdc_rsc_mgr_hw_vote_enable(struct clk *vote_handle, struct device *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void digital_cdc_rsc_mgr_hw_vote_disable(struct clk *vote_handle, struct device *dev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void digital_cdc_rsc_mgr_hw_vote_reset(struct clk *vote_handle)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void digital_cdc_rsc_mgr_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void digital_cdc_rsc_mgr_exit(void)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_DIGITAL_CDC_RSC_MGR */
|
||||
|
||||
#endif /* DIGITAL_CDC_RSC_MGR_H */
|
Reference in New Issue
Block a user