summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/amd/stoneyridge/spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/amd/stoneyridge/spi.c b/src/soc/amd/stoneyridge/spi.c
index cf8157cc42..311cd37483 100644
--- a/src/soc/amd/stoneyridge/spi.c
+++ b/src/soc/amd/stoneyridge/spi.c
@@ -34,12 +34,12 @@ static uintptr_t spibar CAR_GLOBAL;
static uintptr_t get_spibase(void)
{
- return *(uintptr_t *)car_get_var_ptr(&spibar);
+ return car_get_var(spibar);
}
static void set_spibar(uintptr_t base)
{
- *(uintptr_t *)car_get_var_ptr(&spibar) = base;
+ car_set_var(spibar, base);
}
static inline uint8_t spi_read8(uint8_t reg)