summaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2015-01-24 14:13:30 -0600
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2015-01-25 20:32:22 +0100
commit5ec1153200c70138eb7ee9b36f5c1032bf310a22 (patch)
tree9f1d4f3b6de76055558f52b55034be540cda8c98 /src/northbridge
parent6f2caa0ffac653ae7455040429f70f71e9f38ccc (diff)
downloadcoreboot-5ec1153200c70138eb7ee9b36f5c1032bf310a22.tar.xz
northbridge/amd: Add Kconfig options for ECC redirection
Change-Id: I83e7605650b13e82a2e6c2822cbd237b4e473b5d Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: http://review.coreboot.org/8271 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/amd/Kconfig5
-rw-r--r--src/northbridge/amd/amdmct/wrappers/mcti_d.c7
2 files changed, 10 insertions, 2 deletions
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:
/*