From patchwork Thu Oct 4 15:42:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 1545141 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id D84CBDF6DA for ; Thu, 4 Oct 2012 07:28:21 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TJfp6-0003kA-JU; Thu, 04 Oct 2012 07:26:21 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TJfno-00038K-Ga for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2012 07:25:01 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBC00CTLXVK9PN0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2012 16:24:46 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.125]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 1C.59.03860.EB93D605; Thu, 04 Oct 2012 16:24:46 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-35-506d39be4903 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 9B.59.03860.EB93D605; Thu, 04 Oct 2012 16:24:46 +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 <0MBC006I9XWMLU10@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2012 16:24:46 +0900 (KST) From: Rahul Sharma To: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Subject: [PATCH v1 07/14] drm: exynos: hdmi: add support for exynos5 ddc Date: Thu, 04 Oct 2012 21:12:45 +0530 Message-id: <1349365372-21417-8-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1349365372-21417-1-git-send-email-rahul.sharma@samsung.com> References: <1349365372-21417-1-git-send-email-rahul.sharma@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsWyRsSkVnefZW6AwYpfyhabHl9jdWD02Lyk PoAxissmJTUnsyy1SN8ugSvjwI+1rAXreComNn1la2Bs5+pi5OSQEDCRWLV8KTOELSZx4d56 ti5GLg4hgaWMElMWrmeBKbp8aB1YkZDAdEaJmYvEIYo2MEkc33CHCSTBJqArMfvgM0YQW0TA VWLrlptgNrNAksT3n5PAaoQFPCTWvj7BDmKzCKhKbDywF6yGFyi+8dRKqGUKEq3LDgHVcHBw CnhKHPmZCLHXQ2LShw5WiFYBiW+TD7GAlEgIyEpsOsAMco6EwBk2idYvR5kgxkhKHFxxg2UC o/ACRoZVjKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmbGIEBePrfM+kdjKsaLA4xCnAwKvHwWkzK CRBiTSwrrsw9xCjBwawkwrtZMTdAiDclsbIqtSg/vqg0J7X4EKMP0CUTmaVEk/OB0ZFXEm9o bGJuamxqaWRkZmqKQ1hJnLfZIyVASCA9sSQ1OzW1ILUIZhwTB6dUAyNn/tpdW+50HOJo0uFc faGJo/nNih4BtsNKaqdVpdhPHPMPXv9A9Xbxsr8ybfkLnvue0riYtPVRg/qKRvuLxcpffQwf btz/31b15p6fpdtv8T+JOzb5Fsfm8jufLOOY7EuPXLeTNi9wZc801K7KuZMwMWO9h2tKwFbP g3smdDouO79zzf0/hlOVWIozEg21mIuKEwHynH2ybQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkkeLIzCtJLcpLzFFi42I5/e+xoO4+y9wAg49HZCw2Pb7G6sDosXlJ fQBjVAOjTUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7Q VCWFssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFBcD1GBmggYQ1jxoEfa1kL1vFUTGz6ytbA 2M7VxcjJISFgInH50DpmCFtM4sK99WwgtpDAdEaJmYvEuxi5gOwNTBLHN9xhAkmwCehKzD74 jBHEFhFwldi65SaYzSyQJPH95ySwGmEBD4m1r0+wg9gsAqoSGw/sBavhBYpvPLWSBWKZgkTr skNANRwcnAKeEkd+JkLs9ZCY9KGDdQIj7wJGhlWMoqkFyQXFSem5RnrFibnFpXnpesn5uZsY weH9THoH46oGi0OMAhyMSjy8FpNyAoRYE8uKK3MPMUpwMCuJ8G5WzA0Q4k1JrKxKLcqPLyrN SS0+xOgDdNREZinR5Hxg7OWVxBsam5ibGptamliYmFniEFYS5232SAkQEkhPLEnNTk0tSC2C GcfEwSnVwCi37vjmnWIuKxdL/Vm8e/NPi532590fr9zIEs5075LdrDWdImZm2kc5+P92Cuxl P9F2w6DScHb2GZ4K02tr+X49DlRQsDIMUUkXPRg4R7TSelZAQH13EUcf6zFVZw67xYZpni+t 5yYw3wxiiJOWv6xwI3xtW8htudy64DtyajsTTERs+F+XKrEUZyQaajEXFScCAOF81xacAgAA X-CFilter-Loop: Reflected X-Spam-Note: CRM114 invocation failed X-Spam-Score: -7.1 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.34 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.9 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -2.1 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: t.stanislaws@samsung.com, inki.dae@samsung.com, kyungmin.park@samsung.com, joshi@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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,