Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / fsl-dcu / fsl_tcon.h
blob23aa78f14d16050097ff717106052e805b09a0a8
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright 2015 Toradex AG
5 * Stefan Agner <stefan@agner.ch>
7 * Freescale TCON device driver
8 */
10 #ifndef __FSL_TCON_H__
11 #define __FSL_TCON_H__
13 #include <linux/bitops.h>
15 #define FSL_TCON_CTRL1 0x0
16 #define FSL_TCON_CTRL1_TCON_BYPASS BIT(29)
18 struct fsl_tcon {
19 struct regmap *regs;
20 struct clk *ipg_clk;
23 struct fsl_tcon *fsl_tcon_init(struct device *dev);
24 void fsl_tcon_free(struct fsl_tcon *tcon);
26 void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
27 void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);
29 #endif /* __FSL_TCON_H__ */