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
This commit is contained in:

zatwierdzone przez
Michael Turquette

rodzic
c0692d68a8
commit
1d80c14248
15
drivers/clk/sunxi-ng/ccu_mult.h
Normal file
15
drivers/clk/sunxi-ng/ccu_mult.h
Normal file
@@ -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_ */
|
Reference in New Issue
Block a user