2012-11-02 09:17:16 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012 Alexander Shiyan <shc_work@mail.ru>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <init.h>
|
|
|
|
|
|
|
|
#include <asm/barebox-arm-head.h>
|
|
|
|
|
|
|
|
#include <mach/clps711x.h>
|
|
|
|
|
2013-03-11 09:26:33 +00:00
|
|
|
#ifdef CONFIG_CLPS711X_RAISE_CPUFREQ
|
|
|
|
# define CLPS711X_CPU_PLL_MULT 50
|
|
|
|
#else
|
|
|
|
# define CLPS711X_CPU_PLL_MULT 40
|
2013-02-13 11:41:38 +00:00
|
|
|
#endif
|
|
|
|
|
2013-02-05 13:45:26 +00:00
|
|
|
void __naked __bare_init barebox_arm_reset_vector(void)
|
2012-11-02 09:17:16 +00:00
|
|
|
{
|
2013-02-05 13:45:26 +00:00
|
|
|
arm_cpu_lowlevel_init();
|
2012-11-02 09:17:16 +00:00
|
|
|
|
2014-06-05 13:43:38 +00:00
|
|
|
clps711x_barebox_entry(CLPS711X_CPU_PLL_MULT, NULL);
|
2012-11-02 09:17:16 +00:00
|
|
|
}
|