From patchwork Fri Mar 25 12:02:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1609406 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=C88W3gUs; dkim-atps=neutral Authentication-Results: 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=) 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 RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KQ12C5WpWz9s0r for ; Fri, 25 Mar 2022 23:03:15 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 54E9D84156; Fri, 25 Mar 2022 13:02:59 +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="C88W3gUs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E6D628415F; Fri, 25 Mar 2022 13:02:40 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 BF52C84099 for ; Fri, 25 Mar 2022 13:02:37 +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-wm1-x334.google.com with SMTP id k124-20020a1ca182000000b0038c9cf6e2a6so4275573wme.0 for ; Fri, 25 Mar 2022 05:02:37 -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=vagYpUO66IsLHI51EgkqaCA14J2w/8BsfQcWFK5ekVk=; b=C88W3gUs6qK8vsDWey5UqoDtiQhmKgAgwgjO1DqarI2WDQUh6oTBdEL/bQyDKA/50Y +8fQkWU3MEa+4zWMJjAaJuC2CMKPOqQEwI0GKWi7OqtqjO/NBPGAJnlFmGdFpxZRDiuI cviI94tcwRIkbfa0wmUtk0sWRoMq9MerL7Pa8= 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=vagYpUO66IsLHI51EgkqaCA14J2w/8BsfQcWFK5ekVk=; b=z9exufQRXV6yhs/9z7NoE0OFoADR3E0SKWmIPCsW9IcjxrHfQNw1o3AiaRP4UKhcH7 wRnCZemJM3nA7M9NT50AkKWShjX6V3dLGQieo6cX9v1CwXnF5PceForZB+9p8vNKIv7m fGd2O91AD725f83Y0IP2n2l23ksR9Px54p9ZTiQc/e6bodbl6iztWiGNz5idJ/pYCitl E2E9qrVbEZ2rPjSEvqG4FWubHkuVmWZQPKGDwAA6VZXXbN399cOr/Hrif/JLYEsUyjCw 43nV2OW1dpwlRUNmT2MBt6cRJ5vsGtmXCFkTA7Zf/vAsmZNMVnpKFHuQxuougV6YIkm7 8z2w== X-Gm-Message-State: AOAM532RU6fAZkjfYSVWAbJcnuYwJx5/3tb5TTuwtgTVEyzDeIceoaDI BCfkVEJp6eBHVMuMcquaSMXGh/uc9LGQFQ== X-Google-Smtp-Source: ABdhPJwogTHL3XFcTUf5QaSeLUAmV92dlBQ9tkYpjuBek/iNGr4IvfgwzefohSL1p1v9UqLc0JVO8Q== X-Received: by 2002:a05:600c:4f82:b0:38c:9185:1ecd with SMTP id n2-20020a05600c4f8200b0038c91851ecdmr18798252wmq.130.1648209757322; Fri, 25 Mar 2022 05:02:37 -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 g16-20020a05600c4ed000b0038ceb0b21b4sm1190641wmq.24.2022.03.25.05.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 05:02:36 -0700 (PDT) From: Tommaso Merciai To: Cc: tommaso.merciai@amarulasolutions.com, alb3rto.merciai@gmail.com, Peng Fan , Andrey Zhizhikin , Ye Li , Alice Guo , u-boot@lists.denx.de Subject: [PATCH v4 2/9] arch: mach-imx: imx8m: add pwm_regs struct in imx-regs Date: Fri, 25 Mar 2022 13:02:24 +0100 Message-Id: <20220325120231.63782-3-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220325120231.63782-1-tommaso.merciai@amarulasolutions.com> References: <20220325120231.63782-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 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 pwm_regs struct for i.MX8MM SOC Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index 57a95de1b8..f31f54ad0c 100644 --- a/arch/arm/include/asm/arch-imx8m/imx-regs.h +++ b/arch/arm/include/asm/arch-imx8m/imx-regs.h @@ -359,6 +359,15 @@ struct src { #define PWMCR_CLKSRC_IPG (1 << 16) #define PWMCR_EN (1 << 0) +struct pwm_regs { + u32 cr; + u32 sr; + u32 ir; + u32 sar; + u32 pr; + u32 cnr; +}; + #define WDOG_WDT_MASK BIT(3) #define WDOG_WDZST_MASK BIT(0) struct wdog_regs {