clk: imx: add common logic to detect early UART usage
authorLucas Stach <l.stach@pengutronix.de>
Mon, 21 Sep 2015 16:53:57 +0000 (18:53 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 26 Sep 2015 04:58:41 +0000 (21:58 -0700)
commit55adc61c568af99419be1dc0412f8eae019c71f2
tree4d0ea6aa30a116767071a1979a8e7481e972b775
parent8d449cb5e29a488cef44d81196f2819b92585513
clk: imx: add common logic to detect early UART usage

Both earlycon and eralyprintk depend on the bootloader setup UART
clocks being retained. This patch adds the common logic to detect such
situations and make the information available to the clock drivers, as
well as adding the facilities to disable those clocks at the end of
the kernel init.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk.c
drivers/clk/imx/clk.h