Chen-Yu Tsai | f6f64ed | 2017-07-24 21:58:56 +0800 | [diff] [blame] | 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 |
| 23 | static inline int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, |
| 24 | bool new_mode) |
| 25 | { |
| 26 | return -ENOTSUPP; |
| 27 | } |
| 28 | |
| 29 | static inline int sunxi_ccu_get_mmc_timing_mode(struct clk *clk) |
| 30 | { |
| 31 | return -ENOTSUPP; |
| 32 | } |
| 33 | #endif |
| 34 | |
| 35 | #endif |