sh_vou.h 716 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * SuperH Video Output Unit (VOU) driver header
  3. *
  4. * Copyright (C) 2010, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef SH_VOU_H
  11. #define SH_VOU_H
  12. #include <linux/i2c.h>
  13. /* Bus flags */
  14. #define SH_VOU_PCLK_FALLING (1 << 0)
  15. #define SH_VOU_HSYNC_LOW (1 << 1)
  16. #define SH_VOU_VSYNC_LOW (1 << 2)
  17. enum sh_vou_bus_fmt {
  18. SH_VOU_BUS_8BIT,
  19. SH_VOU_BUS_16BIT,
  20. SH_VOU_BUS_BT656,
  21. };
  22. struct sh_vou_pdata {
  23. enum sh_vou_bus_fmt bus_fmt;
  24. int i2c_adap;
  25. struct i2c_board_info *board_info;
  26. unsigned long flags;
  27. };
  28. #endif