mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 08:58:52 +09:00
![Jean-Christophe PLAGNIOL-VILLARD](/assets/img/avatar_default.png)
calculate dynamically the clock rate and pllb setting for usb Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 lines
268 B
C
15 lines
268 B
C
#include <config.h>
|
|
#include <asm/arch/hardware.h>
|
|
#include <asm/arch/at91_pmc.h>
|
|
#include <asm/arch/clk.h>
|
|
#include <asm/arch/io.h>
|
|
|
|
int arch_cpu_init(void)
|
|
{
|
|
#ifdef AT91_MAIN_CLOCK
|
|
return at91_clock_init(AT91_MAIN_CLOCK);
|
|
#else
|
|
return at91_clock_init(0);
|
|
#endif
|
|
}
|