1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * shmob_drm.h -- SH Mobile DRM driver
5 * Copyright (C) 2012 Renesas Corporation
7 * Laurent Pinchart (laurent.pinchart@ideasonboard.com)
10 #ifndef __SHMOB_DRM_H__
11 #define __SHMOB_DRM_H__
13 #include <video/videomode.h>
15 enum shmob_drm_clk_source
{
17 SHMOB_DRM_CLK_PERIPHERAL
,
18 SHMOB_DRM_CLK_EXTERNAL
,
21 struct shmob_drm_panel_data
{
22 unsigned int width_mm
; /* Panel width in mm */
23 unsigned int height_mm
; /* Panel height in mm */
24 struct videomode mode
;
27 struct shmob_drm_interface_data
{
28 unsigned int bus_fmt
; /* MEDIA_BUS_FMT_* */
32 struct shmob_drm_platform_data
{
33 enum shmob_drm_clk_source clk_source
;
34 struct shmob_drm_interface_data iface
;
35 struct shmob_drm_panel_data panel
;
38 #endif /* __SHMOB_DRM_H__ */