rk312x: enable jtag clk by rockchip_jtag_enabled
author陈亮 <cl@rock-chips.com>
Fri, 12 Sep 2014 01:18:34 +0000 (18:18 -0700)
committer陈亮 <cl@rock-chips.com>
Fri, 12 Sep 2014 01:19:48 +0000 (18:19 -0700)
Signed-off-by: 陈亮 <cl@rock-chips.com>
arch/arm/mach-rockchip/rk312x.c

index 5308c528c2b72ae0c330698f697c79d3d62f3c0c..d9e08033a7b075e05a15e9bf8e41211daf133faa 100755 (executable)
@@ -358,6 +358,8 @@ static void __init rk312x_init_late(void)
 #ifdef CONFIG_PM
        rk321x_init_suspend();
 #endif
+       if (rockchip_jtag_enabled)
+               clk_prepare_enable(clk_get_sys(NULL, "clk_jtag"));
 }
 
 static void rk312x_restart(char mode, const char *cmd)