1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * [origin: arch/arm/cpu/arm926ejs/at91/cpu.c] 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * (C) Copyright 2011 5*4882a593Smuzhiyun * Andreas Bießmann, andreas@biessmann.org 6*4882a593Smuzhiyun * (C) Copyright 2010 7*4882a593Smuzhiyun * Reinhard Meyer, reinhard.meyer@emk-elektronik.de 8*4882a593Smuzhiyun * (C) Copyright 2009 9*4882a593Smuzhiyun * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 10*4882a593Smuzhiyun * 11*4882a593Smuzhiyun * SPDX-License-Identifier: GPL-2.0+ 12*4882a593Smuzhiyun */ 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun #include <common.h> 15*4882a593Smuzhiyun #include <asm/io.h> 16*4882a593Smuzhiyun #include <asm/arch/hardware.h> 17*4882a593Smuzhiyun #include <asm/arch/clk.h> 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun #ifndef CONFIG_SYS_AT91_MAIN_CLOCK 20*4882a593Smuzhiyun #define CONFIG_SYS_AT91_MAIN_CLOCK 0 21*4882a593Smuzhiyun #endif 22*4882a593Smuzhiyun arch_cpu_init(void)23*4882a593Smuzhiyunint arch_cpu_init(void) 24*4882a593Smuzhiyun { 25*4882a593Smuzhiyun return at91_clock_init(CONFIG_SYS_AT91_MAIN_CLOCK); 26*4882a593Smuzhiyun } 27