diff options
author | Marcin Niestroj <m.niestroj@grinn-global.com> | 2019-07-03 11:27:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-07-04 08:57:31 +0200 |
commit | 47b432c697c273603038a0a78736f2aa531a12a6 (patch) | |
tree | aa2fe4dcd1aeee1fe2d504b14146dd58bbf4bacf /include/linux | |
parent | d5e22fcca70a5b2ed51981516cfe13103122cc98 (diff) | |
download | barebox-47b432c697c273603038a0a78736f2aa531a12a6.tar.gz barebox-47b432c697c273603038a0a78736f2aa531a12a6.tar.xz |
clk: divider: export clk_div_mask() helper
commit e6d3cc7b1fac3d7f1313faf8ac9b23830113e3ec Linux upstream.
clk: divider: export clk_div_mask() helper
Export clk_div_mask() in clk-provider header so every clock providers
derived from the generic clock divider may share the definition instead
of redefining it.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/clk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index ed78ffe46c..c3aeea80dd 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -340,6 +340,8 @@ struct clk_divider { int table_size; }; +#define clk_div_mask(width) ((1 << (width)) - 1) + #define CLK_DIVIDER_POWER_OF_TWO (1 << 1) #define CLK_DIVIDER_HIWORD_MASK (1 << 3) #define CLK_DIVIDER_READ_ONLY (1 << 5) |