From patchwork Sat Apr 21 17:26:10 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: 10354349 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 665716019C for ; Sat, 21 Apr 2018 17:28:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55C7D28891 for ; Sat, 21 Apr 2018 17:28:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48DBA288E8; Sat, 21 Apr 2018 17:28:12 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A7A5428891 for ; Sat, 21 Apr 2018 17:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Yky6rfsL/+NTi431bVDvHmczqcSHOvd62IfmFskfL98=; b=S/T0GrtNopGUA/ zwUVuiXQh30PBTwQ8HeFkunHrVn49TXSKZ4j5gbDwdmJ3YKd9OlvSLCN6v/A5TrIlKMZ4BbeKk24W HlxD36JoOD8dlGqRrCnOsfFtR0zqMQP5K0fwus2+0qdQ/ZOtfd7uCYCTfKkDDLKmF1S6m6f5t5Mty jYBwFgb3H9SRlqw+2g/6jbtnOGMER+v6skjcAcd3gXAdJ0fVzrHZqphjg9EBWtdcV49vxsBfQq5K+ tl/Gahq+uTPJ6oFgz+xMROL267USCbn8eEQ4FndA5lI/KuX8Aww/eI2Z21s61tDbeOqnWbKA9RB2T exA+ilyfh6zmXJIJv2MA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9wIw-0003pr-9N; Sat, 21 Apr 2018 17:28:06 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9wHb-0003EM-EP for linux-arm-kernel@lists.infradead.org; Sat, 21 Apr 2018 17:26:45 +0000 Received: by mail-lf0-x241.google.com with SMTP id z130-v6so9294281lff.5 for ; Sat, 21 Apr 2018 10:26:32 -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=G9V5JZNr8bRIejY2yXm1+646kxJFmAVFbSWWx3aH/Tw=; b=oOZwM9KtpUi4jJ5+oLoTFKbRCx68rJUA2zngzBpFVoKpk1xQVdQcoTndu/ZzqcrLDO ln9d2zVB4llLfCGhbIfR8nyHhkGN1DigBtibIt5RwkZ/sC2yckT0rdz+a4qEzN6ENdmW r2IXlWHkw8yFOIrrWGncPwnSK5oagJRBD/nM0eRyXE4sPNF+jX1DIH+hhItHKzeCPrMM 6VQyvVgM1WKx6BQlLnxIDq8FtzH3FqEd73RncvTO7CIGiXbDfd8yUK8FRezL+PebIAQE fKUpVV+0KnKvxZmsPN8lOYU4Ev3TiMGpimMzEfcxoYDciJx3U6Bi1QtEzJC9esjAdp/w TmXw== 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=G9V5JZNr8bRIejY2yXm1+646kxJFmAVFbSWWx3aH/Tw=; b=YWgTs34uCmcIniYXPA5g1wVU69SqpN7je0BDRRExURoTK/Wl6besG/RzGAs2F0R/sG ic6j230MyR6pbN+GItC7G5qFT/6oeZlFFTQrS5lMS4O8lpRxeE9jFf74fBPsUZ/BWArZ uwTls7bwxMhjrGcbH9pSviItl3goMZrAf/wkcGjkEkiXuOToKeEpj6roSPEg1tlTjfmg B2tlsFwUA78FGmZFM2q/rVVhphtaZlKo4YlO6cT9sov8aw8jl4UN8GOaFOvGgs/2pC0m ZaP7sk3HyPrS5bxdSMkjAQozfizhfO4Eact9SiOMhPsxP7Daa07lIbF6I35qRq5XCD7c n0KQ== X-Gm-Message-State: ALQs6tBN+XN7czW4X4n5uHGSMuN6phFaDJYJ36cZtzODVed7F+tBfXuW 7pgTlrCItwgXhDPoKlZL2ok= X-Google-Smtp-Source: AB8JxZoOxoHppn1o5oB8NiizkRxERd1txyXgwR3fjbEaULX6lqqC/cktqCnee6oiE3Ul6TmUyiFmWw== X-Received: by 2002:a19:f203:: with SMTP id q3-v6mr5173740lfh.54.1524331591140; Sat, 21 Apr 2018 10:26:31 -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 u64sm1537884lja.74.2018.04.21.10.26.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 21 Apr 2018 10:26:30 -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 v2 1/2] drm/exynos: fimd: Add support for S5PV210 FIMD variant Date: Sat, 21 Apr 2018 19:26:10 +0200 Message-Id: <1524331571-7420-2-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524331571-7420-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1524331571-7420-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180421_102643_489739_D1A04153 X-CRM114-Status: GOOD ( 15.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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, =?UTF-8?q?Pawe=C5=82=20Chmiel?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 Signed-off-by: Paweł Chmiel --- Changes from v1: - Added missing signed-off-by --- 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",