Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / include / linux / clk / sunxi-ng.h
blob990f760f70e54e70d906e7a66702ac8ae0414675
1 /*
2 * Copyright (c) 2017 Chen-Yu Tsai. All rights reserved.
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #ifndef _LINUX_CLK_SUNXI_NG_H_
15 #define _LINUX_CLK_SUNXI_NG_H_
17 #include <linux/errno.h>
19 #ifdef CONFIG_SUNXI_CCU
20 int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, bool new_mode);
21 int sunxi_ccu_get_mmc_timing_mode(struct clk *clk);
22 #else
23 static inline int sunxi_ccu_set_mmc_timing_mode(struct clk *clk,
24 bool new_mode)
26 return -ENOTSUPP;
29 static inline int sunxi_ccu_get_mmc_timing_mode(struct clk *clk)
31 return -ENOTSUPP;
33 #endif
35 #endif