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
);
23 static inline int sunxi_ccu_set_mmc_timing_mode(struct clk
*clk
,
29 static inline int sunxi_ccu_get_mmc_timing_mode(struct clk
*clk
)