firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-include_linux_sunxi-c...

25 lines
983 B
Diff

diff -drupN a/include/linux/sunxi-clk-prepare.h b/include/linux/sunxi-clk-prepare.h
--- a/include/linux/sunxi-clk-prepare.h 1970-01-01 03:00:00.000000000 +0300
+++ b/include/linux/sunxi-clk-prepare.h 2022-06-12 05:28:14.000000000 +0300
@@ -0,0 +1,20 @@
+/*
+ * Allwinner SoCs sunxi_clk_prepare driver.
+ *
+ * Copyright (C) 2016 Allwinner.
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+#ifndef _SUNXI_LINUX_CLK_PERPARE_H
+#define _SUNXI_LINUX_CLK_PERPARE_H
+
+#ifdef CONFIG_SUNXI_CLK_PREPARE
+extern int sunxi_clk_enable_prepare(struct clk *clk);
+extern int sunxi_clk_disable_prepare(struct clk *clk);
+#else
+static int sunxi_clk_enable_prepare(struct clk *clk) {return 0; };
+static int sunxi_clk_disable_prepare(struct clk *clk) { return 0; };
+#endif /* CONFIG_SUNXI_CLK_PREPARE */
+#endif /* _SUNXI_LINUX_CLK_PERPARE_H */