diff options
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/rcar-du.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/include/linux/platform_data/rcar-du.h b/include/linux/platform_data/rcar-du.h new file mode 100644 index 000000000000..80587fdbba3e --- /dev/null +++ b/include/linux/platform_data/rcar-du.h | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | /* | ||
| 2 | * rcar_du.h -- R-Car Display Unit DRM driver | ||
| 3 | * | ||
| 4 | * Copyright (C) 2013 Renesas Corporation | ||
| 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_H__ | ||
| 15 | #define __RCAR_DU_H__ | ||
| 16 | |||
| 17 | #include <drm/drm_mode.h> | ||
| 18 | |||
| 19 | enum rcar_du_encoder_type { | ||
| 20 | RCAR_DU_ENCODER_UNUSED = 0, | ||
| 21 | RCAR_DU_ENCODER_VGA, | ||
| 22 | RCAR_DU_ENCODER_LVDS, | ||
| 23 | }; | ||
| 24 | |||
| 25 | struct rcar_du_panel_data { | ||
| 26 | unsigned int width_mm; /* Panel width in mm */ | ||
| 27 | unsigned int height_mm; /* Panel height in mm */ | ||
| 28 | struct drm_mode_modeinfo mode; | ||
| 29 | }; | ||
| 30 | |||
| 31 | struct rcar_du_encoder_lvds_data { | ||
| 32 | struct rcar_du_panel_data panel; | ||
| 33 | }; | ||
| 34 | |||
| 35 | struct rcar_du_encoder_vga_data { | ||
| 36 | /* TODO: Add DDC information for EDID retrieval */ | ||
| 37 | }; | ||
| 38 | |||
| 39 | struct rcar_du_encoder_data { | ||
| 40 | enum rcar_du_encoder_type encoder; | ||
| 41 | unsigned int output; | ||
| 42 | |||
| 43 | union { | ||
| 44 | struct rcar_du_encoder_lvds_data lvds; | ||
| 45 | struct rcar_du_encoder_vga_data vga; | ||
| 46 | } u; | ||
| 47 | }; | ||
| 48 | |||
| 49 | struct rcar_du_platform_data { | ||
| 50 | struct rcar_du_encoder_data *encoders; | ||
| 51 | unsigned int num_encoders; | ||
| 52 | }; | ||
| 53 | |||
| 54 | #endif /* __RCAR_DU_H__ */ | ||
