]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit15635360cf94d71ad6a78c49704ab95d168e9805
tree4d0ea6aa30a116767071a1979a8e7481e972b775
parent0661f92b9db1ba78a265f7b3bb934de064656d9f
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