clk: imx: fix i.MX7D peripheral clk mux flags
authorPeng Fan <peng.fan@nxp.com>
Fri, 28 Aug 2020 07:18:50 +0000 (15:18 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 7 Sep 2020 03:08:50 +0000 (11:08 +0800)
commit4757d2a3a32126be8bf5acb6eb293d0a1310dc1b
tree68c7119935d64a835cfe94d1a55881177f559bc5
parent936c383673b9e3007432f17140ac62de53d87db9
clk: imx: fix i.MX7D peripheral clk mux flags

According to RM, Page 574, Chapter 5.2.6.4.3 Peripheral clock slice,
"IP clock slices must be stopped to change the clock source.".

So we must have CLK_SET_PARENT_GATE flag to avoid glitch.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx7d.c