blob: 42d0d2269f5cba7b318354d21929f56e4d74af0a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Andreas Bießmannc2a1f0f2011-06-12 01:49:12 +00002/*
3 * [origin: arch/arm/cpu/arm926ejs/at91/cpu.c]
4 *
5 * (C) Copyright 2011
Andreas Bießmann07dafdb2016-05-01 03:46:16 +02006 * Andreas Bießmann, andreas@biessmann.org
Andreas Bießmannc2a1f0f2011-06-12 01:49:12 +00007 * (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ßmannc2a1f0f2011-06-12 01:49:12 +000011 */
12
13#include <common.h>
14#include <asm/io.h>
15#include <asm/arch/hardware.h>
16#include <asm/arch/clk.h>
17
18#ifndef CONFIG_SYS_AT91_MAIN_CLOCK
19#define CONFIG_SYS_AT91_MAIN_CLOCK 0
20#endif
21
22int arch_cpu_init(void)
23{
24 return at91_clock_init(CONFIG_SYS_AT91_MAIN_CLOCK);
25}