From patchwork Tue Feb 23 10:01:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 8389981 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 979F09F372 for ; Tue, 23 Feb 2016 10:02:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A01522038A for ; Tue, 23 Feb 2016 10:02:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A8D9920384 for ; Tue, 23 Feb 2016 10:02:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751236AbcBWKCK (ORCPT ); Tue, 23 Feb 2016 05:02:10 -0500 Received: from mail-lb0-f176.google.com ([209.85.217.176]:34413 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbcBWKCI (ORCPT ); Tue, 23 Feb 2016 05:02:08 -0500 Received: by mail-lb0-f176.google.com with SMTP id of3so97753873lbc.1 for ; Tue, 23 Feb 2016 02:02:07 -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=RPirvj8d73I8zJ5iuV1NEiX+GFeiu4DLCTdoy1FCfn8=; b=dlerl74LV2aZ+SABXbn/BwZn13QUZv9QAPQBlsKiJHnrwmAAVEno+Mqjz5eOcx13rK 0gNcsERyzcsLrI77lV6MwHLYwhPMOPJ0zerZgiZqOSuXClTT46B9dwwpxgPFqVg90sbL 33pTvVn6wuBraRdyZqji0dKrjKbB6/LpyUbjo= 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=RPirvj8d73I8zJ5iuV1NEiX+GFeiu4DLCTdoy1FCfn8=; b=nJklUn8BP4UjgTXZVrE2xaBU1uFPa6c1yuNvmMRDv6XZ9Zzfgp1OoY2vcGGSiieC97 /5ywvGvl4WV3WqPnkWxCKDEwMcjh/D7ooWlkY1JrWS5u+ks/S4rqC0k/77hrfctJ88iH HD+k1aKtskEowbwm0P345xh6ypBb9Db51ev5eloKK89J+/DpvlmBnucUKAHpZiLlXBW6 78UbcJKcM/A1ASpw2BURbkAdINrIdTQse44dm02c77Bj4oeom5Ki6V8EhBdsg0FBUCTm O6XCB13ZW6gRYFeECbM/771x5zOojILaXZ0Bm4Q5/cvtyzrRtnQLmgpvZVfbLYEKZQlA MllA== X-Gm-Message-State: AG10YOTKGXmejFvlm3VQ/9vXXou8S/4r2l8lDfJIl3Tst0udOWeBET7aZpR3tEfveUKGzA/x X-Received: by 10.112.56.9 with SMTP id w9mr9636131lbp.38.1456221726501; Tue, 23 Feb 2016 02:02:06 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id k70sm3926525lfg.5.2016.02.23.02.02.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2016 02:02:05 -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 , Ray Jui , Linus Walleij Subject: [PATCH 2/7 v2] video: ARM CLCD: backlight support for OF Date: Tue, 23 Feb 2016 11:01:39 +0100 Message-Id: <1456221704-5792-3-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1456221704-5792-1-git-send-email-linus.walleij@linaro.org> References: <1456221704-5792-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=-6.8 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 --- ChangeLog v1->v2: - No changes. Just reposting. --- 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