RTC/I2C problems

kevin morizur kevinmorizur at hotmail.fr
Tue Apr 11 18:20:14 EST 2006

Hi everybody.

I have a problem with my RTC, i work on a MEN A12 board with MPC8245 and 
when my kernel start it takes 8 min to run. I have find the problem but i 
don't know how to solve it. In time.c the function time_init execute the 
following lines :

if (__USE_RTC()) {
    /* 601 processor: dec counts down by 128 every 128ns */
    tb_ticks_per_jiffy = DECREMENTER_COUNT_601;
    /* mulhwu_scale_factor(1000000000, 1000000) is 0x418937 */
    tb_to_us = 0x0x418937;
}  else {
    tb_to_ns_scale = mulhwu(tb_to_us, 1000 << 10);

this is the ppc_md.calibrate_decr() function that takes a lot of time and i 
don't know how to solve the problem. USE_RTC is fixed at 0 for 6xx config 
maybe it must be at 1 ? My RTC run with SMBus (I2C). I work with ELDK 4.0 
and linux 2.6.15.

Thanks in advance.


Tout savoir sur la sécurité de vos enfants sur Internet ! 

More information about the Linuxppc-embedded mailing list