Without clock, accessing ocotp register will cause system hang.
So define the clock here in device tree for driver to use.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit
fa8e45c7c9865d78480043db87eba55a301edd8f)
ocotp: ocotp@021bc000 {
compatible = "fsl,imx6q-ocotp", "syscon";
reg = <0x021bc000 0x4000>;
+ clocks = <&clks IMX6QDL_CLK_IIM>;
};
tzasc@021d0000 { /* TZASC1 */
ocotp: ocotp@021bc000 {
compatible = "fsl,imx6sl-ocotp", "syscon";
reg = <0x021bc000 0x4000>;
+ clocks = <&clks IMX6SL_CLK_OCOTP>;
};
audmux: audmux@021d8000 {