From patchwork Thu Feb 4 14:04:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 8222031 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3BCC2BEEE5 for ; Thu, 4 Feb 2016 14:04:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E27B20394 for ; Thu, 4 Feb 2016 14:04:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CAE382038A for ; Thu, 4 Feb 2016 14:04:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757928AbcBDOEu (ORCPT ); Thu, 4 Feb 2016 09:04:50 -0500 Received: from mail-lf0-f43.google.com ([209.85.215.43]:35326 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757905AbcBDOEt (ORCPT ); Thu, 4 Feb 2016 09:04:49 -0500 Received: by mail-lf0-f43.google.com with SMTP id l143so36710521lfe.2 for ; Thu, 04 Feb 2016 06:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jCVzW2r3yK6RKANlzEjq3y/a/3jtxYUUZL0ObN58awU=; b=NolIgtv20D7PN+iOPkpF4FzY9OGdsrL/oBVZHtja6bpvCUesLKiJwfV/qsBnypG5ZU z5qp9HRtVfz482Vhr3KNqt36RCtC2V23Odp+1d1kbLeuqvfjZPhaKm/OxfvKaFgwuj1L W7tDE8r+x9j5KrHtsSN2tOS0adPHcacXdk7RQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jCVzW2r3yK6RKANlzEjq3y/a/3jtxYUUZL0ObN58awU=; b=YFyduHVrawk43QK1zGeVAwOE2J1QkYPXYoaGKWk8pIpNuKXROmel+jQB9unpFEVcYI PwBw8+0cEmMYVIj4c0WVNailfXfyt/21oqLJyQYVH62rjmQiblPenF8lxrh04oBpvqAk XoXizL9pbZZS+/WuO6UxuF3ocK0oK3fXjRswA2Jcd+45UsToqtte4E66ug9m5B+/jlQG dLSiid5N+pULEBAMLIg23xVAFc19ixc3UzXzkbe4hMsrvV283DiYDxHzKyRXiXuReYVN tAZyfRcm3W075CojdOzifcihE3dUNO4sNx+nvfycUyhsqKcEiApIpzuG8UZ7Vi0t1sbT YpMA== X-Gm-Message-State: AG10YORCOs6bQKL4p2+FmTTdEkRqL/TpjOmVp82vnq1uZ8JYXiJitw1vbrS1kCtwhVld9xuc X-Received: by 10.25.22.214 with SMTP id 83mr3510703lfw.2.1454594687843; Thu, 04 Feb 2016 06:04:47 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id m21sm1576066lfe.29.2016.02.04.06.04.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Feb 2016 06:04:47 -0800 (PST) From: Linus Walleij To: linux-fbdev@vger.kernel.org, Tomi Valkeinen , Jean-Christophe Plagniol-Villard , Pawel Moll , Rob Herring , Russell King Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Linus Walleij Subject: [PATCH 01/11] video: ARM CLCD: backlight support for OF Date: Thu, 4 Feb 2016 15:04:10 +0100 Message-Id: <1454594660-7532-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1454594660-7532-1-git-send-email-linus.walleij@linaro.org> References: <1454594660-7532-1-git-send-email-linus.walleij@linaro.org> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 If the device is probed from device tree, we can support backlight. This is used with some systems such as the ST Microelectronics Nomadik. We have to add HAS_IOMEM to the dependencies of CLCD since the backlight class device will now be selected, and if it gets selected on an arch that does not have IOMEM, compilation will fail. Cc: Pawel Moll Cc: Rob Herring Cc: Russell King Signed-off-by: Linus Walleij --- drivers/video/fbdev/Kconfig | 4 +++- drivers/video/fbdev/amba-clcd.c | 40 ++++++++++++++++++++++++++++++++++++++++ include/linux/amba/clcd.h | 3 +++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index 8ea45a5cd806..6dcd91237551 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -284,12 +284,14 @@ config FB_PM2_FIFO_DISCONNECT config FB_ARMCLCD tristate "ARM PrimeCell PL110 support" depends on ARM || ARM64 || COMPILE_TEST - depends on FB && ARM_AMBA + depends on FB && ARM_AMBA && HAS_IOMEM select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT select FB_MODE_HELPERS if OF select VIDEOMODE_HELPERS if OF + select BACKLIGHT_LCD_SUPPORT if OF + select BACKLIGHT_CLASS_DEVICE if OF help This framebuffer device driver is for the ARM PrimeCell PL110 Colour LCD controller. ARM PrimeCells provide the building diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c index f9ef06d0cd48..c5d1e9ca81ab 100644 --- a/drivers/video/fbdev/amba-clcd.c +++ b/drivers/video/fbdev/amba-clcd.c @@ -30,6 +30,7 @@ #include #include #include +#include #include