i.MX7 clock tre: ENET_REF_CLK_ROOT gates

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX7 clock tre: ENET_REF_CLK_ROOT gates

ソリューションへジャンプ
1,282件の閲覧回数
vsiles
Senior Contributor I

Hi !

In the i.mx7 ref manual, we can see that there is not gates for the ENET1_REF_CLK_ROOT and ENET2_REF_CLK_ROOT in the Clock Tree (rev 0.1, Table 5.2.4 Clock Tree)

However in Linux source code (./arch/arm/mach-imx/clk-imx7d.c from Toradex SDK), we can see that both

ENET_REF_CLK_ROOT and ENET_TIME_CLK_ROOT are declared as gates:

clks[IMX7D_ENET1_REF_ROOT_CG] = imx_clk_gate3("enet1_ref_cg", "enet1_ref_src", base + 0xa700, 28);
clks[IMX7D_ENET1_TIME_ROOT_CG] = imx_clk_gate3("enet1_time_cg", "enet1_time_src", base + 0xa780, 28);
clks[IMX7D_ENET2_REF_ROOT_CG] = imx_clk_gate3("enet2_ref_cg", "enet2_ref_src", base + 0xa800, 28);
clks[IMX7D_ENET2_TIME_ROOT_CG] = imx_clk_gate3("enet2_time_cg", "enet2_time_src", base + 0xa880, 28);

Could someone clarify the situation and tell me if there is a gate or not at these locations ?

Best,

V.

ラベル(1)
タグ(2)
1 解決策
1,063件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Vincent,

In 'Table 5-12. System Clocks and Gating' you can see that both, ENET1_TIME_ROOT and ENET2_TIME_ROOT are mapped to clk_enable_enet1 (CCGR112) and clk_enable_enet2 (CCGR113) respectively,

pastedImage_9.png

and this matches with Figure 5-15, so they do have Clock Gate Register.

pastedImage_6.png

On the other hand for ENET1_REF_CLK_ROOT and ENET2_REF_CLK_ROOT there are no Clock Gate registers, however there is an enable bit (bit 28) in Target Register that matches the API you pointed.

pastedImage_10.png

5.2.8 CCM Memory Map/Register Definition

pastedImage_2.png

pastedImage_3.png


Best regards,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

2 返答(返信)
1,064件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Vincent,

In 'Table 5-12. System Clocks and Gating' you can see that both, ENET1_TIME_ROOT and ENET2_TIME_ROOT are mapped to clk_enable_enet1 (CCGR112) and clk_enable_enet2 (CCGR113) respectively,

pastedImage_9.png

and this matches with Figure 5-15, so they do have Clock Gate Register.

pastedImage_6.png

On the other hand for ENET1_REF_CLK_ROOT and ENET2_REF_CLK_ROOT there are no Clock Gate registers, however there is an enable bit (bit 28) in Target Register that matches the API you pointed.

pastedImage_10.png

5.2.8 CCM Memory Map/Register Definition

pastedImage_2.png

pastedImage_3.png


Best regards,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,063件の閲覧回数
vsiles
Senior Contributor I

Ok, I have now a better understanding of the distinction. Thank you !

0 件の賞賛
返信