]> git.baikalelectronics.ru Git - uboot.git/commit
serial: lpuart: support uclass clk api
authorPeng Fan <peng.fan@nxp.com>
Thu, 18 Oct 2018 22:26:23 +0000 (00:26 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 22 Oct 2018 10:59:02 +0000 (12:59 +0200)
commit96cfa6b04456841ab7786dd45bb656ffa82e3ca0
tree59c367e42b6fcafc6b117e23d8a004ffa248b0ba
parent28e93287aad92d43b1a52c53d286d8a2b8bec12e
serial: lpuart: support uclass clk api

Modify most APIs to use udevice as the first parameter, then
it will be easy to get the clk reference by using udevice pointer.
Use uclass api to get lpuart clk when CONFIG_CLK is enabled.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
drivers/serial/serial_lpuart.c