1 /* 2 * Copyright (c) 2017 Chen-Yu Tsai. All rights reserved. 3 * 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. 7 * 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. 12 */ 13 14 #ifndef _LINUX_CLK_SUNXI_NG_H_ 15 #define _LINUX_CLK_SUNXI_NG_H_ 16 17 #include <linux/errno.h> 18 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 sunxi_ccu_set_mmc_timing_mode(struct clk * clk,bool new_mode)23static inline int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, 24 bool new_mode) 25 { 26 return -ENOTSUPP; 27 } 28 sunxi_ccu_get_mmc_timing_mode(struct clk * clk)29static inline int sunxi_ccu_get_mmc_timing_mode(struct clk *clk) 30 { 31 return -ENOTSUPP; 32 } 33 #endif 34 35 #endif 36