From patchwork Thu Oct 4 15:18:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 1545651 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id B0CC83FD9C for ; Thu, 4 Oct 2012 09:26:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 96033A0D89 for ; Thu, 4 Oct 2012 02:26:47 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id B5954A0C38 for ; Thu, 4 Oct 2012 00:01:42 -0700 (PDT) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBC00KMJWT4NUC0@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 04 Oct 2012 16:01:21 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A2.9E.03783.0443D605; Thu, 04 Oct 2012 16:01:21 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-ed-506d34406fea Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F1.9E.03783.0443D605; Thu, 04 Oct 2012 16:01:20 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBC0040MWSZQ360@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 04 Oct 2012 16:01:20 +0900 (KST) From: Rahul Sharma To: dri-devel@lists.freedesktop.org Subject: [PATCH v1 07/14] drm: exynos: hdmi: add support for exynos5 ddc Date: Thu, 04 Oct 2012 20:48:49 +0530 Message-id: <1349363936-8531-8-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1349363936-8531-1-git-send-email-rahul.sharma@samsung.com> References: <1349363936-8531-1-git-send-email-rahul.sharma@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsWyRsSkTtfRJDfAYL+6xZWv79kcGD3udx9n CmCM4rJJSc3JLEst0rdL4Mo48GMta8E6noqJTV/ZGhjbuboYOTgkBEwkTvTldjFyApliEhfu rWcDsYUEljJKnN5UDxE3kTgy7xdzFyMXUHw6o8TkV//YIZzVTBILNl9iBKliE9CVmH3wGZgt IqAs8XfiKkaQImaBRUwS/+58YAdJCAt4SKx9fQLMZhFQlVh19jMLiM0r4C7Re+IDK8Q6BYnW ZYfAajiB6hf+usEOcZK7xJNrEMtYBAQkvk0+xALxgazEpgNg10kIXGaT+NN3lxFijqTEwRU3 WCYwCi9gZFjFKJpakFxQnJSea6hXnJhbXJqXrpecn7uJERiCp/89k9rBuLLB4hCjAAejEg+v YXdOgBBrYllxZe4hRgkOZiUR3s2KuQFCvCmJlVWpRfnxRaU5qcWHGH2ALpnILCWanA+Mj7yS eENjE3NTY1NLIyMzU1McwkrivM0eKQFCAumJJanZqakFqUUw45g4OKUaGGdP/plxjSsl9oji 0sopiwMWGJxV/Tj1Z/Q7h+fr1hdvbVJ+98sla6Xyw7c3Xx+P5WEwPbF/PXcfo/q2PZMWX74v FuB2fDZzkMuSV3HcKoKTtGeEHSnIYykN5Ov9tIP5j+Hki0VdPx127ttjUcvswP5tQinrRQZl z2vv9hxZ4fz7+FuX9332Qm5KLMUZiYZazEXFiQAeQ1ipbgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42I5/e+xoK6DSW6Awcy/ZhZXvr5nc2D0uN99 nCmAMaqB0SYjNTEltUghNS85PyUzL91WyTs43jne1MzAUNfQ0sJcSSEvMTfVVsnFJ0DXLTMH aKySQlliTilQKCCxuFhJ3w7ThNAQN10LmMYIXd+QILgeIwM0kLCGMePAj7WsBet4KiY2fWVr YGzn6mLk5JAQMJE4Mu8XM4QtJnHh3nq2LkYuDiGB6YwSk1/9Y4dwVjNJLNh8iRGkik1AV2L2 wWdgtoiAssTfiasYQYqYBRYxSfy784EdJCEs4CGx9vUJMJtFQFVi1dnPLCA2r4C7RO+JD6wQ 6xQkWpcdAqvhBKpf+OsGmC0EVPPk2iXGCYy8CxgZVjGKphYkFxQnpeca6hUn5haX5qXrJefn bmIEh/kzqR2MKxssDjEKcDAq8fAaducECLEmlhVX5h5ilOBgVhLh3ayYGyDEm5JYWZValB9f VJqTWnyI0QfoqonMUqLJ+cAYzCuJNzQ2MTc1NrU0sTAxs8QhrCTO2+yREiAkkJ5YkpqdmlqQ WgQzjomDU6qBkX9y25pNH7LtM/Z95tIP3xJ8zyHl4gZtjx290T/b6/L37DPoy1zBsHDR/+P2 nx8vWeS7e8OyycIJezPdpBbMb54ek7aFpX3SoyWJoZ++Js18rRAhfyL6/02xnrra2jZzto1G b4vNq/jtVfRLtDsEjvTn1j246MSx9t9Xvl3pN9f4hy58WsApqMRSnJFoqMVcVJwIAN2/gB2g AgAA X-CFilter-Loop: Reflected X-Mailman-Approved-At: Thu, 04 Oct 2012 00:53:27 -0700 Cc: t.stanislaws@samsung.com, l.krishna@samsung.com, joshi@samsung.com, kyungmin.park@samsung.com, fahad.k@samsung.com, rahul.sharma@samsung.com, prashanth.g@samsung.com, s.shirish@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 This patch adds support for exynos5 ddc with device tree enabled. Signed-off-by: Rahul Sharma --- drivers/gpu/drm/exynos/exynos_ddc.c | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_ddc.c b/drivers/gpu/drm/exynos/exynos_ddc.c index 7e1051d..ef28779 100644 --- a/drivers/gpu/drm/exynos/exynos_ddc.c +++ b/drivers/gpu/drm/exynos/exynos_ddc.c @@ -26,29 +26,41 @@ static int s5p_ddc_probe(struct i2c_client *client, { hdmi_attach_ddc_client(client); - dev_info(&client->adapter->dev, "attached s5p_ddc " - "into i2c adapter successfully\n"); + dev_info(&client->adapter->dev, + "attached %s into i2c adapter successfully\n", + client->name); return 0; } static int s5p_ddc_remove(struct i2c_client *client) { - dev_info(&client->adapter->dev, "detached s5p_ddc " - "from i2c adapter successfully\n"); + dev_info(&client->adapter->dev, + "detached %s from i2c adapter successfully\n", + client->name); return 0; } static struct i2c_device_id ddc_idtable[] = { {"s5p_ddc", 0}, + {"exynos5-hdmiddc", 0}, { }, }; +static struct of_device_id hdmiddc_match_types[] = { + { + .compatible = "samsung,exynos5-hdmiddc", + }, { + /* end node */ + } +}; + struct i2c_driver ddc_driver = { .driver = { - .name = "s5p_ddc", + .name = "exynos-hdmiddc", .owner = THIS_MODULE, + .of_match_table = hdmiddc_match_types, }, .id_table = ddc_idtable, .probe = s5p_ddc_probe,