···11+/*22+ * Copyright 2012 Maxime Ripard33+ *44+ * Maxime Ripard <maxime.ripard@free-electrons.com>55+ *66+ * This program is free software; you can redistribute it and/or modify77+ * it under the terms of the GNU General Public License as published by88+ * the Free Software Foundation; either version 2 of the License, or99+ * (at your option) any later version.1010+ *1111+ * This program is distributed in the hope that it will be useful,1212+ * but WITHOUT ANY WARRANTY; without even the implied warranty of1313+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1414+ * GNU General Public License for more details.1515+ */1616+1717+#include <linux/clk-provider.h>1818+#include <linux/clkdev.h>1919+#include <linux/clk/sunxi.h>2020+#include <linux/of.h>2121+2222+static const __initconst struct of_device_id clk_match[] = {2323+ { .compatible = "fixed-clock", .data = of_fixed_clk_setup, },2424+ {}2525+};2626+2727+void __init sunxi_init_clocks(void)2828+{2929+ of_clk_init(clk_match);3030+}
+22
include/linux/clk/sunxi.h
···11+/*22+ * Copyright 2012 Maxime Ripard33+ *44+ * Maxime Ripard <maxime.ripard@free-electrons.com>55+ *66+ * This program is free software; you can redistribute it and/or modify77+ * it under the terms of the GNU General Public License as published by88+ * the Free Software Foundation; either version 2 of the License, or99+ * (at your option) any later version.1010+ *1111+ * This program is distributed in the hope that it will be useful,1212+ * but WITHOUT ANY WARRANTY; without even the implied warranty of1313+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1414+ * GNU General Public License for more details.1515+ */1616+1717+#ifndef __LINUX_CLK_SUNXI_H_1818+#define __LINUX_CLK_SUNXI_H_1919+2020+void __init sunxi_init_clocks(void);2121+2222+#endif