xref: /openbmc/u-boot/arch/arm/mach-at91/arm920t/cpu.c (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0+
262011840SMasahiro Yamada /*
362011840SMasahiro Yamada  * [origin: arch/arm/cpu/arm926ejs/at91/cpu.c]
462011840SMasahiro Yamada  *
562011840SMasahiro Yamada  * (C) Copyright 2011
609c2b8f3SAndreas Bießmann  * Andreas Bießmann, andreas@biessmann.org
762011840SMasahiro Yamada  * (C) Copyright 2010
862011840SMasahiro Yamada  * Reinhard Meyer, reinhard.meyer@emk-elektronik.de
962011840SMasahiro Yamada  * (C) Copyright 2009
1062011840SMasahiro Yamada  * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
1162011840SMasahiro Yamada  */
1262011840SMasahiro Yamada 
1362011840SMasahiro Yamada #include <common.h>
1462011840SMasahiro Yamada #include <asm/io.h>
1562011840SMasahiro Yamada #include <asm/arch/hardware.h>
1662011840SMasahiro Yamada #include <asm/arch/clk.h>
1762011840SMasahiro Yamada 
1862011840SMasahiro Yamada #ifndef CONFIG_SYS_AT91_MAIN_CLOCK
1962011840SMasahiro Yamada #define CONFIG_SYS_AT91_MAIN_CLOCK 0
2062011840SMasahiro Yamada #endif
2162011840SMasahiro Yamada 
arch_cpu_init(void)2262011840SMasahiro Yamada int arch_cpu_init(void)
2362011840SMasahiro Yamada {
2462011840SMasahiro Yamada 	return at91_clock_init(CONFIG_SYS_AT91_MAIN_CLOCK);
2562011840SMasahiro Yamada }
26