arm: rockchip: rk1808 set isp qos priority to 2

isp qos priority is 1, and if run with npu, sometime
it can not get right image, so set it priority to 2.

Change-Id: I3cc34ffe9c17c8a4d79f9ba71732fcab3c879511
Signed-off-by: Lin Huang <hl@rock-chips.com>
This commit is contained in:
Lin Huang 2019-08-05 19:16:02 +08:00 committed by Jianhong Chen
parent 2a77afce30
commit 90a8d4436c
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#include <asm/armv8/mmu.h>
#define NIU_CIF_ADDR 0xfe8a0188
#define NIU_ISP_ADDR 0xfe8a0008
#define QOS_PRIORITY_LEVEL(h, l) ((((h) & 3) << 8) | ((l) & 3))
static struct mm_region rk1808_mem_map[] = {
@ -67,6 +68,7 @@ int arch_cpu_init(void)
{
/* Set cif qos priority */
writel(QOS_PRIORITY_LEVEL(2, 2), NIU_CIF_ADDR);
writel(QOS_PRIORITY_LEVEL(2, 2), NIU_ISP_ADDR);
return 0;
}