summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/common/block/spi/fch_spi_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/spi/fch_spi_util.c b/src/soc/amd/common/block/spi/fch_spi_util.c
index 7bac99191a..5cef565baf 100644
--- a/src/soc/amd/common/block/spi/fch_spi_util.c
+++ b/src/soc/amd/common/block/spi/fch_spi_util.c
@@ -29,7 +29,7 @@ uint8_t spi_read8(uint8_t reg)
uint16_t spi_read16(uint8_t reg)
{
- return read8((void *)(spi_get_bar() + reg));
+ return read16((void *)(spi_get_bar() + reg));
}
uint32_t spi_read32(uint8_t reg)