[PATCH V4] clk: clk_versaclock: Add support for versaclock driver

Sean Anderson seanga2 at gmail.com
Wed Dec 1 20:11:15 CET 2021


Hi Adam,

On 6/4/21 1:26 PM, Adam Ford wrote:
> +/*
> + * The device references to the Versaclock point to the head, so xlate needs to
> + * redirect it to clk_out[idx]
> + */
> +static int vc5_clk_out_xlate(struct clk *hw, struct ofnode_phandle_args *args)
> +{
> +	unsigned int idx = args->args[0];
> +
> +	if (args->args_count != 1) {
> +		debug("Invaild args_count: %d\n", args->args_count);
> +		return -EINVAL;
> +	}
> +
> +	hw->id = idx;
> +
> +	return 0;
> +}

Can you explain a bit more why this is needed? I looked it over a few
times, and I'm not sure what it does differently from
clk_of_xlate_default.

--Sean


More information about the U-Boot mailing list