sdm845: Select VBOOT_MIGRATE_WORKING_DATA, now required
[coreboot.git] / src / lib / reset.c
blob61163f13a348067266a30458ff73fcd6b98c467d
1 /*
2 * This file is part of the coreboot project.
4 * Copyright 2017 Google, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <arch/cache.h>
17 #include <console/console.h>
18 #include <halt.h>
19 #include <reset.h>
21 __noreturn void board_reset(void)
23 printk(BIOS_INFO, "%s() called!\n", __func__);
24 dcache_clean_all();
25 do_board_reset();
26 halt();
29 #if CONFIG(MISSING_BOARD_RESET)
30 void do_board_reset(void)
32 printk(BIOS_CRIT, "No board_reset implementation, hanging...\n");
34 #endif