blob: 891b9f5eb4bf352d1800843e9f8b7784f5278854 [file] [log] [blame]
Angel Pons118a9c72020-04-02 23:48:34 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Julius Werner01f9aa52017-05-18 16:03:26 -07002
3#include <arch/cache.h>
4#include <console/console.h>
5#include <halt.h>
6#include <reset.h>
7
Nico Huber4f32b642018-10-05 23:40:21 +02008__noreturn void board_reset(void)
9{
10 printk(BIOS_INFO, "%s() called!\n", __func__);
11 dcache_clean_all();
12 do_board_reset();
13 halt();
14}
15
Julius Wernercd49cce2019-03-05 16:53:33 -080016#if CONFIG(MISSING_BOARD_RESET)
Nico Huber4f32b642018-10-05 23:40:21 +020017void do_board_reset(void)
18{
19 printk(BIOS_CRIT, "No board_reset implementation, hanging...\n");
20}
Nico Huber4f32b642018-10-05 23:40:21 +020021#endif