From patchwork Sat Oct 6 10:07:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 979929 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=paulk.fr Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42S2TB5JNdz9s4s for ; Sat, 6 Oct 2018 20:11:10 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 752E9C21E77; Sat, 6 Oct 2018 10:10:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4C982C21C57; Sat, 6 Oct 2018 10:09:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 96CAFC21EC5; Sat, 6 Oct 2018 10:09:37 +0000 (UTC) Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) by lists.denx.de (Postfix) with ESMTPS id C15D2C21DD7 for ; Sat, 6 Oct 2018 10:09:25 +0000 (UTC) Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 1C4C3BFE9C for ; Sat, 6 Oct 2018 12:09:25 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 14539C0C71; Sat, 6 Oct 2018 12:09:24 +0200 (CEST) Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id 7B241C1053; Sat, 6 Oct 2018 12:07:39 +0200 (CEST) From: Paul Kocialkowski To: u-boot@lists.denx.de Date: Sat, 6 Oct 2018 12:07:17 +0200 Message-Id: <20181006100718.3482-3-contact@paulk.fr> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181006100718.3482-1-contact@paulk.fr> References: <20181006100718.3482-1-contact@paulk.fr> MIME-Version: 1.0 Cc: Mark Van den Borre , Maxime Ripard , Aleksei Mamlin , linux-sunxi@googlegroups.com, Stefan Mavrodiev , Hans de Goede , Priit Laes , Icenowy Zheng , Stefan Roese , Jagan Teki , Luc Verhaegen , Gerry Demaret Subject: [U-Boot] [PATCH 3/4] sunxi: display: Also use the PWM controller for backlight on sun7i X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Using PWM to drive the backlight pin instead of a GPIO provides various advantages, that are described in commit 421c98d7d2 ("sunxi: display: Use PWM to drive backlight where applicable"). Defining SUNXI_PWM_PIN0 triggers the configuration of the PWM controller in the display driver. Signed-off-by: Paul Kocialkowski --- arch/arm/include/asm/arch-sunxi/pwm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-sunxi/pwm.h b/arch/arm/include/asm/arch-sunxi/pwm.h index 47eb433fb6..a9588a04f3 100644 --- a/arch/arm/include/asm/arch-sunxi/pwm.h +++ b/arch/arm/include/asm/arch-sunxi/pwm.h @@ -15,7 +15,8 @@ #define SUNXI_PWM_PERIOD_80PCT 0x04af03c0 -#if defined CONFIG_MACH_SUN4I || defined CONFIG_MACH_SUN5I +#if defined CONFIG_MACH_SUN4I || defined CONFIG_MACH_SUN5I || \ + defined CONFIG_MACH_SUN7I #define SUNXI_PWM_PIN0 SUNXI_GPB(2) #define SUNXI_PWM_MUX SUN4I_GPB_PWM #endif