]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - drivers/gpu/drm/fsl-dcu/fsl_tcon.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
[mirror_ubuntu-eoan-kernel.git] / drivers / gpu / drm / fsl-dcu / fsl_tcon.h
CommitLineData
2874c5fd 1/* SPDX-License-Identifier: GPL-2.0-or-later */
fb127b79
SA
2/*
3 * Copyright 2015 Toradex AG
4 *
5 * Stefan Agner <stefan@agner.ch>
6 *
7 * Freescale TCON device driver
fb127b79
SA
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
18struct fsl_tcon {
19 struct regmap *regs;
20 struct clk *ipg_clk;
21};
22
23struct fsl_tcon *fsl_tcon_init(struct device *dev);
24void fsl_tcon_free(struct fsl_tcon *tcon);
25
26void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
27void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);
28
29#endif /* __FSL_TCON_H__ */