lpuart: add a get_lpuart_clk function
authorShaohui Xie <Shaohui.Xie@nxp.com>
Fri, 28 Oct 2016 06:23:30 +0000 (14:23 +0800)
committerYork Sun <york.sun@nxp.com>
Mon, 21 Nov 2016 17:20:32 +0000 (09:20 -0800)
commit9b46213b4f63578be2fbcf6b0532a0a8d4b5edb0
tree0cbe53a4bb7fbb1534dde0c951ff75b88bbd798f
parent20c700f8daee0b3995c5a6d2c5f69eef1c7acd4e
lpuart: add a get_lpuart_clk function

It's not always true that LPUART clock is CONFIG_SYS_CLK_FREQ. This
patch provides a weak function get_lpuart_clk(), so that the clock
can be ovreridden on a specific board which uses different clock
for LPUART.

Signed-off-by: Shaohui Xie <Shaohui.Xie@nxp.com>
[YS: Reformat commit message]
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/serial/serial_lpuart.c