From patchwork Wed Aug 29 10:15:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Zhu X-Patchwork-Id: 1384431 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 43A98DF215 for ; Wed, 29 Aug 2012 10:17:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752646Ab2H2KRg (ORCPT ); Wed, 29 Aug 2012 06:17:36 -0400 Received: from na3sys009aog125.obsmtp.com ([74.125.149.153]:39402 "EHLO na3sys009aog125.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751911Ab2H2KRg (ORCPT ); Wed, 29 Aug 2012 06:17:36 -0400 Received: from MSI-MTA.marvell.com ([65.219.4.132]) (using TLSv1) by na3sys009aob125.postini.com ([74.125.148.12]) with SMTP ID DSNKUD3sO/n+AA/ZqYT4Mq5k6LG8gBkyWGvC@postini.com; Wed, 29 Aug 2012 03:17:36 PDT Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Aug 2012 03:15:28 -0700 Received: from localhost (unknown [10.38.36.52]) by maili.marvell.com (Postfix) with ESMTP id D8AA54E510; Wed, 29 Aug 2012 03:15:27 -0700 (PDT) From: Zhou Zhu To: , Cc: Qing Xu , , Lisa Du Subject: [PATCH 4/4] video: mmp: add tpo hvga panel support Date: Wed, 29 Aug 2012 18:15:03 +0800 Message-Id: <1346235303-12651-1-git-send-email-zzhu3@marvell.com> X-Mailer: git-send-email 1.7.0.4 X-OriginalArrivalTime: 29 Aug 2012 10:15:28.0285 (UTC) FILETIME=[36825CD0:01CD85CF] Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: Lisa Du Add tpo hvga panel support in marvell display framework. This panel driver implements modes query and on/off commands by spi. This panel driver also get panel config/ plat power on/off/ connected path name from machine-info. This panel driver uses mmp_disp supplied register_panel function to register panel to path as machine-info defined. Change-Id: I1d37a9b436f64a01954d7f32407f84f67945286f Signed-off-by: Lisa Du --- drivers/video/mmp/Kconfig | 1 + drivers/video/mmp/Makefile | 2 +- drivers/video/mmp/panel/Kconfig | 5 + drivers/video/mmp/panel/Makefile | 1 + drivers/video/mmp/panel/tpo_tj032md01bw.c | 181 +++++++++++++++++++++++++++++ 5 files changed, 189 insertions(+), 1 deletions(-) create mode 100644 drivers/video/mmp/panel/Kconfig create mode 100644 drivers/video/mmp/panel/Makefile create mode 100644 drivers/video/mmp/panel/tpo_tj032md01bw.c diff --git a/drivers/video/mmp/Kconfig b/drivers/video/mmp/Kconfig index ed51d15..e9ea39e 100644 --- a/drivers/video/mmp/Kconfig +++ b/drivers/video/mmp/Kconfig @@ -6,5 +6,6 @@ menuconfig MMP_DISP if MMP_DISP source "drivers/video/mmp/hw/Kconfig" +source "drivers/video/mmp/panel/Kconfig" source "drivers/video/mmp/fb/Kconfig" endif diff --git a/drivers/video/mmp/Makefile b/drivers/video/mmp/Makefile index 6999a09..a014cb3 100644 --- a/drivers/video/mmp/Makefile +++ b/drivers/video/mmp/Makefile @@ -1 +1 @@ -obj-y += core.o hw/ fb/ +obj-y += core.o hw/ panel/ fb/ diff --git a/drivers/video/mmp/panel/Kconfig b/drivers/video/mmp/panel/Kconfig new file mode 100644 index 0000000..b6aac76 --- /dev/null +++ b/drivers/video/mmp/panel/Kconfig @@ -0,0 +1,5 @@ +config MMP_PANEL_TPOHVGA + bool "tpohvga panel TJ032MD01BW support" + default n + help + tpohvga panel support diff --git a/drivers/video/mmp/panel/Makefile b/drivers/video/mmp/panel/Makefile new file mode 100644 index 0000000..2f91611 --- /dev/null +++ b/drivers/video/mmp/panel/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_MMP_PANEL_TPOHVGA) += tpo_tj032md01bw.o diff --git a/drivers/video/mmp/panel/tpo_tj032md01bw.c b/drivers/video/mmp/panel/tpo_tj032md01bw.c new file mode 100644 index 0000000..8217650 --- /dev/null +++ b/drivers/video/mmp/panel/tpo_tj032md01bw.c @@ -0,0 +1,181 @@ +/* + * linux/drivers/video/mmp/panel/tpo_tj032md01bw.c + * active panel using spi interface to do init + * + * Copyright (C) 2012 Marvell Technology Group Ltd. + * Authors: Guoqing Li + * Lisa Du + * Zhou Zhu + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include