OSDN Git Service

drm/omap: use DRM_MODE_ROTATE_* instead of OMAP_DSS_ROT_*
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 16 May 2017 08:05:09 +0000 (11:05 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 08:05:32 +0000 (11:05 +0300)
commit0bd97c42d975a1e0849105bb8f23a68490683aab
tree2cf19d4c4d1b8adf187e463cd2f7a54c09826bba
parent218ed5358a4045382674f8feeee0efb526f9431b
drm/omap: use DRM_MODE_ROTATE_* instead of OMAP_DSS_ROT_*

At the moment the dispc driver uses a custom enum for rotation. Change
it to use the DRM's DRM_MODE_ROTATE_*.

Note that mirroring is at the moment handled as a separate boolean in
the dispc driver, so we only use the DRM_MODE_ROTATE_* values.

Note, DSS HW uses clockwise rotation, DRM counter-clockwise.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/dss/dispc.c
drivers/gpu/drm/omapdrm/dss/omapdss.h
drivers/gpu/drm/omapdrm/omap_plane.c