Vidyakumar Athota | 5d45f4c | 2019-03-10 22:35:07 -0700 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* |
| 3 | * Copyright (c) 2019, The Linux Foundation. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #ifndef BOLERO_CLK_RSC_H |
| 7 | #define BOLERO_CLK_RSC_H |
| 8 | |
| 9 | #include <linux/regmap.h> |
| 10 | #include <dt-bindings/sound/qcom,bolero-clk-rsc.h> |
| 11 | |
| 12 | #if IS_ENABLED(CONFIG_SND_SOC_BOLERO) |
| 13 | int bolero_clk_rsc_mgr_init(void); |
| 14 | void bolero_clk_rsc_mgr_exit(void); |
| 15 | void bolero_clk_rsc_fs_gen_request(struct device *dev, |
| 16 | bool enable); |
| 17 | int bolero_clk_rsc_request_clock(struct device *dev, |
| 18 | int default_clk_id, |
| 19 | int clk_id_req, |
| 20 | bool enable); |
| 21 | #else |
| 22 | static inline void bolero_clk_rsc_fs_gen_request(struct device *dev, |
| 23 | bool enable) |
| 24 | { |
| 25 | } |
| 26 | static inline int bolero_clk_rsc_mgr_init(void) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
| 30 | static inline void bolero_clk_rsc_mgr_exit(void) |
| 31 | { |
| 32 | } |
| 33 | static inline int bolero_clk_rsc_request_clock(struct device *dev, |
| 34 | int default_clk_id, |
| 35 | int clk_id_req, |
| 36 | bool enable) |
| 37 | { |
| 38 | return 0; |
| 39 | } |
| 40 | |
| 41 | #endif /* CONFIG_SND_SOC_BOLERO */ |
| 42 | #endif /* BOLERO_CLK_RSC_H */ |