summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee/romstage.c
diff options
context:
space:
mode:
authorMarc Jones <marcj303@gmail.com>2017-11-16 18:53:47 -0700
committerMarc Jones <marc@marcjonesconsulting.com>2017-11-29 22:36:49 +0000
commitfede56bf811972cd16e5b36c39c819b88fa74941 (patch)
tree9960a12050a0fde834ff3fdce0844b85e337c711 /src/mainboard/google/kahlee/romstage.c
parent71f7f0a8f82ffb6273f2f6589bee42b9916bcc35 (diff)
downloadcoreboot-fede56bf811972cd16e5b36c39c819b88fa74941.tar.xz
google/kahlee: Add SPD function
Add the mainboard_spd_read function in romstage and call the variants function. Grunt is the baseboard and has soldered down memory, so add it for the default weak SPD functions and build the SPDs in cbfs. Kahlee overrides the weak SPD function and falls back to the soc I2C SPD functions. BUG=b:67845441 TEST=Build and boot Kahlee. Change-Id: I789002bfadc1a2b24f9046708986d29c0e2daf33 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/22486 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/mainboard/google/kahlee/romstage.c')
-rw-r--r--src/mainboard/google/kahlee/romstage.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mainboard/google/kahlee/romstage.c b/src/mainboard/google/kahlee/romstage.c
index 9a7f168f25..8f234a31bf 100644
--- a/src/mainboard/google/kahlee/romstage.c
+++ b/src/mainboard/google/kahlee/romstage.c
@@ -1,7 +1,7 @@
/*
* This file is part of the coreboot project.
*
- * Copyright (C) 2015-2016 Advanced Micro Devices, Inc.
+ * Copyright (C) 2017 Advanced Micro Devices, 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
@@ -12,3 +12,11 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+
+#include <amdblocks/dimm_spd.h>
+#include <baseboard/variants.h>
+
+int mainboard_read_spd(uint8_t spdAddress, char *buf, size_t len)
+{
+ return variant_mainboard_read_spd(spdAddress, buf, len);
+}