From 826471d6da53f43b6068db2b1a65095c4d38cdc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Tue, 16 Jun 2020 09:01:50 +0200 Subject: [PATCH] karo: tx6: fix out of range CORE_VDD Due to a buggy handling of the register mask in the RN5T567 PMIC code, the core voltage would be set to 2.1V instead of 1.3V. --- board/karo/tx6/rn5t567.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/karo/tx6/rn5t567.c b/board/karo/tx6/rn5t567.c index 7e159c0e46..45cc87e1bb 100644 --- a/board/karo/tx6/rn5t567.c +++ b/board/karo/tx6/rn5t567.c @@ -37,7 +37,7 @@ static int rn5t567_setup_regs(uchar slave_addr, struct pmic_regs *r, __func__, r->addr, ret); return ret; } - newval = (value & ~r->mask) | r->val; + newval = (value & r->mask) | r->val; #ifdef DEBUG if (value != newval) { printf("Changing PMIC reg %02x from %02x to %02x\n", -- 2.39.2