From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhou Zhu Date: Wed, 29 Aug 2012 10:15:03 +0000 Subject: [PATCH 4/4] video: mmp: add tpo hvga panel support Message-Id: <1346235303-12651-1-git-send-email-zzhu3@marvell.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: 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