Andreas Bießmann | c2a1f0f | 2011-06-12 01:49:12 +0000 | [diff] [blame] | 1 | /* |
| 2 | * [origin: arch/arm/cpu/arm926ejs/at91/cpu.c] |
| 3 | * |
| 4 | * (C) Copyright 2011 |
Andreas Bießmann | 07dafdb | 2016-05-01 03:46:16 +0200 | [diff] [blame] | 5 | * Andreas Bießmann, andreas@biessmann.org |
Andreas Bießmann | c2a1f0f | 2011-06-12 01:49:12 +0000 | [diff] [blame] | 6 | * (C) Copyright 2010 |
| 7 | * Reinhard Meyer, reinhard.meyer@emk-elektronik.de |
| 8 | * (C) Copyright 2009 |
| 9 | * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
| 10 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | * SPDX-License-Identifier: GPL-2.0+ |
Andreas Bießmann | c2a1f0f | 2011-06-12 01:49:12 +0000 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #include <common.h> |
| 15 | #include <asm/io.h> |
| 16 | #include <asm/arch/hardware.h> |
| 17 | #include <asm/arch/clk.h> |
| 18 | |
| 19 | #ifndef CONFIG_SYS_AT91_MAIN_CLOCK |
| 20 | #define CONFIG_SYS_AT91_MAIN_CLOCK 0 |
| 21 | #endif |
| 22 | |
| 23 | int arch_cpu_init(void) |
| 24 | { |
| 25 | return at91_clock_init(CONFIG_SYS_AT91_MAIN_CLOCK); |
| 26 | } |