From patchwork Tue Nov 22 20:57:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1708024 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=HWguE0rQ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NGxQv1MgQz23nR for ; Wed, 23 Nov 2022 07:57:25 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BD96185479; Tue, 22 Nov 2022 21:57:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="HWguE0rQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C153C85479; Tue, 22 Nov 2022 21:57:09 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd0986.aruba.it (smtpcmd0986.aruba.it [62.149.156.86]) by phobos.denx.de (Postfix) with ESMTP id 7BB1A853CD for ; Tue, 22 Nov 2022 21:57:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from localhost.localdomain ([146.241.87.80]) by Aruba Outgoing Smtp with ESMTPSA id xaKGoMQgwnCOGxaKGoOGln; Tue, 22 Nov 2022 21:57:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1669150625; bh=5DJTX2iOjCsJuNccV8qwDiqbE+2oSPHAz7TpxGHRsH8=; h=From:To:Subject:Date:MIME-Version; b=HWguE0rQaWR2tD1Z5CgvLQNr+62nROT2TtATZc950TDxoWxd0cOJHd8f/6a2vkBUi rpNGaw5dPbtpOr58KQUS4TBCPGad/1rFxQyDhxNGsEVSoAiVVAI6inzDOwiRlC+lVP aVHsmXXsTDjBxbR0IRt2Ua0PbSo3CexigqtQHBiIh5YJ3zpkCYQIqwyy3sTApecDLg DLn+2z+68rJ3j3LEPGB5frhcVV8hfvxRP6VHkxLztXS9OI9hU/FalnqGakCg58pCPA bBR/rk83lbPxM1HrvU9CBBpKDUDrZAUCFZWNKdWFmjwOtwnNTh+J/A3uXzwO1+CJvW LDNfHToOMV7kg== From: Giulio Benetti To: u-boot@lists.denx.de Cc: Jagan Teki , Andre Przywara , Anatolij Gustschin , Giulio Benetti Subject: [PATCH 1/2] pwm: sunxi: enable pwm0 support on sun7i Date: Tue, 22 Nov 2022 21:57:02 +0100 Message-Id: <20221122205703.1084533-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CMAE-Envelope: MS4xfKqlG43ulezKV5A/DbPEgbNHUr0rp6SDMC39NLh/Wt+Om4UybqOVcrSk4pqZiGo6gt9ZIlzvv8W34ABHCvkn6GRBvTl+NUQjW6KHXSyWHkBqF7nJm3sq THG0XYvA6fVOCuOEo0pkwTDb8ZrSqsu/zdGtBXSUb+9JMkUUGnE9j4/9xbEQZY/7QhDUpU/7JgxeS4+3aG8UB1v6kll+Ur3phSxQehSNl3aYM+y5lqqIMCNS cZqugS8eAGAf4v2vzIs51777E+FCMlyS0Zcg4hnUw0Oa/KfEbywsWEDGN2/RxGhDsGDAWQxJbfIy/yo50OTRtQ17FPhpgwUveB4zPYpuzGxJCjD47VkX/0KK GB4qvhEC6jm7MFcTjAtUHyq2nh33Xg== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean sun7i pwm is equal to sun4i and sun5i so enable pwm0 the same way for sun7i. Signed-off-by: Giulio Benetti --- 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 b89bddd2e8..1a1c6e0c54 100644 --- a/arch/arm/include/asm/arch-sunxi/pwm.h +++ b/arch/arm/include/asm/arch-sunxi/pwm.h @@ -26,7 +26,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