diff options
author | Keith Hui <buurin@gmail.com> | 2020-01-12 19:09:24 -0500 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-01-26 08:15:02 +0000 |
commit | 4444ea54e68e8992a035f3f7c73222292a76878e (patch) | |
tree | 61eb8343bdbeb473d10755ed92443faba48f9d8c | |
parent | 6f28157fca9fa851eccadd8018c89e34fd279b74 (diff) |
intel/i440bx: Use smbus_read_byte() for raminit debug
Build broke with CONFIG_DEBUG_RAM_SETUP enabled after commit 3f882faf
(intel/i440bx,i82371: Remove wrapper spd_read_byte()).
This is the fix.
Change-Id: Ib83885fc50c8fab61ced5ff18f22aa4655c5aaab
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38381
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r-- | src/northbridge/intel/i440bx/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/northbridge/intel/i440bx/debug.c b/src/northbridge/intel/i440bx/debug.c index 7df639b6bd..fe1f9c82b5 100644 --- a/src/northbridge/intel/i440bx/debug.c +++ b/src/northbridge/intel/i440bx/debug.c @@ -14,6 +14,7 @@ #include <console/console.h> #include <device/pci_ops.h> #include <spd.h> +#include <southbridge/intel/i82371eb/i82371eb.h> #include "raminit.h" void dump_spd_registers(void) @@ -32,7 +33,7 @@ void dump_spd_registers(void) if ((j & 0xf) == 0) { printk(BIOS_DEBUG, "\n%02x: ", j); } - status = spd_read_byte(device, j); + status = smbus_read_byte(device, j); if (status < 0) { printk(BIOS_DEBUG, "bad device\n"); break; |