IMX8MM PCIE CLK OUT

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

IMX8MM PCIE CLK OUT

1,759 次查看
story
Contributor II

Hello,

we are using imx8mm chip, bsp 5.4.3.

we need to use pcie to output 100mhhz clk, we see that evk all use other ic output, is there any related patch provided, I saw the forum by related posts, also The register test corresponding to the parameter setting, the unit cannot output clk.

0 项奖励
回复
2 回复数

1,750 次查看
Yuri
NXP Employee
NXP Employee

@story 
Hello,

   please look at the following:

https://community.nxp.com/t5/i-MX-Processors/imx8mm-pcie-ref-clock/m-p/994867

 

Regards,
Yuri.

0 项奖励
回复

1,745 次查看
story
Contributor II

Hi,

I refer to that and write the corresponding register, but clk has no output.

 

 

code:

 

/* Configure the PHY to output the refclock via pad */
writel(ANA_PLL_CLK_OUT_TO_EXT_IO_EN,
imx8_phy->base + IMX8MM_PCIE_PHY_CMN_REG061);
writel(ANA_PLL_CLK_OUT_TO_EXT_IO_SEL,
imx8_phy->base + IMX8MM_PCIE_PHY_CMN_REG062);
writel(AUX_PLL_REFCLK_SEL_SYS_PLL,
imx8_phy->base + IMX8MM_PCIE_PHY_CMN_REG063);
value = ANA_AUX_RX_TX_SEL_TX | ANA_AUX_TX_TERM;
writel(value | ANA_AUX_RX_TERM_GND_EN,
imx8_phy->base + IMX8MM_PCIE_PHY_CMN_REG064);
writel(ANA_AUX_RX_TERM | ANA_AUX_TX_LVL,
imx8_phy->base + IMX8MM_PCIE_PHY_CMN_REG065);

 

 

0 项奖励
回复