blob: 9bf03fd68ecc6e8704d3f8899f1de33cd0ded45c [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>
Simon Glass97589732020-05-10 11:40:02 -060014#include <init.h>
Andreas Bießmannc2a1f0f2011-06-12 01:49:12 +000015#include <asm/io.h>
16#include <asm/arch/hardware.h>
17#include <asm/arch/clk.h>
18
Tom Rini6a5dccc2022-11-16 13:10:41 -050019#ifndef CFG_SYS_AT91_MAIN_CLOCK
20#define CFG_SYS_AT91_MAIN_CLOCK 0
Andreas Bießmannc2a1f0f2011-06-12 01:49:12 +000021#endif
22
23int arch_cpu_init(void)
24{
Tom Rini6a5dccc2022-11-16 13:10:41 -050025 return at91_clock_init(CFG_SYS_AT91_MAIN_CLOCK);
Andreas Bießmannc2a1f0f2011-06-12 01:49:12 +000026}