summaryrefslogtreecommitdiffstats
path: root/disk
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2020-01-10 15:47:05 +0100
committerStefano Babic <sbabic@denx.de>2020-01-14 22:54:00 +0100
commit55631db8bd6d63d4049ca7301f06aaa0e6e6824e (patch)
tree0a31e19f3e0ebc0e9e558c03950414f31cc67ae5 /disk
parente12b737e937ead3ed94b16e267ccfe877714cd06 (diff)
downloadu-boot-55631db8bd6d63d4049ca7301f06aaa0e6e6824e.tar.gz
u-boot-55631db8bd6d63d4049ca7301f06aaa0e6e6824e.tar.xz
u-boot-55631db8bd6d63d4049ca7301f06aaa0e6e6824e.zip
serial_lpuart: add clock enable if CONFIG_CLK is defined
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@benettiengineering.com>
Diffstat (limited to 'disk')
0 files changed, 0 insertions, 0 deletions