mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
video: rockchip: mpp: Set clk_sel to clk_rkvdec_core for vdpu383
clk_sel:
0-aclk_rkvdec_root_bak
1-clk_rkvdec_core
Change-Id: I6f0e011587228c6a15fd67c895c4b76dbdad40ed
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
@@ -530,7 +530,7 @@ static int rkvdec_vdpu383_run(struct mpp_dev *mpp, struct mpp_task *mpp_task)
|
||||
writel_relaxed(0x7fffff, link->reg_base + link->info->ip_time_base);
|
||||
|
||||
/* set ip func to def val */
|
||||
writel_relaxed(0x0, link->reg_base + link->info->ip_en_base);
|
||||
writel_relaxed(link->info->ip_en_val, link->reg_base + link->info->ip_en_base);
|
||||
|
||||
/* Flush the register before the start the device */
|
||||
wmb();
|
||||
|
||||
@@ -260,6 +260,7 @@ struct rkvdec_link_info rkvdec_link_vdpu383_hw_info = {
|
||||
.ip_time_base = 0x54,
|
||||
.en_base = 0x40,
|
||||
.ip_en_base = 0x58,
|
||||
.ip_en_val = 0x01000000,
|
||||
};
|
||||
|
||||
static void rkvdec2_link_free_task(struct kref *ref);
|
||||
@@ -440,7 +441,7 @@ static int rkvdec2_link_enqueue(struct rkvdec_link_dev *link_dec,
|
||||
|
||||
/* set ip func to def val */
|
||||
if (link_info->ip_en_base)
|
||||
writel_relaxed(0x0, reg_base + link_info->ip_en_base);
|
||||
writel_relaxed(link_info->ip_en_val, reg_base + link_info->ip_en_base);
|
||||
|
||||
/* start config before all registers are set */
|
||||
wmb();
|
||||
|
||||
@@ -136,6 +136,7 @@ struct rkvdec_link_info {
|
||||
u32 ip_time_base;
|
||||
u32 en_base;
|
||||
u32 ip_en_base;
|
||||
u32 ip_en_val;
|
||||
};
|
||||
|
||||
struct rkvdec_link_dev {
|
||||
|
||||
Reference in New Issue
Block a user