From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B2DBC433EF for ; Wed, 16 Mar 2022 15:29:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2286983C98; Wed, 16 Mar 2022 16:28:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="agD7X+9h"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0EA8A83963; Wed, 16 Mar 2022 16:28:31 +0100 (CET) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0219B83C06 for ; Wed, 16 Mar 2022 16:28:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tommaso.merciai@amarulasolutions.com Received: by mail-ed1-x52f.google.com with SMTP id w4so3174587edc.7 for ; Wed, 16 Mar 2022 08:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ADBFxSZ8TBOKFjmJQB06RCatBiFlmWpFPZ6C90DaIao=; b=agD7X+9hoUeGTP7hlwOSTvjsSei/t7k1nMM6W5yewfvyU8TPyOO7DVfQj9VWEf1l8K e8fwbK3g20C98VXWLMoi8V8IVoz1Jt+RfJ83Mv1iqIJr6kuZSAryJ6VSfxsPCCBzDDRg UkEozsU6f6rgAB4CzLyTm6A5o2uHdOtlcGgRA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ADBFxSZ8TBOKFjmJQB06RCatBiFlmWpFPZ6C90DaIao=; b=Y95b708mBZYxlEs04qf9cI/vBIS+elqduLs5tD7BLx9eyYmzJZX4WOA+H/p1wpflHZ H4kopylz+VOYiR/Uu142PkCKNrmUWFE4v951clT3svgGTNaQCfXttgC8hym2bXMzewo/ EtcvaP53FdKVm/29zgi2qNYmAZ8yDDpVi1xN9EiEInha9S8QmitbMbTEd7dVRsiRqo+F sQTZqrGHEPo7mGprJId82asVzpeZO/g3rsklwokHZ4lx1/dBGIZ+AiGonFqL91pi1igW FNVbKuKtUhpMeXL0XKD5e4c0bA+2Wbat+duUfV6uYLudoGriwKx3ar2YEJLk30K3Vj2E aDqA== X-Gm-Message-State: AOAM5304Z0wdDa/N6WZxhaHFiJmU45YKQ9BYdWFkW0QtiJjY5tfv57Sx PqOY+G9pAZoAPPBEvAbKguBu8A== X-Google-Smtp-Source: ABdhPJyRmmq1DuluYi7FMqTpesQVG++080s5O0IufoTVQdoTsCXSO0sEy+vE3QH85uahYYZWGQHZgA== X-Received: by 2002:a50:fb93:0:b0:416:c4f:bd24 with SMTP id e19-20020a50fb93000000b004160c4fbd24mr30183797edq.225.1647444501615; Wed, 16 Mar 2022 08:28:21 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-56-61.cust.vodafonedsl.it. [188.217.56.61]) by smtp.gmail.com with ESMTPSA id v10-20020a170906380a00b006a68610908asm1022219ejc.24.2022.03.16.08.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 08:28:21 -0700 (PDT) From: Tommaso Merciai To: Cc: tommaso.merciai@amarulasolutions.com, Peng Fan , Ye Li , Patrick Wildt , Alice Guo , Andrey Zhizhikin , u-boot@lists.denx.de Subject: [PATCH v2 5/9] imx8m: clock: add enable_pwm_clk function Date: Wed, 16 Mar 2022 16:27:41 +0100 Message-Id: <20220316152746.47768-6-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220316152746.47768-1-tommaso.merciai@amarulasolutions.com> References: <20220316152746.47768-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean Add enable_pwm_clk function in clock.h Signed-off-by: Tommaso Merciai --- Changes since v1: - Fix enable_pwm_clk function implementation. Now is generic for all pwm clks arch/arm/include/asm/arch-imx8m/clock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-imx8m/clock.h b/arch/arm/include/asm/arch-imx8m/clock.h index 50359d8e46..e320025990 100644 --- a/arch/arm/include/asm/arch-imx8m/clock.h +++ b/arch/arm/include/asm/arch-imx8m/clock.h @@ -278,3 +278,4 @@ int set_clk_enet(enum enet_freq type); int set_clk_eqos(enum enet_freq type); void hab_caam_clock_enable(unsigned char enable); void enable_usboh3_clk(unsigned int enable); +void enable_pwm_clk(u32 index, unsigned char enable); -- 2.25.1