Thread (64 messages) 64 messages, 9 authors, 2016-02-20

[linux-sunxi] [PATCH v2 05/26] clk: sunxi: Add display and TCON0 clocks driver

From: Priit Laes <hidden>
Date: 2016-01-16 14:08:11
Also in: dri-devel, linux-clk, linux-devicetree, lkml

On Thu, 2016-01-14 at 16:24 +0100, Maxime Ripard wrote:
The A10 SoCs and its relatives has a special clock controller to drive the
display engines (both frontend and backend), that have a lot in common with
the clock to drive the first TCON channel.

Add a driver to support both.
...
+static void __init sun4i_a10_display_init(struct device_node *node,
+					??struct sun4i_a10_display_clk_data *data)
+{
+	const char *parents[data->parents];
+	const char *clk_name = node->name;
+	struct reset_data *reset_data;
+	struct clk_divider *div = NULL;
+	struct clk_gate *gate;
+	struct clk_mux *mux;
+	void __iomem *reg;
+	struct clk *clk;
+	int i;
warning: unused variable 'i'
+
+	of_property_read_string(node, "clock-output-names", &clk_name);
+
+	reg = of_io_request_and_map(node, 0, of_node_full_name(node));
+	if (IS_ERR(reg)) {
+		pr_err("%s: Could not map the clock registers\n", clk_name);
+		return;
+	}
...

Thanks for working on this feature ;)

P?ikest,
Priit Laes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help