diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2023-09-15 11:53:38 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-10-16 12:47:46 +0300 |
commit | 6a6ab0c7162b4b10ce74347e282e1bc81103a48f (patch) | |
tree | d7d89bf6d16a44639c7ae409026f02d9772c584b /include/linux/platform_data | |
parent | c2e938ee9ae238f62424fc908cef97d96a1fee53 (diff) | |
download | linux-6a6ab0c7162b4b10ce74347e282e1bc81103a48f.tar.xz |
drm: renesas: shmobile: Use struct videomode in platform data
Replace the drm_mode_modeinfo field with videomode that includes more
signal polarity flags. This simplifies driver handling of panel modes
and prepares for DT support.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
[geert: Simplify]
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/4312e56de424d94399c6105e7159317eae86c9d5.1694767209.git.geert+renesas@glider.be
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/shmob_drm.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/platform_data/shmob_drm.h b/include/linux/platform_data/shmob_drm.h index b728e24222d9..f3cb19ff9f81 100644 --- a/include/linux/platform_data/shmob_drm.h +++ b/include/linux/platform_data/shmob_drm.h @@ -10,7 +10,7 @@ #ifndef __SHMOB_DRM_H__ #define __SHMOB_DRM_H__ -#include <drm/drm_mode.h> +#include <video/videomode.h> enum shmob_drm_clk_source { SHMOB_DRM_CLK_BUS, @@ -32,19 +32,12 @@ enum shmob_drm_interface { struct shmob_drm_panel_data { unsigned int width_mm; /* Panel width in mm */ unsigned int height_mm; /* Panel height in mm */ - struct drm_mode_modeinfo mode; + struct videomode mode; }; -#define SHMOB_DRM_IFACE_FL_DWPOL (1 << 0) /* Rising edge dot clock data latch */ -#define SHMOB_DRM_IFACE_FL_DIPOL (1 << 1) /* Active low display enable */ -#define SHMOB_DRM_IFACE_FL_DAPOL (1 << 2) /* Active low display data */ -#define SHMOB_DRM_IFACE_FL_HSCNT (1 << 3) /* Disable HSYNC during VBLANK */ -#define SHMOB_DRM_IFACE_FL_DWCNT (1 << 4) /* Disable dotclock during blanking */ - struct shmob_drm_interface_data { enum shmob_drm_interface interface; unsigned int clk_div; - unsigned int flags; }; struct shmob_drm_platform_data { |