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)
commit8f5b6299bc92169d9721962efd3552d756f70692
tree59c367e42b6fcafc6b117e23d8a004ffa248b0ba
parentcdc16f61823914ff19fdaddf3ca66ad7b159a1bd
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