From 4f32b64e4f88038347bec1d80ee2af41470d03ca Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Fri, 5 Oct 2018 23:40:21 +0200 Subject: reset: Provide new single-function reset API board_reset() replaces the existing common reset API. There is no common distinction between reset types across platforms, hence, common code could never decide which one to call. Currently only hard_reset() is used by common code. We replace these calls and provide a fall-back to the current hard_reset() implemen- tation. The fall-back will be removed along with hard_reset() after the transition of all boards. Change-Id: I274a8cee9cb38226b5a0bdff6a847c74ef0b3128 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/29047 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Aaron Durbin --- src/device/root_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device/root_device.c') diff --git a/src/device/root_device.c b/src/device/root_device.c index b0b6712ebb..e006bf9137 100644 --- a/src/device/root_device.c +++ b/src/device/root_device.c @@ -147,7 +147,7 @@ static void root_dev_scan_bus(struct device *bus) static void root_dev_reset(struct bus *bus) { printk(BIOS_INFO, "Resetting board...\n"); - hard_reset(); + board_reset(); } #if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES) -- cgit v1.2.3