From patchwork Fri Dec 14 06:48:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joonyoung Shim X-Patchwork-Id: 1877471 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 46072DF230 for ; Fri, 14 Dec 2012 06:51:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F606E5DC0 for ; Thu, 13 Dec 2012 22:51:22 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C564E672D for ; Thu, 13 Dec 2012 22:48:18 -0800 (PST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MF000IZ7DKG2BS0@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 14 Dec 2012 15:48:16 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.42]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4F.F4.12699.0BBCAC05; Fri, 14 Dec 2012 15:48:16 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-00-50cacbb0b70c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id DE.F4.12699.0BBCAC05; Fri, 14 Dec 2012 15:48:16 +0900 (KST) Received: from localhost.localdomain ([10.90.51.60]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MF000FDIDKFVVD2@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 14 Dec 2012 15:48:16 +0900 (KST) From: Joonyoung Shim To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/4] drm/exynos: support extended screen coordinate of fimd Date: Fri, 14 Dec 2012 15:48:24 +0900 Message-id: <1355467705-12264-4-git-send-email-jy0922.shim@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1355467705-12264-1-git-send-email-jy0922.shim@samsung.com> References: <1355467705-12264-1-git-send-email-jy0922.shim@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsVy+t8zLd0Np08FGLy+I2lx5et7NgdGj/vd x5kCGKO4bFJSczLLUov07RK4Mv4+ecdSsFmw4tTcFvYGxgt8XYycHBICJhL7VjQwQthiEhfu rWfrYuTiEBJYxijxbelEli5GDrCiA3ddIOLTGSWa7i1igXBWMEk82feABaSbTUBP4s6240wg toiAssTfiavApjILGEt0zP/CCmILC3hLHJrymxFkKIuAqkTPERGQMK+Au8T2vdegdilIzJlk AxLmFPCQ2NdwCmyiEFBJw/ovYDaLgIDEt8mHoMplJTYdYAa5RkLgOpvE8+dv2CB+kZQ4uOIG ywRG4QWMDKsYRVMLkguKk9JzjfSKE3OLS/PS9ZLzczcxQgJQegfjqgaLQ4wCHIxKPLwfhE4F CLEmlhVX5h5ilOBgVhLhlTwCFOJNSaysSi3Kjy8qzUktPsToA3TJRGYp0eR8YHTklcQbGhsY GxpaGpqZWpoa4BBWEudt9kgJEBJITyxJzU5NLUgtghnHxMEp1cCY4Hp6XnDtxN2HArrYTp8x 3bPkz6dWzt0thh55edt5n7G+rDlia3yB0djmR3izR9uaiTcmp7Rxxq0Ssz+kyhbp9i5BgZel SLLripBHI8fvD74PZXk1Fwdc+c0roXvg6PG1O1iOBbwu9Liyrym+9+De209mGU43XH1xohrz rf1Fv824Z1WuaJVUYinOSDTUYi4qTgQAOCNwZm0CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkkeLIzCtJLcpLzFFi42I5/e+xoO6G06cCDI5NFbG48vU9mwOjx/3u 40wBjFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QGOVFMoSc0qBQgGJxcVK+naYJoSGuOlawDRG6PqGBMH1GBmggYR1jBl/n7xjKdgsWHFqbgt7 A+MFvi5GDg4JAROJA3dduhg5gUwxiQv31rN1MXJxCAlMZ5RoureIBcJZwSTxZN8DFpAqNgE9 iTvbjjOB2CICyhJ/J65iBLGZBYwlOuZ/YQWxhQW8JQ5N+c0IsoBFQFWi54gISJhXwF1i+95r LBB7FSTmTLIBCXMKeEjsazgFNlEIqKRh/RemCYy8CxgZVjGKphYkFxQnpeca6RUn5haX5qXr JefnbmIEh/cz6R2MqxosDjEKcDAq8fB+EDoVIMSaWFZcmXuIUYKDWUmEV/IIUIg3JbGyKrUo P76oNCe1+BCjD9BNE5mlRJPzgbGXVxJvaGxiZmRpZGZsYm5sjENYSZy32SMlQEggPbEkNTs1 tSC1CGYcEwenVANjYdU05jIr32wNKTWdzfINi3LE//g5RnXrnHx+v/6ABadGifqml6oHrRre ZqZ3ih+adT8+yEr5E3fWXM1DMRwcJ/RPmUh0HuEL495QXt6fUBC4wCVjhWa2qP/hvbMZ8i+y ergI3L657OZjpbLm2Y1n/ddPZV+w8P+P5U9W1joYxBzhbpPZ5KbEUpyRaKjFXFScCAABUzBi nAIAAA== X-CFilter-Loop: Reflected Cc: kyungmin.park@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org The fimd of exynos5 SoC supports extended screen coordinate. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index ae0153b..1e4ea96 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -243,7 +243,9 @@ static void fimd_commit(struct device *dev) /* setup horizontal and vertical display size. */ val = VIDTCON2_LINEVAL(timing->yres - 1) | - VIDTCON2_HOZVAL(timing->xres - 1); + VIDTCON2_HOZVAL(timing->xres - 1) | + VIDTCON2_LINEVAL_E(timing->yres - 1) | + VIDTCON2_HOZVAL_E(timing->xres - 1); writel(val, ctx->regs + driver_data->timing_base + VIDTCON2); /* setup clock source, clock divider, enable dma. */ @@ -518,12 +520,16 @@ static void fimd_win_commit(struct device *dev, int zpos) /* buffer size */ val = VIDW_BUF_SIZE_OFFSET(win_data->buf_offsize) | - VIDW_BUF_SIZE_PAGEWIDTH(win_data->line_size); + VIDW_BUF_SIZE_PAGEWIDTH(win_data->line_size) | + VIDW_BUF_SIZE_OFFSET_E(win_data->buf_offsize) | + VIDW_BUF_SIZE_PAGEWIDTH_E(win_data->line_size); writel(val, ctx->regs + VIDWx_BUF_SIZE(win, 0)); /* OSD position */ val = VIDOSDxA_TOPLEFT_X(win_data->offset_x) | - VIDOSDxA_TOPLEFT_Y(win_data->offset_y); + VIDOSDxA_TOPLEFT_Y(win_data->offset_y) | + VIDOSDxA_TOPLEFT_X_E(win_data->offset_x) | + VIDOSDxA_TOPLEFT_Y_E(win_data->offset_y); writel(val, ctx->regs + VIDOSD_A(win)); last_x = win_data->offset_x + win_data->ovl_width; @@ -533,7 +539,9 @@ static void fimd_win_commit(struct device *dev, int zpos) if (last_y) last_y--; - val = VIDOSDxB_BOTRIGHT_X(last_x) | VIDOSDxB_BOTRIGHT_Y(last_y); + val = VIDOSDxB_BOTRIGHT_X(last_x) | VIDOSDxB_BOTRIGHT_Y(last_y) | + VIDOSDxB_BOTRIGHT_X_E(last_x) | VIDOSDxB_BOTRIGHT_Y_E(last_y); + writel(val, ctx->regs + VIDOSD_B(win)); DRM_DEBUG_KMS("osd pos: tx = %d, ty = %d, bx = %d, by = %d\n",