diff options
author | Nico Huber <nico.h@gmx.de> | 2018-10-11 22:54:25 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-10-31 15:29:42 +0000 |
commit | 718c6faff4acf7a7716a1747fbfecdac462ef2c9 (patch) | |
tree | 7519bc51b016761d4c068a9e71ab908d5e32a011 /src | |
parent | 30cf14ff3fdd9fbbaa3ffb841359c2ee1a0bfcad (diff) | |
download | coreboot-718c6faff4acf7a7716a1747fbfecdac462ef2c9.tar.gz coreboot-718c6faff4acf7a7716a1747fbfecdac462ef2c9.tar.bz2 coreboot-718c6faff4acf7a7716a1747fbfecdac462ef2c9.zip |
reset: Finalize move to new API
Move soft_reset() to `southbridge/amd/common/` it's only used for
amdfam10 now.
Drop hard_reset() for good.
Change-Id: Ifdc5791160653c5578007f6c1b96015efe2b3e1e
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/29059
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src')
37 files changed, 69 insertions, 61 deletions
diff --git a/src/Kconfig b/src/Kconfig index 2777d266d8e6..0b97125c4531 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -449,13 +449,6 @@ config RESUME_PATH_SAME_AS_BOOT same path as a regular boot. e.g. an x86 system runs from the reset vector at 0xfffffff0 on both resume and warm/cold boot. -config HAVE_HARD_RESET - bool - default n - help - This variable specifies whether a given board has a hard_reset - function, no matter if it's provided by board code or chipset code. - config HAVE_ROMSTAGE_CONSOLE_SPINLOCK bool depends on EARLY_CBMEM_INIT diff --git a/src/cpu/amd/family_10h-family_15h/init_cpus.c b/src/cpu/amd/family_10h-family_15h/init_cpus.c index 1247e6028339..2ddbc43ee6dc 100644 --- a/src/cpu/amd/family_10h-family_15h/init_cpus.c +++ b/src/cpu/amd/family_10h-family_15h/init_cpus.c @@ -27,6 +27,8 @@ #include <northbridge/amd/amdht/porting.h> #include <northbridge/amd/amdht/h3ncmn.h> +#include <southbridge/amd/common/reset.h> + #if IS_ENABLED(CONFIG_SOUTHBRIDGE_AMD_SB700) #include <southbridge/amd/sb700/sb700.h> #endif diff --git a/src/include/reset.h b/src/include/reset.h index 3eec193c849d..5b5e1d30cce6 100644 --- a/src/include/reset.h +++ b/src/include/reset.h @@ -39,14 +39,4 @@ __noreturn void board_reset(void); */ void do_board_reset(void); -/* Full board reset. Resets SoC and most/all board components (e.g. DRAM). */ -__noreturn void hard_reset(void); -/* Board reset. Resets SoC some board components (e.g. TPM but not DRAM). */ -__noreturn void soft_reset(void); - -/* Reset implementations. Implement these in SoC or mainboard code. Implement - at least hard_reset() if possible, others fall back to it if necessary. */ -void do_hard_reset(void); -void do_soft_reset(void); - #endif diff --git a/src/lib/reset.c b/src/lib/reset.c index 4b19e1e7e623..904776e91bd3 100644 --- a/src/lib/reset.c +++ b/src/lib/reset.c @@ -31,39 +31,4 @@ void do_board_reset(void) { printk(BIOS_CRIT, "No board_reset implementation, hanging...\n"); } -#else -/* - * Fall back to hard_reset() for a regression free transition. - * FIXME: Remove after everything is converted to board_reset(). - */ -__weak void do_board_reset(void) -{ - hard_reset(); -} #endif - -__noreturn static void __hard_reset(void) { - if (IS_ENABLED(CONFIG_HAVE_HARD_RESET)) - do_hard_reset(); - else - printk(BIOS_CRIT, "No hard_reset implementation, hanging...\n"); - halt(); -} - -/* Not all platforms implement all reset types. Fall back to hard_reset. */ -__weak void do_soft_reset(void) { __hard_reset(); } - -void hard_reset(void) -{ - printk(BIOS_INFO, "%s() called!\n", __func__); - dcache_clean_all(); - __hard_reset(); -} - -void soft_reset(void) -{ - printk(BIOS_INFO, "%s() called!\n", __func__); - dcache_clean_all(); - do_soft_reset(); - halt(); -} diff --git a/src/mainboard/advansus/a785e-i/romstage.c b/src/mainboard/advansus/a785e-i/romstage.c index 2a0a1d98a33b..281a59aa9914 100644 --- a/src/mainboard/advansus/a785e-i/romstage.c +++ b/src/mainboard/advansus/a785e-i/romstage.c @@ -40,6 +40,7 @@ #include <northbridge/amd/amdfam10/raminit.h> #include <northbridge/amd/amdht/ht_wrapper.h> #include <cpu/amd/family_10h-family_15h/init_cpus.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb800/smbus.h> #include <southbridge/amd/sb800/sb800.h> #include <southbridge/amd/rs780/rs780.h> @@ -50,7 +51,6 @@ #include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" #include "spd.h" -#include <reset.h> #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1) diff --git a/src/mainboard/amd/bimini_fam10/romstage.c b/src/mainboard/amd/bimini_fam10/romstage.c index f6bb70fe2c3f..51bc5d577b55 100644 --- a/src/mainboard/amd/bimini_fam10/romstage.c +++ b/src/mainboard/amd/bimini_fam10/romstage.c @@ -36,6 +36,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb800/smbus.h> #include <northbridge/amd/amdfam10/raminit.h> #include <northbridge/amd/amdht/ht_wrapper.h> diff --git a/src/mainboard/amd/mahogany_fam10/romstage.c b/src/mainboard/amd/mahogany_fam10/romstage.c index 4a244eb37620..e9f31112ff8a 100644 --- a/src/mainboard/amd/mahogany_fam10/romstage.c +++ b/src/mainboard/amd/mahogany_fam10/romstage.c @@ -40,6 +40,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <northbridge/amd/amdfam10/raminit.h> diff --git a/src/mainboard/amd/tilapia_fam10/romstage.c b/src/mainboard/amd/tilapia_fam10/romstage.c index 0e60fc5c75a3..fbb9238a7253 100644 --- a/src/mainboard/amd/tilapia_fam10/romstage.c +++ b/src/mainboard/amd/tilapia_fam10/romstage.c @@ -38,6 +38,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <northbridge/amd/amdfam10/raminit.h> diff --git a/src/mainboard/asus/kcma-d8/romstage.c b/src/mainboard/asus/kcma-d8/romstage.c index cda416981f77..ec76c45f6acf 100644 --- a/src/mainboard/asus/kcma-d8/romstage.c +++ b/src/mainboard/asus/kcma-d8/romstage.c @@ -19,7 +19,6 @@ #include <stdint.h> #include <string.h> -#include <reset.h> #include <device/pci_def.h> #include <device/pci_ids.h> #include <arch/io.h> @@ -39,6 +38,7 @@ #include <smp/spinlock.h> #include <cpu/amd/car.h> #include <cpu/amd/msr.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <southbridge/amd/sr5650/sr5650.h> diff --git a/src/mainboard/asus/kfsn4-dre/romstage.c b/src/mainboard/asus/kfsn4-dre/romstage.c index a6fd8b229133..604527469262 100644 --- a/src/mainboard/asus/kfsn4-dre/romstage.c +++ b/src/mainboard/asus/kfsn4-dre/romstage.c @@ -22,7 +22,6 @@ #include <stdint.h> #include <string.h> -#include <reset.h> #include <device/pci_def.h> #include <device/pci_ids.h> #include <arch/io.h> @@ -36,6 +35,7 @@ #include <cpu/amd/model_10xxx_rev.h> #include <cpu/amd/car.h> #include <cpu/amd/msr.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/nvidia/ck804/early_smbus.h> #include <delay.h> #include <cpu/x86/lapic.h> diff --git a/src/mainboard/asus/kgpe-d16/romstage.c b/src/mainboard/asus/kgpe-d16/romstage.c index cb4a1ec90404..9b72a79cfa00 100644 --- a/src/mainboard/asus/kgpe-d16/romstage.c +++ b/src/mainboard/asus/kgpe-d16/romstage.c @@ -19,7 +19,6 @@ #include <stdint.h> #include <string.h> -#include <reset.h> #include <device/pci_def.h> #include <device/pci_ids.h> #include <arch/io.h> @@ -39,6 +38,7 @@ #include <cpu/amd/car.h> #include <cpu/amd/msr.h> #include <smp/spinlock.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <southbridge/amd/sr5650/sr5650.h> diff --git a/src/mainboard/asus/m4a78-em/romstage.c b/src/mainboard/asus/m4a78-em/romstage.c index 4320525db4c8..41845864f857 100644 --- a/src/mainboard/asus/m4a78-em/romstage.c +++ b/src/mainboard/asus/m4a78-em/romstage.c @@ -39,6 +39,7 @@ #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> #include <cpu/amd/msr.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <northbridge/amd/amdfam10/raminit.h> diff --git a/src/mainboard/asus/m4a785-m/romstage.c b/src/mainboard/asus/m4a785-m/romstage.c index 44d8d51c008b..d7538c8eefc9 100644 --- a/src/mainboard/asus/m4a785-m/romstage.c +++ b/src/mainboard/asus/m4a785-m/romstage.c @@ -40,6 +40,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <northbridge/amd/amdfam10/raminit.h> diff --git a/src/mainboard/asus/m5a88-v/romstage.c b/src/mainboard/asus/m5a88-v/romstage.c index 56e15418c7bd..512c08e34f4b 100644 --- a/src/mainboard/asus/m5a88-v/romstage.c +++ b/src/mainboard/asus/m5a88-v/romstage.c @@ -39,6 +39,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb800/smbus.h> #include <northbridge/amd/amdfam10/raminit.h> #include <northbridge/amd/amdht/ht_wrapper.h> @@ -48,7 +49,6 @@ #include <southbridge/amd/rs780/rs780.h> #include "southbridge/amd/sb800/early_setup.c" #include "spd.h" -#include <reset.h> #include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" diff --git a/src/mainboard/avalue/eax-785e/romstage.c b/src/mainboard/avalue/eax-785e/romstage.c index e9e865e28fe4..49352ca734d8 100644 --- a/src/mainboard/avalue/eax-785e/romstage.c +++ b/src/mainboard/avalue/eax-785e/romstage.c @@ -37,6 +37,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb800/smbus.h> #include <northbridge/amd/amdfam10/raminit.h> #include <northbridge/amd/amdht/ht_wrapper.h> @@ -44,7 +45,6 @@ #include <arch/early_variables.h> #include <cbmem.h> #include "spd.h" -#include <reset.h> #include <southbridge/amd/rs780/rs780.h> #include <southbridge/amd/sb800/early_setup.c> diff --git a/src/mainboard/gigabyte/ma785gm/romstage.c b/src/mainboard/gigabyte/ma785gm/romstage.c index 7b30452349bc..87bfaba5fddb 100644 --- a/src/mainboard/gigabyte/ma785gm/romstage.c +++ b/src/mainboard/gigabyte/ma785gm/romstage.c @@ -36,6 +36,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <northbridge/amd/amdfam10/raminit.h> diff --git a/src/mainboard/gigabyte/ma785gmt/romstage.c b/src/mainboard/gigabyte/ma785gmt/romstage.c index fef31f74b57c..0b9e07dab040 100644 --- a/src/mainboard/gigabyte/ma785gmt/romstage.c +++ b/src/mainboard/gigabyte/ma785gmt/romstage.c @@ -36,6 +36,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <northbridge/amd/amdfam10/raminit.h> diff --git a/src/mainboard/gigabyte/ma78gm/romstage.c b/src/mainboard/gigabyte/ma78gm/romstage.c index c09b170a2b2a..8dbdfb07c865 100644 --- a/src/mainboard/gigabyte/ma78gm/romstage.c +++ b/src/mainboard/gigabyte/ma78gm/romstage.c @@ -39,6 +39,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <spd.h> diff --git a/src/mainboard/hp/dl165_g6_fam10/romstage.c b/src/mainboard/hp/dl165_g6_fam10/romstage.c index 6e65be23e9d2..5af01c176f47 100644 --- a/src/mainboard/hp/dl165_g6_fam10/romstage.c +++ b/src/mainboard/hp/dl165_g6_fam10/romstage.c @@ -49,6 +49,7 @@ #include <cpu/amd/family_10h-family_15h/init_cpus.h> #include <arch/early_variables.h> #include <cbmem.h> +#include <southbridge/amd/common/reset.h> #include "southbridge/broadcom/bcm5785/early_smbus.c" #include "southbridge/broadcom/bcm5785/early_setup.c" diff --git a/src/mainboard/iei/kino-780am2-fam10/romstage.c b/src/mainboard/iei/kino-780am2-fam10/romstage.c index b4612eed5ece..815cf34d92b1 100644 --- a/src/mainboard/iei/kino-780am2-fam10/romstage.c +++ b/src/mainboard/iei/kino-780am2-fam10/romstage.c @@ -39,6 +39,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <spd.h> diff --git a/src/mainboard/jetway/pa78vm5/romstage.c b/src/mainboard/jetway/pa78vm5/romstage.c index 28c3a5dea424..440d703ea57c 100644 --- a/src/mainboard/jetway/pa78vm5/romstage.c +++ b/src/mainboard/jetway/pa78vm5/romstage.c @@ -40,6 +40,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <spd.h> diff --git a/src/mainboard/msi/ms9652_fam10/romstage.c b/src/mainboard/msi/ms9652_fam10/romstage.c index 4555bf94c102..3d22439533f5 100644 --- a/src/mainboard/msi/ms9652_fam10/romstage.c +++ b/src/mainboard/msi/ms9652_fam10/romstage.c @@ -42,6 +42,7 @@ #include <cpu/amd/family_10h-family_15h/init_cpus.h> #include <arch/early_variables.h> #include <cbmem.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/nvidia/mcp55/mcp55.h> #include "resourcemap.c" diff --git a/src/mainboard/supermicro/h8dmr_fam10/romstage.c b/src/mainboard/supermicro/h8dmr_fam10/romstage.c index 3e58848e6195..3fb3ca09a023 100644 --- a/src/mainboard/supermicro/h8dmr_fam10/romstage.c +++ b/src/mainboard/supermicro/h8dmr_fam10/romstage.c @@ -37,6 +37,7 @@ #include <cpu/x86/bist.h> #include <cpu/amd/car.h> #include <cpu/amd/msr.h> +#include <southbridge/amd/common/reset.h> #include <northbridge/amd/amdfam10/raminit.h> #include <northbridge/amd/amdht/ht_wrapper.h> #include <cpu/amd/family_10h-family_15h/init_cpus.h> diff --git a/src/mainboard/supermicro/h8qme_fam10/romstage.c b/src/mainboard/supermicro/h8qme_fam10/romstage.c index e51cf19ce273..5ea0f645714e 100644 --- a/src/mainboard/supermicro/h8qme_fam10/romstage.c +++ b/src/mainboard/supermicro/h8qme_fam10/romstage.c @@ -37,6 +37,7 @@ #include <cpu/x86/bist.h> #include <cpu/amd/car.h> #include <cpu/amd/msr.h> +#include <southbridge/amd/common/reset.h> #include <northbridge/amd/amdfam10/raminit.h> #include <northbridge/amd/amdht/ht_wrapper.h> #include <cpu/amd/family_10h-family_15h/init_cpus.h> diff --git a/src/mainboard/supermicro/h8scm_fam10/romstage.c b/src/mainboard/supermicro/h8scm_fam10/romstage.c index 045adaeff92e..11da86ed68d7 100644 --- a/src/mainboard/supermicro/h8scm_fam10/romstage.c +++ b/src/mainboard/supermicro/h8scm_fam10/romstage.c @@ -37,6 +37,7 @@ #include <cpu/amd/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/car.h> +#include <southbridge/amd/common/reset.h> #include <southbridge/amd/sb700/sb700.h> #include <southbridge/amd/sb700/smbus.h> #include <southbridge/amd/sr5650/sr5650.h> diff --git a/src/mainboard/tyan/s2912_fam10/romstage.c b/src/mainboard/tyan/s2912_fam10/romstage.c index 2d302f12d856..99d58f8d06d1 100644 --- a/src/mainboard/tyan/s2912_fam10/romstage.c +++ b/src/mainboard/tyan/s2912_fam10/romstage.c @@ -37,6 +37,7 @@ #include <superio/winbond/common/winbond.h> #include <superio/winbond/w83627hf/w83627hf.h> #include <cpu/x86/bist.h> +#include <southbridge/amd/common/reset.h> #include <northbridge/amd/amdfam10/raminit.h> #include <northbridge/amd/amdht/ht_wrapper.h> #include <cpu/amd/family_10h-family_15h/init_cpus.h> diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mct_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mct_d.c index 27aaf1a54ecd..18f96c62a6db 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mct_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mct_d.c @@ -36,7 +36,7 @@ #include <northbridge/amd/amdfam10/debug.h> #include <northbridge/amd/amdfam10/raminit.h> #include <northbridge/amd/amdfam10/amdfam10.h> -#include <reset.h> +#include <southbridge/amd/common/reset.h> #include <cpu/x86/msr.h> #include <cpu/amd/msr.h> #include <arch/acpi.h> diff --git a/src/security/vboot/Kconfig b/src/security/vboot/Kconfig index af7578e630a2..77483d1a434a 100644 --- a/src/security/vboot/Kconfig +++ b/src/security/vboot/Kconfig @@ -18,7 +18,7 @@ config VBOOT bool "Verify firmware with vboot." default n select VBOOT_MOCK_SECDATA if !TPM1 && !TPM2 - depends on HAVE_HARD_RESET || !MISSING_BOARD_RESET + depends on !MISSING_BOARD_RESET help Enabling VBOOT will use vboot to verify the components of the firmware (stages, payload, etc). diff --git a/src/southbridge/amd/amd8111/early_ctrl.c b/src/southbridge/amd/amd8111/early_ctrl.c index d04646cf851a..ce29bf1e7769 100644 --- a/src/southbridge/amd/amd8111/early_ctrl.c +++ b/src/southbridge/amd/amd8111/early_ctrl.c @@ -15,6 +15,7 @@ #include "amd8111.h" #include <reset.h> +#include <southbridge/amd/common/reset.h> unsigned get_sbdn(unsigned bus) { diff --git a/src/southbridge/amd/common/reset.h b/src/southbridge/amd/common/reset.h new file mode 100644 index 000000000000..ce101cb2dc72 --- /dev/null +++ b/src/southbridge/amd/common/reset.h @@ -0,0 +1,35 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2017 Google, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef _AMD_SB_RESET_H_ +#define _AMD_SB_RESET_H_ + +#include <arch/cache.h> +#include <console/console.h> +#include <halt.h> + +/* Implement the bare reset, e.g. write to cf9. */ +void do_soft_reset(void); + +/* Prepare for reset, run do_soft_reset(), halt. */ +static inline __noreturn void soft_reset(void) +{ + printk(BIOS_INFO, "%s() called!\n", __func__); + dcache_clean_all(); + do_soft_reset(); + halt(); +} + +#endif /* _AMD_SB_RESET_H_ */ diff --git a/src/southbridge/amd/sb700/reset.c b/src/southbridge/amd/sb700/reset.c index f5f7a2c2f3c0..4c9b0f40567b 100644 --- a/src/southbridge/amd/sb700/reset.c +++ b/src/southbridge/amd/sb700/reset.c @@ -18,6 +18,7 @@ #include <arch/io.h> #include <reset.h> +#include <southbridge/amd/common/reset.h> #define HT_INIT_CONTROL 0x6C #define HTIC_BIOSR_Detect (1<<5) diff --git a/src/southbridge/amd/sb800/early_setup.c b/src/southbridge/amd/sb800/early_setup.c index 2ace9926c768..6835d993c4da 100644 --- a/src/southbridge/amd/sb800/early_setup.c +++ b/src/southbridge/amd/sb800/early_setup.c @@ -19,6 +19,7 @@ #include <reset.h> #include <arch/cpu.h> #include <southbridge/amd/common/amd_defs.h> +#include <southbridge/amd/common/reset.h> #include "sb800.h" #include "smbus.c" diff --git a/src/southbridge/amd/sr5650/early_setup.c b/src/southbridge/amd/sr5650/early_setup.c index 543cb0efbf54..8b6f22a79373 100644 --- a/src/southbridge/amd/sr5650/early_setup.c +++ b/src/southbridge/amd/sr5650/early_setup.c @@ -22,7 +22,7 @@ #include <cpu/x86/msr.h> #include <cpu/amd/msr.h> #include <option.h> -#include <reset.h> +#include <southbridge/amd/common/reset.h> #include "sr5650.h" #include "cmn.h" diff --git a/src/southbridge/broadcom/bcm5785/early_setup.c b/src/southbridge/broadcom/bcm5785/early_setup.c index c2aa9bcb47e8..df7217c79b09 100644 --- a/src/southbridge/broadcom/bcm5785/early_setup.c +++ b/src/southbridge/broadcom/bcm5785/early_setup.c @@ -15,6 +15,7 @@ */ #include <reset.h> +#include <southbridge/amd/common/reset.h> #include "bcm5785.h" static void bcm5785_enable_lpc(void) diff --git a/src/southbridge/nvidia/ck804/early_setup.c b/src/southbridge/nvidia/ck804/early_setup.c index 180f41a5fae0..f2121f0e26a3 100644 --- a/src/southbridge/nvidia/ck804/early_setup.c +++ b/src/southbridge/nvidia/ck804/early_setup.c @@ -15,6 +15,7 @@ */ #include <reset.h> +#include <southbridge/amd/common/reset.h> #include "ck804.h" static int set_ht_link_ck804(u8 ht_c_num) diff --git a/src/southbridge/nvidia/ck804/early_setup_car.c b/src/southbridge/nvidia/ck804/early_setup_car.c index fbc271931016..266b97cfe602 100644 --- a/src/southbridge/nvidia/ck804/early_setup_car.c +++ b/src/southbridge/nvidia/ck804/early_setup_car.c @@ -16,6 +16,7 @@ * GNU General Public License for more details. */ +#include <southbridge/amd/common/reset.h> #include "ck804.h" /* Someone messed up and snuck in some K8-specific code */ diff --git a/src/southbridge/nvidia/mcp55/early_ctrl.c b/src/southbridge/nvidia/mcp55/early_ctrl.c index 66ceae29e067..c14224963e10 100644 --- a/src/southbridge/nvidia/mcp55/early_ctrl.c +++ b/src/southbridge/nvidia/mcp55/early_ctrl.c @@ -19,6 +19,7 @@ #include <console/console.h> #include <reset.h> #include <northbridge/amd/amdfam10/amdfam10.h> +#include <southbridge/amd/common/reset.h> #include "mcp55.h" void do_soft_reset(void) |