[U-Boot] [U-Boot,v5] clk: at91: Add clock driver

Andreas Bießmann andreas at biessmann.org
Mon Aug 15 22:16:29 CEST 2016


Dear Wenyou Yang,

Wenyou Yang <wenyou.yang at atmel.com> writes:
>The patch is referred to at91 clock driver of Linux, to make
>the clock node descriptions in DT aligned with the Linux's.
>
>Signed-off-by: Wenyou Yang <wenyou.yang at atmel.com>
>Reviewed-by: Simon Glass <sjg at chromium.org>
>---
>
>Changes in v5:
> - Change clk_client.h -> clk.h to adapt to clk API conversion.
> - Fix missing semicolon and clk->dev in clk-generated.c.
> - Make clock options selectable via menuconfig.
>
>Changes in v4:
> - Add Reviewed-by tag.
> - Add more information in Kconfig help.
> - Use u32 for num_parents variable, not u8.
> - Change the check return from clk_get_rate().
> - Remove return -ENODEV line, use return ret.
> - Improve the comments in at91_system_clk_enable().
>
>Changes in v3:
> - Update based on [PATCH] clk: convert API to match reset/mailbox
>   style (http://patchwork.ozlabs.org/patch/625342/).
> - Remove [PATCH] clk: clk-uclass: Add post binding for CLK uclass,
>   add bind() method to bind the clk node without compatible.
> - Add help for Kconfig HAVE_AT91_XX option.
> - Add ofdata_to_platdata() method for generated clock driver
>   to handle the device tree.
> - Use setbits_le32() to replace readl()/writel().
> - Fixed the return value, -ENODEV->-EINVAL.
> - Use dev_get_addr_ptr() to replace dev_get_addr().
> - Remove check on dev_get_parent() return.
>
>Changes in v2:
> - Remove the redundant log print.
>
> arch/arm/mach-at91/include/mach/at91_pmc.h |  11 +-
> drivers/clk/Kconfig                        |   1 +
> drivers/clk/Makefile                       |   1 +
> drivers/clk/at91/Kconfig                   |  43 ++++++++
> drivers/clk/at91/Makefile                  |  11 ++
> drivers/clk/at91/clk-generated.c           | 162 +++++++++++++++++++++++++++++
> drivers/clk/at91/clk-h32mx.c               |  56 ++++++++++
> drivers/clk/at91/clk-main.c                |  55 ++++++++++
> drivers/clk/at91/clk-master.c              |  33 ++++++
> drivers/clk/at91/clk-peripheral.c          |  60 +++++++++++
> drivers/clk/at91/clk-plla.c                |  55 ++++++++++
> drivers/clk/at91/clk-slow.c                |  37 +++++++
> drivers/clk/at91/clk-system.c              |  76 ++++++++++++++
> drivers/clk/at91/clk-utmi.c                |  67 ++++++++++++
> drivers/clk/at91/pmc.c                     |  71 +++++++++++++
> drivers/clk/at91/pmc.h                     |  18 ++++
> drivers/clk/at91/sckc.c                    |  30 ++++++
> 17 files changed, 784 insertions(+), 3 deletions(-)
> create mode 100644 drivers/clk/at91/Kconfig
> create mode 100644 drivers/clk/at91/Makefile
> create mode 100644 drivers/clk/at91/clk-generated.c
> create mode 100644 drivers/clk/at91/clk-h32mx.c
> create mode 100644 drivers/clk/at91/clk-main.c
> create mode 100644 drivers/clk/at91/clk-master.c
> create mode 100644 drivers/clk/at91/clk-peripheral.c
> create mode 100644 drivers/clk/at91/clk-plla.c
> create mode 100644 drivers/clk/at91/clk-slow.c
> create mode 100644 drivers/clk/at91/clk-system.c
> create mode 100644 drivers/clk/at91/clk-utmi.c
> create mode 100644 drivers/clk/at91/pmc.c
> create mode 100644 drivers/clk/at91/pmc.h
> create mode 100644 drivers/clk/at91/sckc.c

applied to u-boot-atmel/master, thanks!

Best regards,
Andreas Bießmann


More information about the U-Boot mailing list