From patchwork Tue Jul 9 09:07:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sathya Prakash M R X-Patchwork-Id: 2825204 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4513EC0AB2 for ; Tue, 9 Jul 2013 09:07:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B55CD2016A for ; Tue, 9 Jul 2013 09:07:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 866AD20120 for ; Tue, 9 Jul 2013 09:07:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753167Ab3GIJH2 (ORCPT ); Tue, 9 Jul 2013 05:07:28 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:55421 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752979Ab3GIJHZ (ORCPT ); Tue, 9 Jul 2013 05:07:25 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6997P4I029146; Tue, 9 Jul 2013 04:07:25 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6997Pnh023906; Tue, 9 Jul 2013 04:07:25 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.2.342.3; Tue, 9 Jul 2013 04:07:24 -0500 Received: from localhost.localdomain (uda0393677.apr.dhcp.ti.com [172.24.145.202]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r6997MBh021324; Tue, 9 Jul 2013 04:07:23 -0500 From: Sathya Prakash M R To: CC: , , , Srinivas Pulukuru , Sathya Prakash M R Subject: [PATCH 1/1] OMAPDSS: Add sil9022 driver Date: Tue, 9 Jul 2013 14:37:05 +0530 Message-ID: <1373360825-25170-1-git-send-email-sathyap@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Srinivas Pulukuru Add driver for SIL9022 DPI-to-HDMI chip. Signed-off-by: Srinivas Pulukuru [sathyap@ti.com: Ported the driver from 2.6.32 based internal kernel to v3.10 kernel] Signed-off-by: Sathya Prakash M R --- This patch was tested using the legacy OMAP3630 based Zoom3 platform. There is no DT support for Zoom , hence board file changes made locally were used for validation purpose. Further, DT support will be added for a newer SOC which uses the sil9022 HDMI interface chip. drivers/video/omap2/displays/Kconfig | 8 + drivers/video/omap2/displays/Makefile | 1 + drivers/video/omap2/displays/panel-sil9022.c | 1274 ++++++++++++++++++++++++++ drivers/video/omap2/displays/panel-sil9022.h | 527 +++++++++++ 4 files changed, 1810 insertions(+) create mode 100644 drivers/video/omap2/displays/panel-sil9022.c create mode 100644 drivers/video/omap2/displays/panel-sil9022.h diff --git a/drivers/video/omap2/displays/Kconfig b/drivers/video/omap2/displays/Kconfig index c3853c9..53d8bb7 100644 --- a/drivers/video/omap2/displays/Kconfig +++ b/drivers/video/omap2/displays/Kconfig @@ -39,6 +39,14 @@ config PANEL_NEC_NL8048HL11_01B This NEC NL8048HL11-01B panel is TFT LCD used in the Zoom2/3/3630 sdp boards. +config PANEL_SIL9022 + tristate "HDMI interface" + depends on OMAP2_DSS_DPI + depends on I2C + help + Driver for SIL9022 DPI-to-HDMI chip + Driver uses i2c to read EDID information. + config PANEL_PICODLP tristate "TI PICO DLP mini-projector" depends on OMAP2_DSS_DPI && I2C diff --git a/drivers/video/omap2/displays/Makefile b/drivers/video/omap2/displays/Makefile index 58a5176..34cfa8e 100644 --- a/drivers/video/omap2/displays/Makefile +++ b/drivers/video/omap2/displays/Makefile @@ -3,6 +3,7 @@ obj-$(CONFIG_PANEL_TFP410) += panel-tfp410.o obj-$(CONFIG_PANEL_LGPHILIPS_LB035Q02) += panel-lgphilips-lb035q02.o obj-$(CONFIG_PANEL_SHARP_LS037V7DW01) += panel-sharp-ls037v7dw01.o obj-$(CONFIG_PANEL_NEC_NL8048HL11_01B) += panel-nec-nl8048hl11-01b.o +obj-$(CONFIG_PANEL_SIL9022) += panel-sil9022.o obj-$(CONFIG_PANEL_TAAL) += panel-taal.o obj-$(CONFIG_PANEL_PICODLP) += panel-picodlp.o diff --git a/drivers/video/omap2/displays/panel-sil9022.c b/drivers/video/omap2/displays/panel-sil9022.c new file mode 100644 index 0000000..3b5cb17 --- /dev/null +++ b/drivers/video/omap2/displays/panel-sil9022.c @@ -0,0 +1,1274 @@ +/* + * drivers/video/omap2/panel-sil9022.c + * + * Copyright (C) 2009 Texas Instruments + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + * + * SIL9022 hdmi driver + * Owner: kiran Chitriki + * + */ + +/***********************************/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include