xilinx: Move bootmode detection to separate function
authorMichal Simek <michal.simek@xilinx.com>
Wed, 8 Apr 2020 09:04:41 +0000 (11:04 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 27 Apr 2020 11:57:18 +0000 (13:57 +0200)
commit51f6c52e6b12d7bc7a82db566057efe731f5aae9
treed78ce4ad2e25a06497caf02b98b02d6644403224
parenta29511eeca5f00e31653af28b9f758cf39e001fc
xilinx: Move bootmode detection to separate function

Create special function for reading bootmode on Versal and ZynqMP.
Zynq is using specific function (without mask) already.
Future patches will be calling this function from different location too.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/versal/board.c
board/xilinx/zynqmp/zynqmp.c