drm: rcar-du: Add R8A7795 device support
[deliverable/linux.git] / drivers / gpu / drm / rcar-du / rcar_du_lvdsenc.h
CommitLineData
90374b5c
LP
1/*
2 * rcar_du_lvdsenc.h -- R-Car Display Unit LVDS Encoder
3 *
36d50464 4 * Copyright (C) 2013-2014 Renesas Electronics Corporation
90374b5c
LP
5 *
6 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
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
14#ifndef __RCAR_DU_LVDSENC_H__
15#define __RCAR_DU_LVDSENC_H__
16
17#include <linux/io.h>
18#include <linux/module.h>
90374b5c
LP
19
20struct rcar_drm_crtc;
21struct rcar_du_lvdsenc;
22
23enum rcar_lvds_input {
24 RCAR_LVDS_INPUT_DU0,
25 RCAR_LVDS_INPUT_DU1,
26 RCAR_LVDS_INPUT_DU2,
27};
28
29#if IS_ENABLED(CONFIG_DRM_RCAR_LVDS)
30int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu);
44ef7ed5
LP
31int rcar_du_lvdsenc_enable(struct rcar_du_lvdsenc *lvds,
32 struct drm_crtc *crtc, bool enable);
90374b5c
LP
33#else
34static inline int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu)
35{
36 return 0;
37}
44ef7ed5
LP
38static inline int rcar_du_lvdsenc_enable(struct rcar_du_lvdsenc *lvds,
39 struct drm_crtc *crtc, bool enable)
90374b5c
LP
40{
41 return 0;
42}
43#endif
44
45#endif /* __RCAR_DU_LVDSENC_H__ */
This page took 0.14406 seconds and 5 git commands to generate.