summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-05-28 19:42:57 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-06-11 21:48:28 +0000
commitc0fd6e5ea643557254a23a7aa7b7b98f64d18737 (patch)
treebd50fdd2d40b904bac1f97dc75280b40f5f1c16a /src/soc/amd
parentdee3bc34ad3be944390369724a46ecf01398c51a (diff)
soc/amd/cezanne: remove warm reset flag code
The warm reset bit in the NCP_ERR register doesn't behave as the PPR [1] suggested; no matter if something was written to the register, the NCP_WARM_BOOT bit never got set and the NCP_ERR register in I/O-space always reads back as 0x7f. [1] checked with PPR for AMD Family 19h Model 51h A1 (CZN) #56569 Rev 3.01 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I569372db9f36ec7bbc741f4d7312ade312daa70b Reviewed-on: https://review.coreboot.org/c/coreboot/+/55101 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/cezanne/cpu.c2
-rw-r--r--src/soc/amd/cezanne/include/soc/iomap.h1
-rw-r--r--src/soc/amd/cezanne/include/soc/southbridge.h3
-rw-r--r--src/soc/amd/cezanne/reset.c13
4 files changed, 0 insertions, 19 deletions
diff --git a/src/soc/amd/cezanne/cpu.c b/src/soc/amd/cezanne/cpu.c
index f00266552d..ddc49a957c 100644
--- a/src/soc/amd/cezanne/cpu.c
+++ b/src/soc/amd/cezanne/cpu.c
@@ -55,8 +55,6 @@ void mp_init_cpus(struct bus *cpu_bus)
/* pre_mp_init made the flash not cacheable. Reset to WP for performance. */
mtrr_use_temp_range(FLASH_BASE_ADDR, CONFIG_ROM_SIZE, MTRR_TYPE_WRPROT);
-
- set_warm_reset_flag();
}
static void zen_2_3_init(struct device *dev)
diff --git a/src/soc/amd/cezanne/include/soc/iomap.h b/src/soc/amd/cezanne/include/soc/iomap.h
index 4c4252a593..4f01c6431f 100644
--- a/src/soc/amd/cezanne/include/soc/iomap.h
+++ b/src/soc/amd/cezanne/include/soc/iomap.h
@@ -44,7 +44,6 @@
#endif /* ENV_X86 */
/* I/O Ranges */
-#define NCP_ERR 0x00f0
#define ACPI_IO_BASE 0x0400
#define ACPI_PM_EVT_BLK (ACPI_IO_BASE + 0x00)
#define ACPI_PM1_STS (ACPI_PM_EVT_BLK + 0x00)
diff --git a/src/soc/amd/cezanne/include/soc/southbridge.h b/src/soc/amd/cezanne/include/soc/southbridge.h
index e58a8cd2ca..e82f33f9c8 100644
--- a/src/soc/amd/cezanne/include/soc/southbridge.h
+++ b/src/soc/amd/cezanne/include/soc/southbridge.h
@@ -118,9 +118,6 @@
#define FCH_AOAC_DEV_AMBA 17
#define FCH_AOAC_DEV_ESPI 27
-/* IO 0xf0 NCP Error */
-#define NCP_WARM_BOOT (1 << 7) /* Write-once */
-
void fch_pre_init(void);
void fch_early_init(void);
void fch_init(void *chip_info);
diff --git a/src/soc/amd/cezanne/reset.c b/src/soc/amd/cezanne/reset.c
index b05c0b6c47..1360bd53b1 100644
--- a/src/soc/amd/cezanne/reset.c
+++ b/src/soc/amd/cezanne/reset.c
@@ -7,19 +7,6 @@
#include <amdblocks/acpimmio.h>
#include <amdblocks/reset.h>
-/* TODO: is NCP_ERR still valid? It appears reserved and always 0xff. b/184281092 */
-void set_warm_reset_flag(void)
-{
- uint8_t ncp = inb(NCP_ERR);
-
- outb(NCP_ERR, ncp | NCP_WARM_BOOT);
-}
-
-int is_warm_reset(void)
-{
- return !!(inb(NCP_ERR) & NCP_WARM_BOOT);
-}
-
void do_cold_reset(void)
{
/* De-assert and then assert all PwrGood signals on CF9 reset. */