1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * shmob_drm.h -- SH Mobile DRM driver 4 * 5 * Copyright (C) 2012 Renesas Corporation 6 * 7 * Laurent Pinchart (laurent.pinchart@ideasonboard.com) 8 */ 9 10 #ifndef __SHMOB_DRM_H__ 11 #define __SHMOB_DRM_H__ 12 13 #include <video/videomode.h> 14 15 enum shmob_drm_clk_source { 16 SHMOB_DRM_CLK_BUS, 17 SHMOB_DRM_CLK_PERIPHERAL, 18 SHMOB_DRM_CLK_EXTERNAL, 19 }; 20 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; 25 }; 26 27 struct shmob_drm_interface_data { 28 unsigned int bus_fmt; /* MEDIA_BUS_FMT_* */ 29 unsigned int clk_div; 30 }; 31 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; 36 }; 37 38 #endif /* __SHMOB_DRM_H__ */ 39