mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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))
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user