From patchwork Tue Feb 7 02:35:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cailiwei X-Patchwork-Id: 9559093 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7DB5360236 for ; Tue, 7 Feb 2017 02:40:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D8CF23F88 for ; Tue, 7 Feb 2017 02:40:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EDD427FA8; Tue, 7 Feb 2017 02:40:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C33A623F88 for ; Tue, 7 Feb 2017 02:40:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751911AbdBGCkM (ORCPT ); Mon, 6 Feb 2017 21:40:12 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:40882 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751456AbdBGCkL (ORCPT ); Mon, 6 Feb 2017 21:40:11 -0500 Received: from 172.24.1.137 (EHLO szxeml433-hub.china.huawei.com) ([172.24.1.137]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id COW67588; Tue, 07 Feb 2017 10:36:55 +0800 (CST) Received: from huawei.com (100.106.171.187) by szxeml433-hub.china.huawei.com (10.82.67.210) with Microsoft SMTP Server id 14.3.235.1; Tue, 7 Feb 2017 10:36:46 +0800 From: cailiwei To: , , , CC: , , , , , Subject: [PATCH 1/8] fb: hisilicon: Add framebuffer driver for hi3660 SoC Date: Tue, 7 Feb 2017 10:35:52 +0800 Message-ID: <20170207023559.79455-1-cailiwei@hisilicon.com> X-Mailer: git-send-email 2.11.1 MIME-Version: 1.0 X-Originating-IP: [100.106.171.187] X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Levy-Cai Add framebuffer driver for hi3660 SoC, this driver include lcd driver & Hdmi adv7533/adv7535 driver, support lcd display at 1080p@60 and hdmi display at 1080p@60. Signed-off-by: cailiwei --- drivers/video/fbdev/Kconfig | 11 ++++++++++ drivers/video/fbdev/Makefile | 1 + drivers/video/fbdev/hisi/Kconfig | 6 +++++ drivers/video/fbdev/hisi/dss/Makefile | 41 +++++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+) mode change 100644 => 100755 drivers/video/fbdev/Kconfig mode change 100644 => 100755 drivers/video/fbdev/Makefile create mode 100755 drivers/video/fbdev/hisi/Kconfig create mode 100755 drivers/video/fbdev/hisi/dss/Makefile diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig old mode 100644 new mode 100755 index 5d3b0db5ce0a..85c46cc75908 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -2429,6 +2429,16 @@ config FB_HYPERV help This framebuffer driver supports Microsoft Hyper-V Synthetic Video. +config FB_HISI + tristate "Hisilicon Framebuffer support" + depends on FB + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + select REGMAP + help + This framebuffer driver supports Hisilicon FB. + config FB_SIMPLE bool "Simple framebuffer support" depends on (FB = y) @@ -2448,6 +2458,7 @@ config FB_SIMPLE source "drivers/video/fbdev/omap/Kconfig" source "drivers/video/fbdev/omap2/Kconfig" source "drivers/video/fbdev/mmp/Kconfig" +source "drivers/video/fbdev/hisi/Kconfig" config FB_SH_MOBILE_MERAM tristate "SuperH Mobile MERAM read ahead support" diff --git a/drivers/video/fbdev/Makefile b/drivers/video/fbdev/Makefile old mode 100644 new mode 100755 index ee8c81405a7f..a10d3d2793e3 --- a/drivers/video/fbdev/Makefile +++ b/drivers/video/fbdev/Makefile @@ -23,6 +23,7 @@ obj-$(CONFIG_FB_I740) += i740fb.o obj-$(CONFIG_FB_MATROX) += matrox/ obj-$(CONFIG_FB_RIVA) += riva/ obj-$(CONFIG_FB_NVIDIA) += nvidia/ +obj-$(CONFIG_FB_HISI) += hisi/dss/ obj-$(CONFIG_FB_ATY) += aty/ macmodes.o obj-$(CONFIG_FB_ATY128) += aty/ macmodes.o obj-$(CONFIG_FB_RADEON) += aty/ diff --git a/drivers/video/fbdev/hisi/Kconfig b/drivers/video/fbdev/hisi/Kconfig new file mode 100755 index 000000000000..c30747d52a38 --- /dev/null +++ b/drivers/video/fbdev/hisi/Kconfig @@ -0,0 +1,6 @@ +config HISI_FB_KIRIN960 + tristate "HISI FB KIRIN960 Framebuffer support" + depends on FB_HISI + + help + This framebuffer driver supports KIRIN960 FB. diff --git a/drivers/video/fbdev/hisi/dss/Makefile b/drivers/video/fbdev/hisi/dss/Makefile new file mode 100755 index 000000000000..60004880dd80 --- /dev/null +++ b/drivers/video/fbdev/hisi/dss/Makefile @@ -0,0 +1,41 @@ +ifeq ($(CONFIG_HISI_FB_KIRIN960),y) +obj-$(CONFIG_HISI_FB_KIRIN960) := hisifb.o +endif + +hisifb-objs := \ + hisi_mipi_dsi_host.o \ + hisi_mipi_dsi.o \ + hisi_dpe.o \ + hisi_fb_panel.o \ + hisi_fb_isr.o \ + hisi_fb_vsync.o \ + hisi_fb_buf_sync.o \ + hisi_fb_bl.o \ + hisi_fb_utils.o \ + hisi_fb.o \ + hisi_overlay_utils.o \ + hisi_block_algorithm.o \ + hisi_overlay_online.o \ + hisi_overlay_cmdlist_utils.o + +ifeq ($(CONFIG_HISI_FB_KIRIN960),y) +hisifb-objs += \ + hisi_dpe_utils_hi3660.o \ + hisi_overlay_utils_hi3660.o \ + panel/mipi_hikey_nte300nts.o \ + hdmi/adv75xx.o \ + hdmi/mipi_adi_hdmi.o +endif + +EXTRA_CFLAGS += -Idrivers/video/hisi/dss \ + -Idrivers/video/hisi/panel \ + -Idrivers/video/hisi \ + -Iinclude \ + -Idrivers/staging/android + +ifeq ($(CONFIG_HISI_PERIDVFS),y) +EXTRA_CFLAGS += -Idrivers/clk/hisi/peri_dvfs +endif + +clean: + rm *.o .*cmd