Message ID | 20190402112843.992-5-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBE4PRXSQKGQEMFJZPAQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 81E823F078 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 2 Apr 2019 13:29:24 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id l74sf2752392pfb.23 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 02 Apr 2019 04:29:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1554204563; cv=pass; d=google.com; s=arc-20160816; b=cH5lwRk58qSx49WynY+PQSdmbN909nglstvSBSMdjZTrl+ZRZ8nF32QSc9dsR5WH8x VzEytFDT34AGLr1BRDG/+l3RSMvUK8zCRcfiBB+athqYAQ4Y00vExDO351Sxxh92sGMQ 1fy7VaitOefwSkMFPItb7CuSlPG7F4+uQ6gUvrAPT8SVWrC/FkO3qhWbBfCPzkSHE4pj ebn+gUvb+brGgSOZNbFO75Gq/eUAYW35lesGX7VaZBYsLkG4SdavirB8cZjvB+FVo0Jj 5un9dWo1U3zgSDy0MPMxHU6JyUOA/FocKDB9po+koeTXe/wpEunaZmjzgp/Smm0DitwO Q99g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=JmHbofsFUqLLbTB0Skg15LiO+LSqtFrZhb23ujbXg9U=; b=KsLj+vrZ7JByF68caVRdcro8u6T914Djh02LW0DdZWHL3NsQ398MwXlPN5xaZuMvcx LvzOpwi58E9FUTjBNLNP7Cxa7lXE8R6GpOvJaBUn+z39MPW0ZB44UqaMHvuAhpzFa2uW oG7lN35mx0f+RxdQXVZgrUd+oygdvkW4ly3mbMCXi3HG6tx3A7uLzEoOgatCpNrjA0Rf nXQy8h54yFrY3bZ57vbdDcTdcrUUVRMml6Q49BwXVZJ9jXM4HqWAyR2a27DdMh7U5cY1 4R7ZAP6Uc/1D7z0ynacKf7niQ7a9z3EsSoGeb+A1nZRj2CUW3qlp+Vcdb+vps+lLkTW0 dvew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hbIvGQlT; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=JmHbofsFUqLLbTB0Skg15LiO+LSqtFrZhb23ujbXg9U=; b=rVDUqootL/aTqI89K+k55/hpLlpg3KtE994hkeo3/750RY9nxTvysGlIUvVd8vunj/ nDdB+DBOma/LaEYiLIDmSg/hnJT/tJ2OIq0xtcsFoF05tySirKdxYplfU51sv3HOIRvV 94g1X9ZtFJbkeDQcSNrBnk+OU1IS5n3Rm8T0s= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=JmHbofsFUqLLbTB0Skg15LiO+LSqtFrZhb23ujbXg9U=; b=hmmZ+TfhU9A9//WuyC74HL+kXirIX+7gPZA0ku/cIZTmGcOJX61wn+y3X1pZnVtdwX C1m5x1XQ5Tw9TkTqijNVA6nlOqDcEOIMEXq/BLo+M0YTvoY0XLsh69gtb8vv3rX2sY9q u3Qe8KazMO9ayooD9L7dq2segzFsEs152lYz9zsUsIvGPV1E2rf1XXEiR/NJEJeIQBsY ZHwprwPrZNzB3jrD56FkE/ZNEkayO7oqSJLfeUZxtlI4259tvx13LdMjzHL09r10xkeq nmnINn1YUKyqalX5Eqb3/CikbwMt9Ga7tTpe9Wj0cBr/LRO1MNk4eqN27LvR4LnZIzWs Rggg== X-Gm-Message-State: APjAAAWO2VjU5ekvRw6b4QJ6C6SZvO61BwITVPN/1/gCwIVXP3/gxTzC 7nm63D6vEsd633vreOB0r6RVLTIO X-Google-Smtp-Source: APXvYqxXubzgcRE8mxoUEY1mQGFybUBOl5dB4RLwncSORVhsW9I2KIGWPI40wbSxbqEh62bfMFCZbQ== X-Received: by 2002:a17:902:b110:: with SMTP id q16mr1460927plr.50.1554204563325; Tue, 02 Apr 2019 04:29:23 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:ff54:: with SMTP id s20ls139487pgk.14.gmail; Tue, 02 Apr 2019 04:29:23 -0700 (PDT) X-Received: by 2002:aa7:9089:: with SMTP id i9mr7683581pfa.115.1554204562938; Tue, 02 Apr 2019 04:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554204562; cv=none; d=google.com; s=arc-20160816; b=RI+vbpcKeHq3qyT5N/qDpGBq57xesgjpjb/1CsCiSEJR9vb1zDqxAihIIq8Z+HduFl WhWriJcpuHuID5tZrlRNhPH3kvE1iVpNujeZkU20rkLRbh9skz1zWmcWZ9yiTipHCXJZ g0RHVzLfeGydhVsKTXeJS7seO0UN2aZi2hhJVG40+1Fco3vQtKAbiQojWSf5fIdI+Bki 7duVAtBqJ+g0Nw/sSKTBjN+bO7AZIMzGFQCgGp2wNV10dJN7SO3OSryg9VaZEphN/QZD lIvTvDkXYZD3AlovXFqc5azGIqKuqAFVQ/gwXOSSNxqGLNMkcaY7qaual7pOiz/N+YwB GcJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Z+bH/fLv8IHDKT9j/QJHe7hHDAenZDOOj6DTOBobzlA=; b=txFOrgJG1IbFIIXMAdwL40qzqM0sJgIQcowKvFYzwPQXtT/xgtVZYFPmJ5iMA7rgpR mLZRn3xkw3bb2O1SJFZ1rrjYBMq6mqkJ3IXAII/VpR57vEgGaH+zAeMIKFhDyTzXw0jo EyRgoIIN05CFmUdNeRTbP93QUHirXF+aEKcG5oEUnVCxFqgTKfTFNgBStHlhAw+YDGLw pyvhNcklXWP3J2vSjexIWPk777AXKs7AzSivGwM7cZomwy6HqsdVl4GJrGhlar6N13bR S1861pb9l7Y86oxqoU5Foj1wXDX9OsAJdzMShHQM30olzVg7ix+UWf+jpYqnMIn33kGs R/5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hbIvGQlT; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id y196sor12943731pfb.16.2019.04.02.04.29.22 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 02 Apr 2019 04:29:22 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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> Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Shyam Saini <shyam.saini@amarulasolutions.com>, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v2 04/10] clk: Add clk_div_mask helper 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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hbIvGQlT; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
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(+)