From patchwork Fri Apr 20 16:32:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10354043 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 259FD60231 for ; Sat, 21 Apr 2018 10:55:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AE172890E for ; Sat, 21 Apr 2018 10:55:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F251E28915; Sat, 21 Apr 2018 10:55:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9ACEF2890E for ; Sat, 21 Apr 2018 10:55:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3FA826E2FD; Sat, 21 Apr 2018 10:54:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8BEE56E6B4 for ; Fri, 20 Apr 2018 16:32:56 +0000 (UTC) Received: by mail-lf0-x244.google.com with SMTP id i18-v6so5992591lfc.7 for ; Fri, 20 Apr 2018 09:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8RtG+qL5zB5HBRvUUEA54H/KWkorEVXMhXHc+FetMoo=; b=pmSFQnplbdUkcXEMWJdpdRzpUO/K/3jE5LjUQ/aWypSRRnwu1hRhWt/6W1X4FKG6jm y9/chn9T3R8fMpv5gx2UkNn6eEaZ2s25FSrGAA0P3/P5FtgYEGLqA7UKa77upBbSzqg1 UpVuIosSS04BOGPE6CufBEyvPNqn/BnwW3sg8VnCTSZ7DWEMcOWBYBKCUcAvQEiqUCh3 pJ97JQsF/YhmDisQSHtBViyPORWUD5/8Qq9pH/pbYKzsdzt0sjkl0a/T2h+oElEzZQRx FMgBpmvA5EW1DjlBxMWNKCnvMPS99rq/xpO3poq/MI/0zOTUut6xpXDtSVMCCwbpT8PR Rfyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8RtG+qL5zB5HBRvUUEA54H/KWkorEVXMhXHc+FetMoo=; b=MMpxTle/Hq8n5y9gSxu5GZQFKKiWh6BALcMVQsp4uRzUwsnB9B5rfiwe/lWijGqXFs C7PNdQYyqntXHkfCskAjRH2at5WfmTVUqBlvB4cRjNu8NXvESmVr2epnzLq3LXI2PCBD kNfyUzc6wb69K68gyL/LRUigyq3VAv4+foAIyPAbK9O+e/QrjMGcjsasCVy8fo066FNm f61cw2z8e+tztQFNGC9d9NJo+r8G2wBWj+8IakcsLMkpVVqCFnhGzqndQNq0TYbYI48/ g1ZP01Jk0WTd3i24nj6zwGhoSiKQTUITrv6BwrHEc85zI7EBz7pim7z0iZVNJ6oAD4aE zS+A== X-Gm-Message-State: ALQs6tCviiKQSgbOlooAw/VsvvcMHPwwHZVPtmUD1ztfbRYOVmvcUR6k n6ftQDyeDpV1vGYHMXXWdA6z9BPhovU= X-Google-Smtp-Source: AIpwx4/IL0vdJOo97Xn1qmevTWWpL+jiNJBhnAweIIGsXit2RdVH0mqOu917OGWMTGAkjNOPDcqTsg== X-Received: by 10.46.146.204 with SMTP id k12mr954726ljh.101.1524241974903; Fri, 20 Apr 2018 09:32:54 -0700 (PDT) Received: from localhost.localdomain (user-94-254-173-44.play-internet.pl. [94.254.173.44]) by smtp.googlemail.com with ESMTPSA id x1sm720055lja.76.2018.04.20.09.32.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Apr 2018 09:32:54 -0700 (PDT) From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= To: inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com Subject: [PATCH 1/2] drm/exynos: fimd: Add support for S5PV210 FIMD variant Date: Fri, 20 Apr 2018 18:32:15 +0200 Message-Id: <1524241936-10295-2-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524241936-10295-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1524241936-10295-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 21 Apr 2018 10:54:49 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Tomasz Figa , kgene@kernel.org, krzk@kernel.org, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Tomasz Figa This patch adds support for FIMD variant found on S5PV210 SoC. Except CLKSEL bit availability, it is identical to Exynos4210. Tested-by: Paweł Chmiel Signed-off-by: Tomasz Figa --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index d42ae2bc3e56..01b1570d0c3a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -121,6 +121,12 @@ static struct fimd_driver_data s3c64xx_fimd_driver_data = { .has_limited_fmt = 1, }; +static struct fimd_driver_data s5pv210_fimd_driver_data = { + .timing_base = 0x0, + .has_shadowcon = 1, + .has_clksel = 1, +}; + static struct fimd_driver_data exynos3_fimd_driver_data = { .timing_base = 0x20000, .lcdblk_offset = 0x210, @@ -193,6 +199,8 @@ struct fimd_context { static const struct of_device_id fimd_driver_dt_match[] = { { .compatible = "samsung,s3c6400-fimd", .data = &s3c64xx_fimd_driver_data }, + { .compatible = "samsung,s5pv210-fimd", + .data = &s5pv210_fimd_driver_data }, { .compatible = "samsung,exynos3250-fimd", .data = &exynos3_fimd_driver_data }, { .compatible = "samsung,exynos4210-fimd",