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)zero-colors
parent
110a8230ba
commit
c2863ce025
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue