]> git.baikalelectronics.ru Git - uboot.git/commit
imx: mx6ull: fix REFTOP_VBGADJ setting
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Mon, 31 Jan 2022 07:50:05 +0000 (08:50 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 14:49:02 +0000 (15:49 +0100)
commit4496ad7bfbba6d1ab686c857a8348fed10bdff9a
tree9006b21b98a1c8daa89476b45e2e58e74d13e9f0
parent157cb318ad8e6e379db0c5a2fdb85c124360fb68
imx: mx6ull: fix REFTOP_VBGADJ setting

The previous code wrote the contents of the fuse as is in the
REFTOP_VBGADJ[2:0], but this was wrong if you consider the contents of
the table in the code comment. This table is also different from the
table in the commit description. But then, which of the two is correct?
If it is assumed that an unprogrammed fuse has a value of 0 then for
backward compatibility of the code REFTOP_VBGADJ[2:0] must be set to
6 (b'110). Therefore, the table in the code comment can be considered
correct as well as this patch.

Fixes: 0b9fbf688420d ("imx: mx6ull: update the REFTOP_VBGADJ setting")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
arch/arm/mach-imx/mx6/soc.c