Re: [PATCH V2 2/3] clk: imx: Add support for i.MX8MN clock driver

From: Leonard Crestez
Date: Mon Jun 03 2019 - 04:49:07 EST


On 6/3/2019 4:33 AM, Anson.Huang@xxxxxxx wrote:
> From: Anson Huang <Anson.Huang@xxxxxxx>
>
> This patch adds i.MX8MN clock driver support.

> +#include "clk.h"
> +
> +#define PLL_1416X_RATE(_rate, _m, _p, _s) \
> + { \
> + .rate = (_rate), \
> + .mdiv = (_m), \
> + .pdiv = (_p), \
> + .sdiv = (_s), \
> + }
> +
> +#define PLL_1443X_RATE(_rate, _m, _p, _s, _k) \
> + { \
> + .rate = (_rate), \
> + .mdiv = (_m), \
> + .pdiv = (_p), \
> + .sdiv = (_s), \
> + .kdiv = (_k), \
> + }

These macros are shared with clk-imx8mm (and perhaps some future chips)
so they should be moved to driver/clk/imx/clk.h