summaryrefslogtreecommitdiffstats
path: root/drivers/clk/ti/clock.h
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2017-02-09 13:40:40 +0100
committerTero Kristo <t-kristo@ti.com>2017-03-08 12:03:22 +0100
commitd83bc5b69f2f86ac8354cdb8bbf1b56f34c4ddee (patch)
tree4e72891a12cba39a1bda9ccae5872a9122529014 /drivers/clk/ti/clock.h
parentclk: ti: drop unnecessary MEMMAP_ADDRESSING flag (diff)
downloadlinux-d83bc5b69f2f86ac8354cdb8bbf1b56f34c4ddee.tar.xz
linux-d83bc5b69f2f86ac8354cdb8bbf1b56f34c4ddee.zip
clk: ti: mux: convert TI mux clock to use its internal data representation
Instead of using the generic clock driver data struct, use one internal for the TI clock driver itself. This allows modifying the register access parts in subsequent patch. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/clk/ti/clock.h')
-rw-r--r--drivers/clk/ti/clock.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/clk/ti/clock.h b/drivers/clk/ti/clock.h
index cb906a199e66..41913bfa63a5 100644
--- a/drivers/clk/ti/clock.h
+++ b/drivers/clk/ti/clock.h
@@ -16,6 +16,17 @@
#ifndef __DRIVERS_CLK_TI_CLOCK__
#define __DRIVERS_CLK_TI_CLOCK__
+struct clk_omap_mux {
+ struct clk_hw hw;
+ void __iomem *reg;
+ u32 *table;
+ u32 mask;
+ u8 shift;
+ u8 flags;
+};
+
+#define to_clk_omap_mux(_hw) container_of(_hw, struct clk_omap_mux, hw)
+
enum {
TI_CLK_FIXED,
TI_CLK_MUX,