blob: 3cd14acde0a17add66c92fd622514dc2b5a655fa [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (c) 2017 Chen-Yu Tsai. All rights reserved.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5
6#ifndef _LINUX_CLK_SUNXI_NG_H_
7#define _LINUX_CLK_SUNXI_NG_H_
8
9#include <linux/errno.h>
10
11#ifdef CONFIG_SUNXI_CCU
12int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, bool new_mode);
13int sunxi_ccu_get_mmc_timing_mode(struct clk *clk);
14#else
15static inline int sunxi_ccu_set_mmc_timing_mode(struct clk *clk,
16 bool new_mode)
17{
18 return -ENOTSUPP;
19}
20
21static inline int sunxi_ccu_get_mmc_timing_mode(struct clk *clk)
22{
23 return -ENOTSUPP;
24}
25#endif
26
27#endif