aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>2014-08-18 04:32:59 -0400
committerMike Turquette <mturquette@linaro.org>2014-09-09 16:55:38 -0400
commita8a76f563cfa1a4e47b6d8b2bef9c0d44a3fd7b0 (patch)
treea1b20c566d96d858573e9eed8d50a78579c631e8
parent8eaf503480e4b45c2cb5d555388ab209ae305dd3 (diff)
clk: max77686: Add DT include for MAX77686 PMIC clock
This patch adds a dt-binding include for Maxim 77686 PMIC clock IDs that can be used by both the max77686 clock driver and Device Tree source files. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
-rw-r--r--drivers/clk/clk-max77686.c7
-rw-r--r--include/dt-bindings/clock/maxim,max77686.h23
2 files changed, 24 insertions, 6 deletions
diff --git a/drivers/clk/clk-max77686.c b/drivers/clk/clk-max77686.c
index 3d7e8dd8fd58..185b611c957e 100644
--- a/drivers/clk/clk-max77686.c
+++ b/drivers/clk/clk-max77686.c
@@ -30,12 +30,7 @@
30#include <linux/mutex.h> 30#include <linux/mutex.h>
31#include <linux/clkdev.h> 31#include <linux/clkdev.h>
32 32
33enum { 33#include <dt-bindings/clock/maxim,max77686.h>
34 MAX77686_CLK_AP = 0,
35 MAX77686_CLK_CP,
36 MAX77686_CLK_PMIC,
37 MAX77686_CLKS_NUM,
38};
39 34
40struct max77686_clk { 35struct max77686_clk {
41 struct max77686_dev *iodev; 36 struct max77686_dev *iodev;
diff --git a/include/dt-bindings/clock/maxim,max77686.h b/include/dt-bindings/clock/maxim,max77686.h
new file mode 100644
index 000000000000..7b28b0905869
--- /dev/null
+++ b/include/dt-bindings/clock/maxim,max77686.h
@@ -0,0 +1,23 @@
1/*
2 * Copyright (C) 2014 Google, Inc
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * Device Tree binding constants clocks for the Maxim 77686 PMIC.
9 */
10
11#ifndef _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H
12#define _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H
13
14/* Fixed rate clocks. */
15
16#define MAX77686_CLK_AP 0
17#define MAX77686_CLK_CP 1
18#define MAX77686_CLK_PMIC 2
19
20/* Total number of clocks. */
21#define MAX77686_CLKS_NUM (MAX77686_CLK_PMIC + 1)
22
23#endif /* _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H */