[U-Boot] [PATCH v4 07/13] dm: clk: Define clk_get_parent() for clk operations
Simon Glass
sjg at chromium.org
Sat May 18 16:08:36 UTC 2019
On Thu, 16 May 2019 at 16:11, Lukasz Majewski <lukma at denx.de> wrote:
>
> This commit adds the clk_get_parent() function, which is responsible
> for getting the parent's struct clock pointer.
>
> U-boot's DM support for getting parent is different (the parent
> relationship is in udevice) than the one in common clock framework (CCF)
> in Linux. To obtain the pointer to struct clk of parent the
> pdev->driver_data field is read.
>
> Signed-off-by: Lukasz Majewski <lukma at denx.de>
>
> ---
>
> Changes in v4: None
> Changes in v3:
> - New patch
>
> drivers/clk/clk-uclass.c | 15 +++++++++++++++
> include/clk.h | 9 +++++++++
> 2 files changed, 24 insertions(+)
Please can you add a test for this?
Regards,
Simon
More information about the U-Boot
mailing list