Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright 2015 Toradex AG
0004  *
0005  * Stefan Agner <stefan@agner.ch>
0006  *
0007  * Freescale TCON device driver
0008  */
0009 
0010 #ifndef __FSL_TCON_H__
0011 #define __FSL_TCON_H__
0012 
0013 #include <linux/bitops.h>
0014 
0015 #define FSL_TCON_CTRL1          0x0
0016 #define FSL_TCON_CTRL1_TCON_BYPASS  BIT(29)
0017 
0018 struct fsl_tcon {
0019     struct regmap       *regs;
0020     struct clk      *ipg_clk;
0021 };
0022 
0023 struct fsl_tcon *fsl_tcon_init(struct device *dev);
0024 void fsl_tcon_free(struct fsl_tcon *tcon);
0025 
0026 void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
0027 void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);
0028 
0029 #endif /* __FSL_TCON_H__ */