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:
parent
2a77afce30
commit
90a8d4436c
|
|
@ -16,6 +16,7 @@
|
||||||
#include <asm/armv8/mmu.h>
|
#include <asm/armv8/mmu.h>
|
||||||
|
|
||||||
#define NIU_CIF_ADDR 0xfe8a0188
|
#define NIU_CIF_ADDR 0xfe8a0188
|
||||||
|
#define NIU_ISP_ADDR 0xfe8a0008
|
||||||
#define QOS_PRIORITY_LEVEL(h, l) ((((h) & 3) << 8) | ((l) & 3))
|
#define QOS_PRIORITY_LEVEL(h, l) ((((h) & 3) << 8) | ((l) & 3))
|
||||||
|
|
||||||
static struct mm_region rk1808_mem_map[] = {
|
static struct mm_region rk1808_mem_map[] = {
|
||||||
|
|
@ -67,6 +68,7 @@ int arch_cpu_init(void)
|
||||||
{
|
{
|
||||||
/* Set cif qos priority */
|
/* Set cif qos priority */
|
||||||
writel(QOS_PRIORITY_LEVEL(2, 2), NIU_CIF_ADDR);
|
writel(QOS_PRIORITY_LEVEL(2, 2), NIU_CIF_ADDR);
|
||||||
|
writel(QOS_PRIORITY_LEVEL(2, 2), NIU_ISP_ADDR);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue