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