summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/amd/picasso/acp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/amd/picasso/acp.c b/src/soc/amd/picasso/acp.c
index 69982f5dc6..822c48a119 100644
--- a/src/soc/amd/picasso/acp.c
+++ b/src/soc/amd/picasso/acp.c
@@ -15,13 +15,13 @@
#include <amdblocks/acpimmio.h>
#include <commonlib/helpers.h>
-static void acp_update32(uintptr_t bar, uint32_t reg, uint32_t and_mask, uint32_t or_mask)
+static void acp_update32(uintptr_t bar, uint32_t reg, uint32_t clear, uint32_t set)
{
uint32_t val;
val = read32((void *)(bar + reg));
- val &= ~and_mask;
- val |= or_mask;
+ val &= ~clear;
+ val |= set;
write32((void *)(bar + reg), val);
}