SDK error: ANATOP_PllEnableSs() for i.MX RT 1170

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDK error: ANATOP_PllEnableSs() for i.MX RT 1170

554 Views
mjbcswitzerland
Specialist V

Hi

I believe the spread spectrum PLL enable/disable function is incorrect.

I find that it is identical to the PLL enable clock routine as shown below:

static void ANATOP_PllEnableSs(anatop_ai_itf_t itf, bool enable)
{
ANATOP_AI_Write(itf, enable ? PLL_AI_CTRL0_SET_REG : PLL_AI_CTRL0_CLR_REG, PLL_AI_CTRL0_ENABLE_MASK);
}

static void ANATOP_PllEnableClk(anatop_ai_itf_t itf, bool enable)
{
ANATOP_AI_Write(itf, enable ? PLL_AI_CTRL0_SET_REG : PLL_AI_CTRL0_CLR_REG, PLL_AI_CTRL0_ENABLE_MASK);
}

and I believe the correction is:

static void ANATOP_PllEnableSs(anatop_ai_itf_t itf, bool enable)
{
ANATOP_AI_Write(itf, enable ? PLL_AI_CTRL1_SET_REG : PLL_AI_CTRL1_CLR_REG, PLL_AI_CTRL0_ENABLE_MASK);
}

whereby PLL_AI_CTRL0_ENABLE_MASK can be used since it happens to have the correct value.  Better would however be to have a specific define for the spread spectrum control bit, such as
#define FRACTIONAL_PLL_SPREAD_SPECTRUM_ENABLE 0x00008000

Regards

Mark

0 Kudos
Reply
1 Reply

538 Views
jay_heng
NXP Employee
NXP Employee

Thanks for your suggestion, I will let SW team know this issue.

 

0 Kudos
Reply