diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-06-29 22:05:23 +0300 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2016-07-09 04:04:32 +0300 |
commit | 1d80c14248d6082c91a8a9e3d70cc94c3cc18ecb (patch) | |
tree | 9611710254ac9ce4cef789aed94c699497b7fb30 /drivers/clk/sunxi-ng/ccu_mult.h | |
parent | c0692d68a88a108fd0a34f0a9bc9c3781b49d6d6 (diff) | |
download | linux-1d80c14248d6082c91a8a9e3d70cc94c3cc18ecb.tar.xz |
clk: sunxi-ng: Add common infrastructure
Start our new clock infrastructure by adding the registration code, common
structure and common code.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20160629190535.11855-3-maxime.ripard@free-electrons.com
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu_mult.h')
-rw-r--r-- | drivers/clk/sunxi-ng/ccu_mult.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/clk/sunxi-ng/ccu_mult.h b/drivers/clk/sunxi-ng/ccu_mult.h new file mode 100644 index 000000000000..609db6610880 --- /dev/null +++ b/drivers/clk/sunxi-ng/ccu_mult.h @@ -0,0 +1,15 @@ +#ifndef _CCU_MULT_H_ +#define _CCU_MULT_H_ + +struct _ccu_mult { + u8 shift; + u8 width; +}; + +#define _SUNXI_CCU_MULT(_shift, _width) \ + { \ + .shift = _shift, \ + .width = _width, \ + } + +#endif /* _CCU_MULT_H_ */ |