From patchwork Tue Dec 29 13:15:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Frias X-Patchwork-Id: 7929911 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CC76C9F32E for ; Tue, 29 Dec 2015 13:23:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E1A7620268 for ; Tue, 29 Dec 2015 13:23:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0AB3F20265 for ; Tue, 29 Dec 2015 13:23:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752877AbbL2NXD (ORCPT ); Tue, 29 Dec 2015 08:23:03 -0500 Received: from smtpoutz29.laposte.net ([194.117.213.104]:37483 "EHLO smtp.laposte.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752269AbbL2NXC (ORCPT ); Tue, 29 Dec 2015 08:23:02 -0500 X-Greylist: delayed 449 seconds by postgrey-1.27 at vger.kernel.org; Tue, 29 Dec 2015 08:23:01 EST Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout017 (Postfix) with ESMTP id C4547A009E1 for ; Tue, 29 Dec 2015 14:15:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail1; t=1451394927; bh=kC42vS925Lcyqag3IpLGFGp1HjEWnsTamM4Ri6R3ccg=; h=Date:From:To:CC:Subject; b=f0zpCb7qWa0cxiRzhA9XsrKS+HatgcEPjEgNvsxIhKJOpJReynwDm9gj4i9YbqPgE OAolQGM0cW/Bp/1oPZFPRJmGBU3laSe1J7mbDWwy0DCjN5GUkO4yiv6koxrWlqibqv Vshu7/4BEP86mR2XJGl08mMtaylTS0jsJkxHUPsi74kV8fQXEfBYQvKiPduvV1AsMs nb+UiW6O5AaA/39CooF9Vnj/vUBcjMuYlb0cbss2m9bfreD3MnoD9E3dA5zdB9liId pFq7+hVlqInf55WE9J7rSyuJK0SypyeiLSs1QsSmb1B4kFbLp8JhWYb/Ocyx2bYEjK mceLfDN1m5UXw== Received: from lpn-prd-vrin003 (lpn-prd-vrin003.laposte [10.128.63.4]) by lpn-prd-vrout017 (Postfix) with ESMTP id 9575BA00A20 for ; Tue, 29 Dec 2015 14:15:27 +0100 (CET) Received: from lpn-prd-vrin003 (localhost [127.0.0.1]) by lpn-prd-vrin003 (Postfix) with ESMTP id 7589B48C3A6 for ; Tue, 29 Dec 2015 14:15:27 +0100 (CET) Received: from [172.27.0.214] (ovpn12414.celeste.fr [83.142.147.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lpn-prd-vrin003 (Postfix) with ESMTPSA id EB48248C39E; Tue, 29 Dec 2015 14:15:26 +0100 (CET) Message-ID: <56828767.4050302@laposte.net> Date: Tue, 29 Dec 2015 14:15:19 +0100 From: Sebastian Frias User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen CC: linux-fbdev@vger.kernel.org, LKML , mason , =?UTF-8?B?TcOlbnMgUnVsbGfDpXJk?= Subject: [RFC PATCH] fbdev: add support for Sigma Designs' smp8xxxfb.ko X-VR-SrcIP: 83.142.147.193 X-VR-FullState: 0 X-VR-Score: -100 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrfeekiedrheekgdegkecutefuodetggdotefrodftvfcurfhrohhf X-VR-Cause-2: ihhlvgemucfntefrqffuvffgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhs X-VR-Cause-3: ucdlqddutddtmdenucfjughrpefkfffhfgggvffutgfgsehtjegrtddtfeejnecuhfhrohhmpefuvggs X-VR-Cause-4: rghsthhirghnucfhrhhirghsuceoshhfkeegsehlrghpohhsthgvrdhnvghtqeenucfrrghrrghmpehm X-VR-Cause-5: ohguvgepshhmthhpohhuthdphhgvlhhopegludejvddrvdejrddtrddvudegngdpihhnvghtpeekfedr X-VR-Cause-6: udegvddrudegjedrudelfedpmhgrihhlfhhrohhmpehsfhekgeeslhgrphhoshhtvgdrnhgvthdprhgt X-VR-Cause-7: phhtthhopehplhgrghhnihhojhesjhgtrhhoshhofhhtrdgtohhm X-VR-AvState: No X-VR-State: 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=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Hi, We are wondering what is the recommended way of adding support for a framebuffer driver on the Linux kernel. Below you can find a patch with a proposed solution. Our frambuffer driver source code is provided separately, but right now it requires "cfb_fillrect", "cfb_copyarea" and "cfb_imageblit" to be provided by the kernel. Our current kernel fork (based on 3.4) hardcodes FB_CFB_FILLRECT, FB_CFB_COPYAREA and FB_CFB_IMAGEBLIT to yes. Since we are in the process of migrating to 4.x and upstreaming changes along the way, we would like to know if the patch below is the way to go with it or if you have suggestions to improve it. Thanks in advance, Sebastian -- >8 -- Subject: [RFC PATCH] fbdev: add support for Sigma Designs' smp8xxxfb.ko Signed-off-by: Sebastian Frias --- drivers/video/fbdev/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index e6d16d6..46c4ab2 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -615,6 +615,16 @@ config FB_BF537_LQ035 To compile this driver as a module, choose M here: the module will be called bf537-lq035. +config FB_TANGO + bool "Sigma Designs FrameBuffer support" + depends on FB && ARCH_TANGO + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + help + You need to enable this if you intend to use Sigma + Designs' smp8xxxfb.ko driver. + config FB_BFIN_7393 tristate "Blackfin ADV7393 Video encoder" depends on FB && BLACKFIN