[PATCH v2 15/21] serial_lpuart: add clock enable if CONFIG_CLK is defined
sbabic at denx.de
sbabic at denx.de
Wed Jan 15 13:47:00 CET 2020
> This driver assumes that lpuart clock is already enabled before probing
> but using DM only lpuart won't be automatically enabled so add
> clk_enable() when probing if CONFIG_CLK is defined. If clock is not
> found, because DM is not used, let's emit a warning and proceed, because
> serial clock could also be already enabled by non DM code. If clock is
> found but cna't be enabled then return with error.
> Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the U-Boot
mailing list