Files
kernel_xiaomi_sm8250/techpack/audio/include/dsp/digital-cdc-rsc-mgr.h
Michael Bestas f4f695d298 Add 'techpack/audio/' from tag 'LA.UM.9.12.r1-14900-SMxx50.QSSI13.0'
git-subtree-dir: techpack/audio
git-subtree-mainline: c4ac9f41f5
git-subtree-split: d4a1fdac7b
Change-Id: I9f1af2abd41942d29296c963aac75ed023624164
2022-11-20 19:43:50 +02:00

33 lines
757 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
#ifndef DIGITAL_CDC_RSC_MGR_H
#define DIGITAL_CDC_RSC_MGR_H
#ifdef CONFIG_DIGITAL_CDC_RSC_MGR
int digital_cdc_rsc_mgr_hw_vote_enable(struct clk* vote_handle);
void digital_cdc_rsc_mgr_hw_vote_disable(struct clk* vote_handle);
void digital_cdc_rsc_mgr_hw_vote_reset(struct clk* vote_handle);
#else
static inline int digital_cdc_rsc_mgr_hw_vote_enable(struct clk* vote_handle)
{
return 0;
}
static inline void digital_cdc_rsc_mgr_hw_vote_disable(struct clk* vote_handle)
{
}
static inline void digital_cdc_rsc_mgr_hw_vote_reset(struct clk* vote_handle)
{
}
#endif /* CONFIG_DIGITAL_CDC_RSC_MGR */
#endif /* DIGITAL_CDC_RSC_MGR_H */