avr32: Allow board to define oscillator rates

On our custom board we have other oscillator rates than on atngw100 and
atstk100x.

Currently these rates are hardcoded in arch/avr32/mach-at32ap/at32ap700x.c.

This patch moves them into board specific code.

Signed-off-by: Alex Raimondi <[email protected]>
Signed-off-by: Haavard Skinnemoen <[email protected]>
This commit is contained in:
Alex 2008-03-17 14:55:06 +01:00 • committed by Haavard Skinnemoen
commit 60ed7951d0
6 changed files with 34 additions and 8 deletions

View file

@ -8,6 +8,12 @@
#define GPIO_PIN_NONE (-1)
/*
* Clock rates for various on-board oscillators. The number of entries
* in this array is chip-dependent.
*/
extern unsigned long at32_board_osc_rates[];
/* Add basic devices: system manager, interrupt controller, portmuxes, etc. */
void at32_add_system_devices(void);