PM / sleep: Asynchronous threads for suspend_noirq
[linux/fpc-iii.git] / drivers / gpu / drm / rcar-du / rcar_du_lvdsenc.h
blob7051c6de19ae2ba2eac298e82f71b6d0df0b2c22
1 /*
2 * rcar_du_lvdsenc.h -- R-Car Display Unit LVDS Encoder
4 * Copyright (C) 2013 Renesas Corporation
6 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
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.
14 #ifndef __RCAR_DU_LVDSENC_H__
15 #define __RCAR_DU_LVDSENC_H__
17 #include <linux/io.h>
18 #include <linux/module.h>
19 #include <linux/platform_data/rcar-du.h>
21 struct rcar_drm_crtc;
22 struct rcar_du_lvdsenc;
24 enum rcar_lvds_input {
25 RCAR_LVDS_INPUT_DU0,
26 RCAR_LVDS_INPUT_DU1,
27 RCAR_LVDS_INPUT_DU2,
30 #if IS_ENABLED(CONFIG_DRM_RCAR_LVDS)
31 int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu);
32 int rcar_du_lvdsenc_dpms(struct rcar_du_lvdsenc *lvds,
33 struct drm_crtc *crtc, int mode);
34 #else
35 static inline int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu)
37 return 0;
39 static inline int rcar_du_lvdsenc_dpms(struct rcar_du_lvdsenc *lvds,
40 struct drm_crtc *crtc, int mode)
42 return 0;
44 #endif
46 #endif /* __RCAR_DU_LVDSENC_H__ */