From e0e1e648552212f6a3c1eb3e84125139fa61afbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sun, 3 Jun 2018 06:53:30 +0300 Subject: amdfam10: Drop tests for LATE_CBMEM_INIT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibe16242d98531ff8e8a696f571496c6f46ea964b Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/26809 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/cpu/amd/car/post_cache_as_ram.c | 12 +----------- src/mainboard/asus/kcma-d8/romstage.c | 2 -- src/mainboard/asus/kgpe-d16/romstage.c | 2 -- 3 files changed, 1 insertion(+), 15 deletions(-) (limited to 'src') diff --git a/src/cpu/amd/car/post_cache_as_ram.c b/src/cpu/amd/car/post_cache_as_ram.c index ad93883def..2fb46d286a 100644 --- a/src/cpu/amd/car/post_cache_as_ram.c +++ b/src/cpu/amd/car/post_cache_as_ram.c @@ -136,17 +136,7 @@ asmlinkage void * post_cache_as_ram(void) if ((*lower_stack_boundary) != 0xdeadbeef) printk(BIOS_WARNING, "BSP overran lower stack boundary. Undefined behaviour may result!\n"); - if (IS_ENABLED(CONFIG_EARLY_CBMEM_INIT)) { - s3resume = acpi_is_wakeup_s3(); - } else { - if (IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)) - s3resume = (acpi_get_sleep_type() == ACPI_S3); - /* For normal boot path, boards with LATE_CBMEM_INIT will do - * cbmem_initialize_empty() late in ramstage. - */ - if (s3resume) - cbmem_recovery(s3resume); - } + s3resume = acpi_is_wakeup_s3(); prepare_romstage_ramstack(s3resume); diff --git a/src/mainboard/asus/kcma-d8/romstage.c b/src/mainboard/asus/kcma-d8/romstage.c index a14f7e38d0..02dd671e8d 100644 --- a/src/mainboard/asus/kcma-d8/romstage.c +++ b/src/mainboard/asus/kcma-d8/romstage.c @@ -561,7 +561,6 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) execute_memory_test(); #endif -#if !IS_ENABLED(CONFIG_LATE_CBMEM_INIT) if (s3resume) cbmem_initialize(); else @@ -571,7 +570,6 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) romstage_handoff_init(s3resume); amdmct_cbmem_store_info(sysinfo); -#endif printk(BIOS_DEBUG, "disable_spd()\n"); switch_spd_mux(0x1); diff --git a/src/mainboard/asus/kgpe-d16/romstage.c b/src/mainboard/asus/kgpe-d16/romstage.c index 9f3e7310fb..7f640cd2f7 100644 --- a/src/mainboard/asus/kgpe-d16/romstage.c +++ b/src/mainboard/asus/kgpe-d16/romstage.c @@ -602,7 +602,6 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) execute_memory_test(); #endif -#if !IS_ENABLED(CONFIG_LATE_CBMEM_INIT) if (s3resume) cbmem_initialize(); else @@ -613,7 +612,6 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) post_code(0x41); amdmct_cbmem_store_info(sysinfo); -#endif printk(BIOS_DEBUG, "disable_spd()\n"); switch_spd_mux(0x1); -- cgit v1.2.3