MPC8640 MPIC TIMER Test

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

MPC8640 MPIC TIMER Test

1,394 次查看
ranjithkumarv
Contributor I

Hi i have ported linux kernel 3.6.11 on mpc8640 based custom board.

I added support for mpic-timer support in kernel and dts file.But after booting the linux i am not able to see any timer device.

My Platform Clock-400MHz,MPIC at 50MHz(1/8 Platform Clock)

I want to test the timer with 1us resolution.

Can anyone tell me how to test MPIC Timer and any test code will be very helpful.

Thanks in advance.

0 项奖励
回复
5 回复数

1,370 次查看
yipingwang
NXP TechSupport
NXP TechSupport

NXP's mpic-timer  has not been supported by Linux until 2013, so it's unavailable in Linux 3.6.11. You can either upgrade your kernel or backport the mpic-timer patches:

https://patchwork.ozlabs.org/project/linuxppc-dev/patch/1365474152-21524-2-git-send-email-dongsheng....

https://lists.ozlabs.org/pipermail/linuxppc-dev/2013-March/104326.html

 

If you choose to backport you may need to check if more patches are required.

0 项奖励
回复

1,352 次查看
ranjithkumarv
Contributor I

@yipingwang


Thanks for your reply.

I have already done the steps given in the links you mentioned but still facing some issue in getting the timer up.


Enabled the MPIC TIMER support in kernel.

While kernel booting i am getting the following message

/soc8641@d0000000/timer@41100: cannot get timer frequency.

/soc8641@d0000000/timer@42100: cannot get timer frequency.


Here i am attaching the dts file of my board and System Bootlog.

Am i missing something?Kindly give some suggestion on this.

Thanks & Regards,

Ranjithkumar

0 项奖励
回复

1,332 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please try to set clock-frequency for mpic a valid value instead of 0.

0 项奖励
回复

1,319 次查看
ranjithkumarv
Contributor I

Hi @yipingwang 

Thanks for your reply.

I modified the clock frequency to a valid value and after that it is not showing the following error at the time of kernel boot.

/soc8641@d0000000/timer@41100: cannot get timer frequency.

/soc8641@d0000000/timer@42100: cannot get timer frequency.

 

Now can you suggest how to access the timer from linux.

Thanks in Advance,

Ranjithkumar.V

0 项奖励
回复

1,312 次查看
yipingwang
NXP TechSupport
NXP TechSupport

There is an example of how to verify MPIC timer in this patch: https://lists.ozlabs.org/pipermail/linuxppc-dev/2013-March/104326.html

0 项奖励
回复