[v2 05/17] drivers: clk: Add clock driver for Intel N5X device
Ley Foon Tan
lftan.linux at gmail.com
Fri May 14 11:22:17 CEST 2021
On Fri, Apr 30, 2021 at 3:39 PM Siew Chin Lim
<elly.siew.chin.lim at intel.com> wrote:
>
> Add clock manager driver for N5X. Provides clock initialization
> and get_rate functions.
>
> Signed-off-by: Siew Chin Lim <elly.siew.chin.lim at intel.com>
>
> ---
> 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
More information about the U-Boot
mailing list