From 5ec1153200c70138eb7ee9b36f5c1032bf310a22 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 24 Jan 2015 14:13:30 -0600 Subject: northbridge/amd: Add Kconfig options for ECC redirection Change-Id: I83e7605650b13e82a2e6c2822cbd237b4e473b5d Signed-off-by: Timothy Pearson Reviewed-on: http://review.coreboot.org/8271 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- src/northbridge/amd/Kconfig | 5 +++++ src/northbridge/amd/amdmct/wrappers/mcti_d.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/amd/Kconfig b/src/northbridge/amd/Kconfig index ef8a16a73c..17f15c3b47 100644 --- a/src/northbridge/amd/Kconfig +++ b/src/northbridge/amd/Kconfig @@ -98,6 +98,11 @@ config LIMIT_HT_UP_WIDTH_16 bool "16 bits" endchoice +config AMDMCT_ENABLE_ECC_REDIR + bool + depends on CPU_AMD_MODEL_10XXX + default n + config AMDMCT_BACKGROUND_SCRUB_RATE hex depends on CPU_AMD_MODEL_10XXX diff --git a/src/northbridge/amd/amdmct/wrappers/mcti_d.c b/src/northbridge/amd/amdmct/wrappers/mcti_d.c index 96cef4e206..3615676d1b 100644 --- a/src/northbridge/amd/amdmct/wrappers/mcti_d.c +++ b/src/northbridge/amd/amdmct/wrappers/mcti_d.c @@ -167,8 +167,11 @@ static u16 mctGet_NVbits(u8 index) #endif break; case NV_ECCRedir: - val = 0; /* Disable */ - //val = 1; /* Enable */ + /* + * 0: Disable + * 1: Enable + */ + val = CONFIG_AMDMCT_ENABLE_ECC_REDIR; break; case NV_DramBKScrub: /* -- cgit v1.2.3