IMX8QM M40 configuration DUP operation for help

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX8QM M40 configuration DUP operation for help

870 次查看
gjb123abc
Contributor I

/*
* DPU clock definition
*
* Resource Clock Description
* SC_R_DC_0 SC_PM_CLK_MISC0 Display 0 clock
* SC_R_DC_0 SC_PM_CLK_MISC1 Display 1 clock
* SC_R_DC_0_PLL_0 SC_PM_CLK_PLL User programmable PLL clock
* SC_R_DC_0_PLL_1 SC_PM_CLK_PLL User programmable PLL clock
* SC_R_DC_0_VIDEO0 SC_PM_CLK_MISC Bypass 0 clock
* SC_R_DC_0_VIDEO1 SC_PM_CLK_MISC Bypass 1 clock
*/
err = sc_pm_set_resource_power_mode(ipc, DC_RSRC, SC_PM_PW_MODE_ON);
if (SC_ERR_NONE != err)
{
assert(false);
}

err = sc_pm_set_resource_power_mode(ipc, DC_PLL_RSRC, SC_PM_PW_MODE_ON);
if (SC_ERR_NONE != err)
{
assert(false);
}

/* DPU PLL0. */
dpuPllClkFreq_Hz = APP_PIXEL_CLOCK_HZ * 8;
err = sc_pm_set_clock_rate(ipc, DC_PLL_RSRC, SC_PM_CLK_PLL, &dpuPllClkFreq_Hz);
if (SC_ERR_NONE != err)
{
assert(false);
}

err = sc_pm_clock_enable(ipc, DC_PLL_RSRC, SC_PM_CLK_PLL, true, false);
if (SC_ERR_NONE != err)
{
assert(false);
}

Failure to debug will result in the assert(false) function

(1) The M40 of IMX8QM does not support DPU operation.

(2) Is DPU configuration required in SCFW

 

0 项奖励
回复
1 回复

858 次查看
joanxie
NXP TechSupport
NXP TechSupport
0 项奖励
回复