On Fri, Apr 30, 2021 at 3:39 PM Siew Chin Lim <[email protected]> wrote: > > Add clock manager driver for N5X. Provides clock initialization > and get_rate functions. > > Signed-off-by: Siew Chin Lim <[email protected]> > > --- > v2: > - common.h need to be included before clock_manager.h > - Remove unnecessary comment : write 1 to clear > - Remove unnecessary () in the code > --- > drivers/clk/altera/Makefile | 3 +- > drivers/clk/altera/clk-n5x.c | 489 ++++++++++++++++++++++++++ > drivers/clk/altera/clk-n5x.h | 217 ++++++++++++ > include/dt-bindings/clock/n5x-clock.h | 71 ++++ > 4 files changed, 779 insertions(+), 1 deletion(-) > create mode 100644 drivers/clk/altera/clk-n5x.c > create mode 100644 drivers/clk/altera/clk-n5x.h > create mode 100644 include/dt-bindings/clock/n5x-clock.h >
[...] + > +#define CLKMGR_INTER_MAINPLLLOCKED_MASK 0x00000001 > +#define CLKMGR_INTER_PERPLLLOCKED_MASK 0x00000002 > +#define CLKMGR_INTER_MAINPLLLOST_MASK 0x00000004 > +#define CLKMGR_INTER_PERPLLLOST_MASK 0x00000008 Use BIT() macro for these mask bits. Regards Ley Foon

