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: 61178 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp475610lbl; Thu, 4 Feb 2016 06:04:51 -0800 (PST) X-Received: by 10.66.185.225 with SMTP id ff1mr10949629pac.97.1454594691061; Thu, 04 Feb 2016 06:04:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c64si1765976pfd.70.2016.02.04.06.04.50; Thu, 04 Feb 2016 06:04:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757928AbcBDOEu (ORCPT + 2 others); 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 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(-) -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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