Re: XIP aware file system

Konstantin Kletschke
2005-02-15T16:50:50Z

You got it!

Finally I considered the OSCR running at 3.6MHz and did

#define xip_elapsed_since(x) (signed)((IMX_TCN(IMX_TIM1_BASE) - (x)) * 28)

i.e. 112/4. And it runs and does xip and I can write to flash.
Im not believing what I see...

Am 2005-02-15 11:38 -0500 schrieb Nicolas Pitre:

> I'm not sure if it is strictly necessary to use ICMR. According to the
> manual quoted above masked interrupts only update ICPR and not ICIP. If
> so the & with ICMR is redundent.

I think it is redundant but I don't know exactly the meaning of
ICMR|ICCR.

> If your time base runs at 32kHz you need:
>
> #define xip_elapsed_since(x) (signed)((IMX_TCN(IMX_TIM1_BASE) - (x)) * 31)

Right. As said, I assumed OSCR runs 3.6MHz and came to * 28, but I
should do 112/3.6.
Thanks for your nice explanation.

> Where do you see that?

ARGH! It was mine!

> Please study carefully xip_udelay() and try to understand _when_ it is

Im trying hard :)

> Look at your xip_elasped_since() implementation.

All right, I did while you calculated the values for me :)

Thanks for your help, Konsti