SPI Baud Rate/Clock Speed

matt_Damon
Hello,

Can someone let me know the method to calculate the baud rate for SPI
communication on mini2440?
On pg.508 of the user manual the following equation is provided:

Baud rate = PCLK / 2 / (Prescaler value + 1)

What is the PCLK value? can anyone provide example?

Thanks.

davef
PCLK appears to be some ratio of FCLK, which I am assuming is the main
clock frequency.  Page 7-8 in "S3C2440.pdf", search Google, should provide
the details.

matt_Damon
Hello,

It says that FCLK maximum speed is 400MHZ.   However, how can we determine
its exact value?

Thanks.

Andreas Watterott
Read the cpu datasheet section "Clock and Power Managment".

davef
Check the frequency marked on the (FCLK) crystal.

davef
Sorry, that wasn't too helpful.  The crystal is marked 12MHz on the
schematic, but as Andreas says the manual "S3C2440.pfd" gives details on
the internal PLL that effects the final FCLK.

matt_Damon
Hello Andreas and davef,

I previously read the Clock and Power management section of the manual but
it was confusing for me to get the FCLK value. I will read it again to see
specific details.

Thanks.

davef
Somehow, you have to figure out what multiply ratio the prescalar uses.  I
would look around for a configuration file that sets up the prescalar. 
There is a list of all the drivers in one of the .pdfs on this site.

You might be lucky and find something in there.

ambitious
Hi
could i know how i can use the SPI driver allocated in the
/sys/class/spi_master and /sys/class/spidev

Thanks