How to display IFC frequency when booting T1020 board?

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

How to display IFC frequency when booting T1020 board?

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

Hello.

I am confused how to display the IFC frequency on the T1020 board.(Blue letter below)

CPU0: T1020, Version: 1.1, (0x85210011)
Core: e5500, Version: 2.1, (0x80241021)
Single Source Clock Configuration
Clock Configuration:
CPU0:1200 MHz, CPU1:1200 MHz,
CCB:600 MHz,
DDR:800 MHz (1600 MT/s data rate) (Asynchronous), IFC:300 MHz

........

SDK1.7 and SDK2.0 display methods are different. Which one is more correct?

1) SDK 1.7 uboot
#if defined(CONFIG_FSL_IFC)
    ccr = in_be32(&ifc_regs->ifc_ccr);
    ccr = ((ccr & IFC_CCR_CLK_DIV_MASK) >> IFC_CCR_CLK_DIV_SHIFT) + 1;

    sys_info->freq_localbus = sys_info->freq_systembus / ccr;
#endif

2) SDK 2.0 uboot
    sys_info->freq_localbus = sys_info->freq_systembus / CONFIG_SYS_FSL_IFC_CLK_DIV;

 

Best regard.

0 件の賞賛
返信
1 解決策
1,074件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

#if defined(CONFIG_FSL_IFC)

ccr = ifc_in32(&ifc_regs.gregs->ifc_ccr);

ccr = ((ccr & IFC_CCR_CLK_DIV_MASK) >> IFC_CCR_CLK_DIV_SHIFT) + 1;

sys_info->freq_localbus = sys_info->freq_systembus / ccr;

#endif

According to the code above, IFC clock freq in uboot means the external clock freq of IFC, not the IFC IP module clock freq. In fact IFC external clock isn’t used on any existing board, so the right way is to calculate IFC IP module clock freq in uboot log as below:

sys_info->freq_localbus = sys_info->freq_systembus / 2.

 

SDK 2.0 is correct.

元の投稿で解決策を見る

1 返信
1,075件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

#if defined(CONFIG_FSL_IFC)

ccr = ifc_in32(&ifc_regs.gregs->ifc_ccr);

ccr = ((ccr & IFC_CCR_CLK_DIV_MASK) >> IFC_CCR_CLK_DIV_SHIFT) + 1;

sys_info->freq_localbus = sys_info->freq_systembus / ccr;

#endif

According to the code above, IFC clock freq in uboot means the external clock freq of IFC, not the IFC IP module clock freq. In fact IFC external clock isn’t used on any existing board, so the right way is to calculate IFC IP module clock freq in uboot log as below:

sys_info->freq_localbus = sys_info->freq_systembus / 2.

 

SDK 2.0 is correct.