Merge tag 'mac80211-for-davem-2016-06-09' of git://git.kernel.org/pub/scm/linux/kerne...
[cascardo/linux.git] / drivers / gpu / drm / fsl-dcu / fsl_tcon.h
1 /*
2  * Copyright 2015 Toradex AG
3  *
4  * Stefan Agner <stefan@agner.ch>
5  *
6  * Freescale TCON device driver
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  */
13
14 #ifndef __FSL_TCON_H__
15 #define __FSL_TCON_H__
16
17 #include <linux/bitops.h>
18
19 #define FSL_TCON_CTRL1                  0x0
20 #define FSL_TCON_CTRL1_TCON_BYPASS      BIT(29)
21
22 struct fsl_tcon {
23         struct regmap           *regs;
24         struct clk              *ipg_clk;
25 };
26
27 struct fsl_tcon *fsl_tcon_init(struct device *dev);
28 void fsl_tcon_free(struct fsl_tcon *tcon);
29
30 void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
31 void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);
32
33 #endif /* __FSL_TCON_H__ */