diff options
author | Steve Longerbeam <slongerbeam@gmail.com> | 2016-09-17 19:33:57 (GMT) |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-09-19 06:30:14 (GMT) |
commit | 8b9c3d5099b265892ab3578bc757d9b81e5655a6 (patch) | |
tree | 89b2978f9d5a25bb77dac69bc9370cdbc50e54eb /drivers/gpu/ipu-v3 | |
parent | e92e44787763f006911fe09adccfa285f9c7b8d7 (diff) | |
download | linux-8b9c3d5099b265892ab3578bc757d9b81e5655a6.tar.xz |
gpu: ipu-v3: Add ipu_rot_mode_is_irt()
Add a macro that returns boolean true if the given ipu_rotate_mode
requires the use of the Image Rotator.
Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/ipu-v3')
-rw-r--r-- | drivers/gpu/ipu-v3/ipu-ic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b/drivers/gpu/ipu-v3/ipu-ic.c index 1a37afc..321eb98 100644 --- a/drivers/gpu/ipu-v3/ipu-ic.c +++ b/drivers/gpu/ipu-v3/ipu-ic.c @@ -619,7 +619,7 @@ int ipu_ic_task_idma_init(struct ipu_ic *ic, struct ipuv3_channel *channel, ipu_ic_write(ic, ic_idmac_2, IC_IDMAC_2); ipu_ic_write(ic, ic_idmac_3, IC_IDMAC_3); - if (rot >= IPU_ROTATE_90_RIGHT) + if (ipu_rot_mode_is_irt(rot)) ic->rotation = true; unlock: |