blob: 2b066b2fb8303f927247fd82e7eb91f32af1f7dc [file] [log] [blame]
Angel Pons118a9c72020-04-02 23:48:34 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Julius Werner01f9aa52017-05-18 16:03:26 -07003
4#include <arch/cache.h>
5#include <console/console.h>
6#include <halt.h>
7#include <reset.h>
8
Nico Huber4f32b642018-10-05 23:40:21 +02009__noreturn void board_reset(void)
10{
11 printk(BIOS_INFO, "%s() called!\n", __func__);
12 dcache_clean_all();
13 do_board_reset();
14 halt();
15}
16
Julius Wernercd49cce2019-03-05 16:53:33 -080017#if CONFIG(MISSING_BOARD_RESET)
Nico Huber4f32b642018-10-05 23:40:21 +020018void do_board_reset(void)
19{
20 printk(BIOS_CRIT, "No board_reset implementation, hanging...\n");
21}
Nico Huber4f32b642018-10-05 23:40:21 +020022#endif