From patchwork Fri Feb 1 09:20:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Zhu X-Patchwork-Id: 2077901 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 C2E13DFE75 for ; Fri, 1 Feb 2013 09:21:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755961Ab3BAJVT (ORCPT ); Fri, 1 Feb 2013 04:21:19 -0500 Received: from na3sys009aog114.obsmtp.com ([74.125.149.211]:42232 "EHLO na3sys009aog114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755941Ab3BAJVS (ORCPT ); Fri, 1 Feb 2013 04:21:18 -0500 Received: from MSI-MTA.marvell.com ([65.219.4.132]) (using TLSv1) by na3sys009aob114.postini.com ([74.125.148.12]) with SMTP ID DSNKUQuJCTktECS8Ya53NFHQP5GOBAfJ9Wt5@postini.com; Fri, 01 Feb 2013 01:21:17 PST Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 1 Feb 2013 01:20:38 -0800 Received: from localhost (unknown [10.38.36.52]) by maili.marvell.com (Postfix) with ESMTP id 7B96A4E517; Fri, 1 Feb 2013 01:20:38 -0800 (PST) From: Zhou Zhu To: , , Andrew Morton , FlorianSchandinat@gmx.de Cc: , Greg Kroah-Hartman , Lisa Du , Guoqing Li , Zhou Zhu Subject: [PATCH v6 4/8] video: mmp: add tpo hvga panel supported Date: Fri, 1 Feb 2013 17:20:29 +0800 Message-Id: <1359710429-9715-1-git-send-email-zzhu3@marvell.com> X-Mailer: git-send-email 1.7.9.5 X-OriginalArrivalTime: 01 Feb 2013 09:20:38.0823 (UTC) FILETIME=[66474B70:01CE005D] 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 power on/off. This panel driver gets panel config/ plat power on/off/ connected path name from machine-info and registered as a spi device. This panel driver uses mmp_disp supplied register_panel function to register panel to path as machine-info defined. Signed-off-by: Lisa Du Signed-off-by: Zhou Zhu Acked-by: Haojian Zhuang --- drivers/video/mmp/Kconfig | 1 + drivers/video/mmp/Makefile | 2 +- drivers/video/mmp/panel/Kconfig | 6 + drivers/video/mmp/panel/Makefile | 1 + drivers/video/mmp/panel/tpo_tj032md01bw.c | 186 +++++++++++++++++++++++++++++ 5 files changed, 195 insertions(+), 1 deletion(-) 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..4b2c4f4 --- /dev/null +++ b/drivers/video/mmp/panel/Kconfig @@ -0,0 +1,6 @@ +config MMP_PANEL_TPOHVGA + bool "tpohvga panel TJ032MD01BW support" + depends on SPI_MASTER + 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..998978b --- /dev/null +++ b/drivers/video/mmp/panel/tpo_tj032md01bw.c @@ -0,0 +1,186 @@ +/* + * 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 +#include