aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'exynos/exynos_fimg2d.c')
-rw-r--r--exynos/exynos_fimg2d.c39
1 files changed, 17 insertions, 22 deletions
diff --git a/exynos/exynos_fimg2d.c b/exynos/exynos_fimg2d.c
index 7f1d105a..bca884b9 100644
--- a/exynos/exynos_fimg2d.c
+++ b/exynos/exynos_fimg2d.c
@@ -3,17 +3,26 @@
3 * Authors: 3 * Authors:
4 * Inki Dae <inki.dae@samsung.com> 4 * Inki Dae <inki.dae@samsung.com>
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * under the terms of the GNU General Public License as published by the 7 * copy of this software and associated documentation files (the "Software"),
8 * Free Software Foundation; either version 2 of the License, or (at your 8 * to deal in the Software without restriction, including without limitation
9 * option) any later version. 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
10 * 12 *
13 * The above copyright notice and this permission notice (including the next
14 * paragraph) shall be included in all copies or substantial portions of the
15 * Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 * OTHER DEALINGS IN THE SOFTWARE.
11 */ 24 */
12 25
13#ifdef HAVE_CONFIG_H
14#include "config.h"
15#endif
16
17#include <stdlib.h> 26#include <stdlib.h>
18#include <stdio.h> 27#include <stdio.h>
19#include <string.h> 28#include <string.h>
@@ -293,20 +302,6 @@ static void g2d_set_direction(struct g2d_context *ctx,
293} 302}
294 303
295/* 304/*
296 * g2d_reset - reset fimg2d hardware.
297 *
298 * @ctx: a pointer to g2d_context structure.
299 *
300 */
301static void g2d_reset(struct g2d_context *ctx)
302{
303 ctx->cmd_nr = 0;
304 ctx->cmd_buf_nr = 0;
305
306 g2d_add_cmd(ctx, SOFT_RESET_REG, 0x01);
307}
308
309/*
310 * g2d_flush - submit all commands and values in user side command buffer 305 * g2d_flush - submit all commands and values in user side command buffer
311 * to command queue aware of fimg2d dma. 306 * to command queue aware of fimg2d dma.
312 * 307 *