Message ID | 20190402112843.992-5-jagan@amarulasolutions.com |
---|---|
State | Rejected |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="hbIvGQlT"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44YRqJ0CYyz9sTF for <incoming@patchwork.ozlabs.org>; Tue, 2 Apr 2019 22:31:08 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C242DC21ECA; Tue, 2 Apr 2019 11:30:14 +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, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID 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 0076BC21E88; Tue, 2 Apr 2019 11:29:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EC81FC21E88; Tue, 2 Apr 2019 11:29:24 +0000 (UTC) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by lists.denx.de (Postfix) with ESMTPS id 16C3FC21E1A for <u-boot@lists.denx.de>; Tue, 2 Apr 2019 11:29:24 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id z5so5215649pfn.3 for <u-boot@lists.denx.de>; Tue, 02 Apr 2019 04:29:24 -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=Z+bH/fLv8IHDKT9j/QJHe7hHDAenZDOOj6DTOBobzlA=; b=hbIvGQlTifTzXxMH5MqQP2ovKYe/P8zc6HT9LaeiXsaxQkLJkWaV7Q8iH/t6DqVlp6 NXoTBxUBuoRdEdJmBnQrI8SD7I7k8OKqn6JmvGbada9fuP9j1pIffyx/XHDcczix1sTS M1EMGH80+GF0FNIvmonw1gxJJM2L/upvuLdFs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z+bH/fLv8IHDKT9j/QJHe7hHDAenZDOOj6DTOBobzlA=; b=BAqsxLVVt3LlWhJIBzf81puP+7jUmCvdX6uCw7ebI9oMmY/XkMgxY3h3s85JGZ9Kp9 Tte1+83et06uSzjtYatWhHJBLRmnNMv8ouR5tb/ge/Ij38+Y06Bgj0wOvT9pIVwTk1EZ 6OXqUeUNtjphkeIDvQZU5Ma0FdKsLUaNHLoc3s+NnI/wXpY99YOkDB3WOQdNOd+NFDm7 d2ws/IO2gOVWNtvJA5gKszwdWtnLFNas16uuM/9+yz/BwWN0DGz+mOHkLInqemI7Wn2g ev2DcLuVBSy8zAM7LYWGRjsa0gqDo90sA39g+ifX8kuxY+VPy/YRvAw2/2EmveYU+tcc wG6w== X-Gm-Message-State: APjAAAU7mGA/q3UrXwXkoIGBkZauK7k5YRlohlYgnydza4lMQSbDOj2k F8ev5cFtuI3WsqIb9lBapLuoxg== X-Google-Smtp-Source: APXvYqy/keVW/AFnlfgNpnEiR6KW5cgI3JJEBPzdkN4J31gS/KcPgXO+V96o7S4nO3mG1du/LRCwag== X-Received: by 2002:aa7:8019:: with SMTP id j25mr68886012pfi.77.1554204562680; Tue, 02 Apr 2019 04:29:22 -0700 (PDT) Received: from jagan-XPS-13-9350.imgcgcw.net ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id u62sm23992715pfa.124.2019.04.02.04.29.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 04:29:22 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, Neil Armstrong <narmstrong@baylibre.com>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com>, Marek Vasut <marek.vasut+renesas@gmail.com>, Stefano Babic <sbabic@denx.de>, Fabio Estevam <fabio.estevam@nxp.com>, Peng Fan <peng.fan@nxp.com>, Maxime Ripard <maxime.ripard@bootlin.com>, Michael Trimarchi <michael@amarulasolutions.com>, Andre Przywara <andre.przywara@arm.com> Date: Tue, 2 Apr 2019 16:58:37 +0530 Message-Id: <20190402112843.992-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190402112843.992-1-jagan@amarulasolutions.com> References: <20190402112843.992-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, uboot-imx@nxp.com Subject: [U-Boot] [PATCH v2 04/10] clk: Add clk_div_mask helper X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
clk: imx: Add i.MX6 CLK support
|
expand
|
diff --git a/include/clk-uclass.h b/include/clk-uclass.h index e76d98e2f6..15ac8867a7 100644 --- a/include/clk-uclass.h +++ b/include/clk-uclass.h @@ -100,4 +100,6 @@ struct clk_ops { int (*disable)(struct clk *clk); }; +#define clk_div_mask(width) ((1 << (width)) - 1) + #endif
Add clock helper to compute the clock divider mask when use invoke with clock width. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- include/clk-uclass.h | 2 ++ 1 file changed, 2 insertions(+)