]> git.dujemihanovic.xyz Git - u-boot.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)
commit78aa3fb15eb7f9c0a1b646a5e54c3dd2195b4afb
treedc61d92c7fa0be126fb338857782d8798dcf2eb5
parent3480879a5598735753e8dffda8c38791d19fd467
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