diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-04-16 21:30:44 +0200 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-04-16 21:30:44 +0200 |
commit | dc39ae9513c32dfeb9e018dc0d22c6484514fefb (patch) | |
tree | 136c61b2c9731ddf51ef3e222bbf1e44781c5175 /cpu/arm926ejs/at91/cpu.c | |
parent | f75a729b5c1434d5a5bbf453b1b699bf1c3ffbce (diff) | |
download | u-boot-imx-dc39ae9513c32dfeb9e018dc0d22c6484514fefb.zip u-boot-imx-dc39ae9513c32dfeb9e018dc0d22c6484514fefb.tar.gz u-boot-imx-dc39ae9513c32dfeb9e018dc0d22c6484514fefb.tar.bz2 |
at91sam9/at91cap: improve clock framework
calculate dynamically the clock rate and pllb setting for usb
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/arm926ejs/at91/cpu.c')
-rw-r--r-- | cpu/arm926ejs/at91/cpu.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpu/arm926ejs/at91/cpu.c b/cpu/arm926ejs/at91/cpu.c new file mode 100644 index 0000000..a9705cf --- /dev/null +++ b/cpu/arm926ejs/at91/cpu.c @@ -0,0 +1,14 @@ +#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 +} |