diff options
author | Michael Walle <michael@walle.cc> | 2020-11-08 19:51:07 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-12-08 01:53:30 +0100 |
commit | 4cb15934ba05b49784d9d47778af308e7ea50b69 (patch) | |
tree | 5cb3e8dd529f447e2eb0e2077000f9e1d90bbde7 /include/dt-bindings | |
parent | clk: fsl-sai: use devm_clk_hw_register_composite_pdata() (diff) | |
download | linux-4cb15934ba05b49784d9d47778af308e7ea50b69.tar.xz linux-4cb15934ba05b49784d9d47778af308e7ea50b69.zip |
clk: qoriq: provide constants for the type
To avoid future mistakes in the device tree for the clockgen module, add
constants for the clockgen subtype as well as a macro for the PLL
divider.
Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201108185113.31377-4-michael@walle.cc
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'include/dt-bindings')
-rw-r--r-- | include/dt-bindings/clock/fsl,qoriq-clockgen.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/dt-bindings/clock/fsl,qoriq-clockgen.h b/include/dt-bindings/clock/fsl,qoriq-clockgen.h new file mode 100644 index 000000000000..ddec7d0bdc7f --- /dev/null +++ b/include/dt-bindings/clock/fsl,qoriq-clockgen.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef DT_CLOCK_FSL_QORIQ_CLOCKGEN_H +#define DT_CLOCK_FSL_QORIQ_CLOCKGEN_H + +#define QORIQ_CLK_SYSCLK 0 +#define QORIQ_CLK_CMUX 1 +#define QORIQ_CLK_HWACCEL 2 +#define QORIQ_CLK_FMAN 3 +#define QORIQ_CLK_PLATFORM_PLL 4 +#define QORIQ_CLK_CORECLK 5 + +#define QORIQ_CLK_PLL_DIV(x) ((x) - 1) + +#endif /* DT_CLOCK_FSL_QORIQ_CLOCKGEN_H */ |