vpu: optimize vpu_clkb gate control

PD#138714: vpu: optimize vpu_clkb gate control

Change-Id: Icf468db8218893de6c6ec0079d65d19279032281
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
This commit is contained in:
Evoke Zhang
2017-05-11 10:54:13 +08:00
committed by Jianxin Pan
parent 2e9d45599c
commit a456d2e663
2 changed files with 1 additions and 3 deletions

View File

@@ -810,7 +810,7 @@ static int get_vpu_config(struct platform_device *pdev)
static void vpu_clktree_init(struct device *dev)
{
static struct clk *vpu_clktree;
struct clk *vpu_clktree;
vpu_clktree = devm_clk_get(dev, "vapb_clk");
if (IS_ERR(vpu_clktree))

View File

@@ -389,8 +389,6 @@ void switch_vpu_clk_gate_vmod(unsigned int vmod, int flag)
(vpu_chip_type == VPU_CHIP_GXL) ||
(vpu_chip_type == VPU_CHIP_GXM) ||
(vpu_chip_type == VPU_CHIP_TXL)) {
vpu_vcbus_setb(VPU_CLK_GATE, val, 8, 1); /* clkb_gen */
vpu_vcbus_setb(VPU_CLK_GATE, val, 9, 1); /* clkb_gen */
/* clkb_gen_en */
vpu_vcbus_setb(VPU_CLK_GATE, val, 17, 1);
}