10bbce9ebSKuninori Morimoto/* SPDX-License-Identifier: GPL-2.0+ */
26978f123SLaurent Pinchart/*
36978f123SLaurent Pinchart * rcar_du_encoder.h  --  R-Car Display Unit Encoder
46978f123SLaurent Pinchart *
536d50464SLaurent Pinchart * Copyright (C) 2013-2014 Renesas Electronics Corporation
66978f123SLaurent Pinchart *
76978f123SLaurent Pinchart * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
86978f123SLaurent Pinchart */
96978f123SLaurent Pinchart
106978f123SLaurent Pinchart#ifndef __RCAR_DU_ENCODER_H__
116978f123SLaurent Pinchart#define __RCAR_DU_ENCODER_H__
126978f123SLaurent Pinchart
139338203cSLaurent Pinchart#include <drm/drm_encoder.h>
146978f123SLaurent Pinchart
156978f123SLaurent Pinchartstruct rcar_du_device;
166978f123SLaurent Pinchart
176978f123SLaurent Pinchartstruct rcar_du_encoder {
181d926114SArchit Taneja	struct drm_encoder base;
19ef67a902SLaurent Pinchart	enum rcar_du_output output;
206978f123SLaurent Pinchart};
216978f123SLaurent Pinchart
226978f123SLaurent Pinchart#define to_rcar_encoder(e) \
231d926114SArchit Taneja	container_of(e, struct rcar_du_encoder, base)
246978f123SLaurent Pinchart
256978f123SLaurent Pinchartint rcar_du_encoder_init(struct rcar_du_device *rcdu,
26ef67a902SLaurent Pinchart			 enum rcar_du_output output,
275aebc852SLaurent Pinchart			 struct device_node *enc_node);
286978f123SLaurent Pinchart
296978f123SLaurent Pinchart#endif /* __RCAR_DU_ENCODER_H__ */
30