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