]> git.baikalelectronics.ru Git - kernel.git/commit
drm/komeda: Add rotation support on Komeda driver
authorLowry Li (Arm Technology China) <Lowry.Li@arm.com>
Mon, 22 Apr 2019 03:16:26 +0000 (04:16 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 19 Jun 2019 10:42:16 +0000 (11:42 +0100)
commit096352bf53b020c7f433a55527fac82ce0bbd859
tree250ebf5834e78c147b77f4521774c28657596661
parent0b9c0cbf9bf026023aadc7be7ae4ebec4eae7ad4
drm/komeda: Add rotation support on Komeda driver

- Adds rotation property to plane.
- Komeda display rotation support diverges from the specific formats,
so need to check the user required rotation type with the format caps
and reject the commit if it can not be supported.
- In the layer validate flow, sets the rotation value to the layer
state. If r90 or r270, swap the width and height of the data flow
for next stage.

Signed-off-by: Lowry Li (Arm Technology China) <lowry.li@arm.com>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/display/komeda/komeda_format_caps.h
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c
drivers/gpu/drm/arm/display/komeda/komeda_plane.c