summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorBai Ping <ping.bai@nxp.com>2018-08-29 18:17:00 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:33:39 +0800
commit6cea8b1a34766ffce3ff2bfad4664d4426b0e144 (patch)
tree8f33b52a04c828cd0f179a887f0ab9fad8d0691e /drivers/soc
parent7cd5df6ddc15e15b2d4cf99c2b0882f752ceb0e0 (diff)
MLK-19380 driver: soc: update the noc QoS setting on imx8mq
update the noc QoS setting for CPU & VPU on i.MX8MQ. Signed-off-by: Bai Ping <ping.bai@nxp.com> Reviewed-by: Jian Li <jian.li@nxp.com> (cherry picked from commit 45d2dcaecce6d83e5c4a7e9488c651a05b0f05ac)
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/imx/soc-imx8.c26
1 files changed, 8 insertions, 18 deletions
diff --git a/drivers/soc/imx/soc-imx8.c b/drivers/soc/imx/soc-imx8.c
index 2b282697dfd5..0fc298e9c700 100644
--- a/drivers/soc/imx/soc-imx8.c
+++ b/drivers/soc/imx/soc-imx8.c
@@ -280,29 +280,19 @@ static struct device_attribute imx8_uid =
static void __init imx8mq_noc_init(void)
{
- struct device_node *np;
- const char *status;
- int statlen;
struct arm_smccc_res res;
- np = of_find_compatible_node(NULL, NULL, "fsl,imx8mq-lcdif");
- if (!np)
- return;
-
- status = of_get_property(np, "status", &statlen);
- if (status == NULL)
- return;
+ pr_info("Config NOC for VPU and CPU\n");
- if (statlen > 0) {
- if (!strcmp(status, "disabled"))
- return;
- }
+ arm_smccc_smc(FSL_SIP_NOC, FSL_SIP_NOC_PRIORITY, NOC_CPU_PRIORITY,
+ 0x80000300, 0, 0, 0, 0, &res);
+ if (res.a0)
+ pr_err("Config NOC for CPU fail!\n");
- pr_info("Config NOC for VPU and CPU\n");
- arm_smccc_smc(FSL_SIP_NOC, FSL_SIP_NOC_LCDIF, 0,
- 0, 0, 0, 0, 0, &res);
+ arm_smccc_smc(FSL_SIP_NOC, FSL_SIP_NOC_PRIORITY, NOC_VPU_PRIORITY,
+ 0x80000300, 0, 0, 0, 0, &res);
if (res.a0)
- pr_err("Config NOC for VPU and CPU fail!\n");
+ pr_err("Config NOC for VPU fail!\n");
}
static int __init imx8_soc_init(void)