at91: add chip register definition and generic init support
[openocd/openocdswd.git] / tcl / chip / atmel / at91 / pmc.tcl
blob584acb80bdf2e34360301ca4a7ec7d1deca659c7
2 if [info exists AT91C_MAINOSC_FREQ] {
3 # user set this... let it be.
4 } {
5 # 18.432mhz is a common thing...
6 set AT91C_MAINOSC_FREQ 18432000
8 global AT91C_MAINOSC_FREQ
10 if [info exists AT91C_SLOWOSC_FREQ] {
11 # user set this... let it be.
12 } {
13 # 32khz is the norm
14 set AT91C_SLOWOSC_FREQ 32768
16 global AT91C_SLOWOSC_FREQ