From c2863ce02569b6bf68b73565bfe8ed429b69f55b Mon Sep 17 00:00:00 2001 From: Bai Ping Date: Wed, 29 Aug 2018 18:17:00 +0800 Subject: [PATCH] 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 Reviewed-by: Jian Li (cherry picked from commit 45d2dcaecce6d83e5c4a7e9488c651a05b0f05ac) --- drivers/soc/imx/soc-imx8.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/drivers/soc/imx/soc-imx8.c b/drivers/soc/imx/soc-imx8.c index dcfb334336be..ad40233225d7 100644 --- a/drivers/soc/imx/soc-imx8.c +++ b/drivers/soc/imx/soc-imx8.c @@ -182,29 +182,19 @@ static const struct of_device_id imx8_soc_match[] = { 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; - - if (statlen > 0) { - if (!strcmp(status, "disabled")) - return; - } - pr_info("Config NOC for VPU and CPU\n"); + + arm_smccc_smc(IMX_SIP_NOC, IMX_SIP_NOC_PRIORITY, NOC_CPU_PRIORITY, + 0x80000300, 0, 0, 0, 0, &res); + if (res.a0) + pr_err("Config NOC for CPU fail!\n"); + arm_smccc_smc(IMX_SIP_NOC, IMX_SIP_NOC_LCDIF, 0, 0, 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)