xref: /openbmc/linux/drivers/gpu/drm/fsl-dcu/fsl_tcon.h (revision 3381df09)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright 2015 Toradex AG
4  *
5  * Stefan Agner <stefan@agner.ch>
6  *
7  * Freescale TCON device driver
8  */
9 
10 #ifndef __FSL_TCON_H__
11 #define __FSL_TCON_H__
12 
13 #include <linux/bitops.h>
14 
15 #define FSL_TCON_CTRL1			0x0
16 #define FSL_TCON_CTRL1_TCON_BYPASS	BIT(29)
17 
18 struct fsl_tcon {
19 	struct regmap		*regs;
20 	struct clk		*ipg_clk;
21 };
22 
23 struct fsl_tcon *fsl_tcon_init(struct device *dev);
24 void fsl_tcon_free(struct fsl_tcon *tcon);
25 
26 void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
27 void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);
28 
29 #endif /* __FSL_TCON_H__ */
30