diff options
| author | Michal Simek <[email protected]> | 2021-07-27 14:05:27 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2021-08-06 09:32:02 +0200 |
| commit | e49f2a7f855f84a9b4c3bc0bae9615983bd42715 (patch) | |
| tree | da0ca2a54bead488ebb475ffb7b923894f1bc396 | |
| parent | f83cfaa7f24f83c816785e33e605e29e18d76d86 (diff) | |
xilinx: zynqmp: Change multi_boot() to return value
Change multi_boot() to return multiboot value and move print out of this
function and let this function to be used by other functions without
duplicating message.
Signed-off-by: Michal Simek <[email protected]>
| -rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 2cb97f42bec..eb67116d5b4 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -350,9 +350,7 @@ static int multi_boot(void) multiboot = readl(&csu_base->multi_boot); - printf("Multiboot:\t%d\n", multiboot); - - return 0; + return multiboot; } #define PS_SYSMON_ANALOG_BUS_VAL 0x3210 @@ -392,7 +390,7 @@ int board_init(void) #endif if (current_el() == 3) - multi_boot(); + printf("Multiboot:\t%d\n", multi_boot()); return 0; } |
