vpbe_venc.h 957 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2010 Texas Instruments Inc
  4. */
  5. #ifndef _VPBE_VENC_H
  6. #define _VPBE_VENC_H
  7. #include <media/v4l2-subdev.h>
  8. #include <media/davinci/vpbe_types.h>
  9. #define DM644X_VPBE_VENC_SUBDEV_NAME "dm644x,vpbe-venc"
  10. #define DM365_VPBE_VENC_SUBDEV_NAME "dm365,vpbe-venc"
  11. #define DM355_VPBE_VENC_SUBDEV_NAME "dm355,vpbe-venc"
  12. /* venc events */
  13. #define VENC_END_OF_FRAME BIT(0)
  14. #define VENC_FIRST_FIELD BIT(1)
  15. #define VENC_SECOND_FIELD BIT(2)
  16. struct venc_platform_data {
  17. int (*setup_pinmux)(u32 if_type, int field);
  18. int (*setup_clock)(enum vpbe_enc_timings_type type,
  19. unsigned int pixclock);
  20. int (*setup_if_config)(u32 pixcode);
  21. /* Number of LCD outputs supported */
  22. int num_lcd_outputs;
  23. struct vpbe_if_params *lcd_if_params;
  24. };
  25. enum venc_ioctls {
  26. VENC_GET_FLD = 1,
  27. };
  28. /* exported functions */
  29. struct v4l2_subdev *venc_sub_dev_init(struct v4l2_device *v4l2_dev,
  30. const char *venc_name);
  31. #endif