Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8a76f56 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Mike Turquette
Browse files

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: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: default avatarMike Turquette <mturquette@linaro.org>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 8eaf5034
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -30,12 +30,7 @@
#include <linux/mutex.h>
#include <linux/clkdev.h>

enum {
	MAX77686_CLK_AP = 0,
	MAX77686_CLK_CP,
	MAX77686_CLK_PMIC,
	MAX77686_CLKS_NUM,
};
#include <dt-bindings/clock/maxim,max77686.h>

struct max77686_clk {
	struct max77686_dev *iodev;
+23 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2014 Google, Inc
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * Device Tree binding constants clocks for the Maxim 77686 PMIC.
 */

#ifndef _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H
#define _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H

/* Fixed rate clocks. */

#define MAX77686_CLK_AP		0
#define MAX77686_CLK_CP		1
#define MAX77686_CLK_PMIC	2

/* Total number of clocks. */
#define MAX77686_CLKS_NUM		(MAX77686_CLK_PMIC + 1)

#endif /* _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H */