summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/fsl-dcu/fsl_tcon.h
blob: 80a7617de58fad1c31aacd2e58734ce1a6b435b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright 2015 Toradex AG
 *
 * Stefan Agner <stefan@agner.ch>
 *
 * Freescale TCON device driver
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef __FSL_TCON_H__
#define __FSL_TCON_H__

#include <linux/bitops.h>

#define FSL_TCON_CTRL1			0x0
#define FSL_TCON_CTRL1_TCON_BYPASS	BIT(29)

struct fsl_tcon {
	struct regmap		*regs;
	struct clk		*ipg_clk;
};

struct fsl_tcon *fsl_tcon_init(struct device *dev);
void fsl_tcon_free(struct fsl_tcon *tcon);

void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);

#endif /* __FSL_TCON_H__ */