2011-01-24 06:22:23 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2010 Samsung Electronics.
|
|
|
|
* Minkyu Kang <mk7.kang@samsung.com>
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2011-01-24 06:22:23 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <asm/io.h>
|
2012-11-29 20:29:35 +00:00
|
|
|
#include <asm/system.h>
|
|
|
|
|
2011-01-24 06:22:23 +00:00
|
|
|
void reset_cpu(ulong addr)
|
|
|
|
{
|
2016-04-23 16:48:12 +00:00
|
|
|
#ifdef CONFIG_CPU_V7
|
2011-01-24 06:22:23 +00:00
|
|
|
writel(0x1, samsung_get_base_swreset());
|
2016-04-23 16:48:12 +00:00
|
|
|
#endif
|
2011-01-24 06:22:23 +00:00
|
|
|
}
|
2012-08-07 03:24:03 +00:00
|
|
|
|
|
|
|
#ifndef CONFIG_SYS_DCACHE_OFF
|
|
|
|
void enable_caches(void)
|
|
|
|
{
|
|
|
|
/* Enable D-cache. I-cache is already enabled in start.S */
|
|
|
|
dcache_enable();
|
|
|
|
}
|
|
|
|
#endif
|
2016-04-23 16:48:13 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_ARM64
|
|
|
|
void lowlevel_init(void)
|
|
|
|
{
|
|
|
|
armv8_switch_to_el2();
|
|
|
|
armv8_switch_to_el1();
|
|
|
|
}
|
|
|
|
#endif
|