defining the main clock frequency of AT91 boards

Björn König bkoenig at alpha-tierchen.de
Sat Mar 15 00:15:55 UTC 2008


Hello,

I would like to have a preprocessor definition called AT91C_MAIN_CLOCK
that allows you to specify the main clock frequency of a board in the
kernel configuration file. It avoids an intricate distinction of cases in
at91_pmc.c:395ff and you can use the unpatched source code with boards
that have a different quartz frequency than 10 or 16 MHz.

I attached a patch that deals with this issue. Users of TSC boards need to
add 'options AT91C_MAIN_CLOCK=16000000' to their kernel configuration
file.

Regards
Björn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AT91C_MAIN_CLOCK.diff
Type: application/octet-stream
Size: 1656 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20080315/578e20b4/AT91C_MAIN_CLOCK.obj


More information about the freebsd-arm mailing list