IMX8MM PCIE CLK OUT

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

IMX8MM PCIE CLK OUT

692 Views
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 Kudos
Reply
2 Replies

683 Views
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 Kudos
Reply

678 Views
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 Kudos
Reply