MPC8640 MPIC TIMER Test

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

MPC8640 MPIC TIMER Test

1,000 Views
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 Kudos
5 Replies

976 Views
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 Kudos

958 Views
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 Kudos

938 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos

925 Views
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 Kudos

918 Views
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 Kudos