fsl_tcon.h 602 B

1234567891011121314151617181920212223242526272829
  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. #ifndef __FSL_TCON_H__
  10. #define __FSL_TCON_H__
  11. #include <linux/bitops.h>
  12. #define FSL_TCON_CTRL1 0x0
  13. #define FSL_TCON_CTRL1_TCON_BYPASS BIT(29)
  14. struct fsl_tcon {
  15. struct regmap *regs;
  16. struct clk *ipg_clk;
  17. };
  18. struct fsl_tcon *fsl_tcon_init(struct device *dev);
  19. void fsl_tcon_free(struct fsl_tcon *tcon);
  20. void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
  21. void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);
  22. #endif /* __FSL_TCON_H__ */