[PATCH] clk: zynqmp: Add set_rate support for gem rx and tsu clks

Michal Simek michal.simek at amd.com
Fri Jul 21 09:01:13 CEST 2023



On 7/19/23 10:49, Ashok Reddy Soma wrote:
> gem0_rx till gem3_rx  and gem_tsu are missing from set rate function.
> Add them, so that they can be set from pmu firmware via clock framework.
> 
> Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma at amd.com>
> ---
> 
>   drivers/clk/clk_zynqmp.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c
> index be0ee50e0e..27479391e1 100644
> --- a/drivers/clk/clk_zynqmp.c
> +++ b/drivers/clk/clk_zynqmp.c
> @@ -718,6 +718,8 @@ static ulong zynqmp_clk_set_rate(struct clk *clk, ulong rate)
>   	switch (id) {
>   	case gem0_ref ... gem3_ref:
>   	case gem0_tx ... gem3_tx:
> +	case gem0_rx ... gem3_rx:
> +	case gem_tsu:
>   	case qspi_ref ... can1_ref:
>   	case usb0_bus_ref ... usb3_dual_ref:
>   		return zynqmp_clk_set_peripheral_rate(priv, id,

Applied.
M


More information about the U-Boot mailing list