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: 8222161 Return-Path: X-Original-To: patchwork-linux-arm@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 86503BEEE5 for ; Thu, 4 Feb 2016 14:07:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7C1F12038A for ; Thu, 4 Feb 2016 14:07:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5A72200F2 for ; Thu, 4 Feb 2016 14:07:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRKX7-0000xP-Me; Thu, 04 Feb 2016 14:05:17 +0000 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRKWz-0000I3-TM for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2016 14:05:12 +0000 Received: by mail-lf0-x22b.google.com with SMTP id m1so37354741lfg.0 for ; Thu, 04 Feb 2016 06:04:49 -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=PAjAOKibQAKs+jltDSLxj2RBIh6fmDhkYNwRUem96cHZ7tmw84zAKMO4r0iEU6AYzb nKyLkBDPsp7HS8A3iaNHb4WVmByxHY7fWWp3FtMfwMwy0/b+yY6eRb3mZpsyEcPBnqEz ctrol2IcVgOKplvH0K9vubL6zbk1lXRfuBgKy+SC3nVLZMw1hI4JBU9ftZI4mXisfhgf YXw9QyVFTkfz1nY87lNLnfOnCB69R9mto3rElBQ+d4o/bF0WEuv+gsqUtyYscXTztys9 HkGec9mx0yDA5778XkWQcuNcQD+OOkn6v/V55Yv7g4RQAnMhM4m0HC/YJSRjLxsoi/k1 BzuA== X-Gm-Message-State: AG10YOQugAv6PtNcJ/IeU2tbQbSRMvea8jY+b5xSxcAU2rEkL0Xi+JwO8Ra1EsaUE8Oflb8h 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160204_060510_223368_9CCF566F X-CRM114-Status: GOOD ( 21.83 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , Arnd Bergmann , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,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