[PATCH v3 4/4] clk: imx8m: remove code duplication
Marek Vasut
marex at denx.de
Mon Mar 14 19:58:46 CET 2022
On 3/14/22 19:22, Angus Ainslie wrote:
> All of the imx8m[nmpq] use the same clk_ops functions so move them
> to a common file.
>
> Signed-off-by: Angus Ainslie <angus at akkea.ca>
> ---
> drivers/clk/imx/Makefile | 8 +--
> drivers/clk/imx/clk-imx8m.c | 108 +++++++++++++++++++++++++++++++++++
> drivers/clk/imx/clk-imx8m.h | 12 ++++
> drivers/clk/imx/clk-imx8mm.c | 89 +----------------------------
> drivers/clk/imx/clk-imx8mn.c | 89 +----------------------------
> drivers/clk/imx/clk-imx8mp.c | 91 +----------------------------
> drivers/clk/imx/clk-imx8mq.c | 91 +----------------------------
> 7 files changed, 132 insertions(+), 356 deletions(-)
> create mode 100644 drivers/clk/imx/clk-imx8m.c
> create mode 100644 drivers/clk/imx/clk-imx8m.h
Reviewed-by: Marek Vasut <marex at denx.de>
Thanks
More information about the U-Boot
mailing list