fsl_tcon.h 809 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright 2015 Toradex AG
  3. *
  4. * Stefan Agner <stefan@agner.ch>
  5. *
  6. * Freescale TCON device driver
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. */
  13. #ifndef __FSL_TCON_H__
  14. #define __FSL_TCON_H__
  15. #include <linux/bitops.h>
  16. #define FSL_TCON_CTRL1 0x0
  17. #define FSL_TCON_CTRL1_TCON_BYPASS BIT(29)
  18. struct fsl_tcon {
  19. struct regmap *regs;
  20. struct clk *ipg_clk;
  21. };
  22. struct fsl_tcon *fsl_tcon_init(struct device *dev);
  23. void fsl_tcon_free(struct fsl_tcon *tcon);
  24. void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
  25. void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);
  26. #endif /* __FSL_TCON_H__ */