Laurent Pinchart | 90374b5 | 2013-06-17 13:48:27 +0200 | [diff] [blame] | 1 | /* |
| 2 | * rcar_du_lvdsenc.h -- R-Car Display Unit LVDS Encoder |
| 3 | * |
Laurent Pinchart | 36d5046 | 2014-02-06 18:13:52 +0100 | [diff] [blame] | 4 | * Copyright (C) 2013-2014 Renesas Electronics Corporation |
Laurent Pinchart | 90374b5 | 2013-06-17 13:48:27 +0200 | [diff] [blame] | 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> |
Laurent Pinchart | 90374b5 | 2013-06-17 13:48:27 +0200 | [diff] [blame] | 19 | |
| 20 | struct rcar_drm_crtc; |
| 21 | struct rcar_du_lvdsenc; |
| 22 | |
| 23 | enum 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) |
| 30 | int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu); |
Laurent Pinchart | 44ef7ed | 2015-02-20 14:59:58 +0200 | [diff] [blame] | 31 | int rcar_du_lvdsenc_enable(struct rcar_du_lvdsenc *lvds, |
| 32 | struct drm_crtc *crtc, bool enable); |
Laurent Pinchart | d9829a3 | 2015-09-07 15:44:44 +0300 | [diff] [blame] | 33 | void rcar_du_lvdsenc_atomic_check(struct rcar_du_lvdsenc *lvds, |
| 34 | struct drm_display_mode *mode); |
Laurent Pinchart | 90374b5 | 2013-06-17 13:48:27 +0200 | [diff] [blame] | 35 | #else |
| 36 | static inline int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu) |
| 37 | { |
| 38 | return 0; |
| 39 | } |
Laurent Pinchart | 44ef7ed | 2015-02-20 14:59:58 +0200 | [diff] [blame] | 40 | static inline int rcar_du_lvdsenc_enable(struct rcar_du_lvdsenc *lvds, |
| 41 | struct drm_crtc *crtc, bool enable) |
Laurent Pinchart | 90374b5 | 2013-06-17 13:48:27 +0200 | [diff] [blame] | 42 | { |
| 43 | return 0; |
| 44 | } |
Laurent Pinchart | d9829a3 | 2015-09-07 15:44:44 +0300 | [diff] [blame] | 45 | static inline void rcar_du_lvdsenc_atomic_check(struct rcar_du_lvdsenc *lvds, |
| 46 | struct drm_display_mode *mode) |
| 47 | { |
| 48 | } |
Laurent Pinchart | 90374b5 | 2013-06-17 13:48:27 +0200 | [diff] [blame] | 49 | #endif |
| 50 | |
| 51 | #endif /* __RCAR_DU_LVDSENC_H__ */ |