From: Lothar Waßmann Date: Tue, 16 Jun 2020 07:01:50 +0000 (+0200) Subject: karo: tx6: fix out of range CORE_VDD X-Git-Tag: KARO_TX6-2020-09-18~6 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=826471d6da53f43b6068db2b1a65095c4d38cdc8 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. --- 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",