]> git.baikalelectronics.ru Git - uboot.git/commit
board: freescale: p1_p2_rdb_pc: Fix parsing inverted bits from boot input data
authorPali Rohár <pali@kernel.org>
Thu, 28 Jul 2022 03:07:13 +0000 (11:07 +0800)
committerPeng Fan <peng.fan@nxp.com>
Fri, 29 Jul 2022 11:49:13 +0000 (19:49 +0800)
commit3859b7182c347df5e69f98ca246e4fd50422ee90
treedc61d92c7fa0be126fb338857782d8798dcf2eb5
parentca34c68cb8945c414648b6216908dc55258c4411
board: freescale: p1_p2_rdb_pc: Fix parsing inverted bits from boot input data

On some boards upper 4 bits of i2c boot input data (register 0) are
inverted. Information which bits are inverted is stored in register 2.

So invert read input data back according to register 2 prior processing
them. This fixes printing "rom_loc: value" line during booting.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c