summaryrefstree
path: root/kernel/techpack/audio/include/dsp/digital-cdc-rsc-mgr.h
blob: 685cd5c1fc5fca064ee6febccb5f816dc592a6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* 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 */