cmd: fpga: Add support for missing fpga loadmk commands
authorMichal Simek <michal.simek@xilinx.com>
Thu, 26 Jul 2018 13:33:51 +0000 (15:33 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 11 Sep 2018 09:00:54 +0000 (11:00 +0200)
commit8c75f7943df0e849cf1431cd1b3d3e67180a158c
tree72bf4ceba8c87ef0e96b1a0df0317559d6e2eab0
parent2892fe801d8c3c19670782de755484624886a2a6
cmd: fpga: Add support for missing fpga loadmk commands

There are ways how to call fpga loadmk

1. Full command
fpga loadmk [dev] [address]

2. Dev setup via variable
set fpga [dev]
fpga loadmk [address]

3. Address setup via variable
set fpgadata [address]
fpga loadmk [dev]

4. Dev and address setup via variables
set fpga [dev]
set fpgadata [address]
fpga loadmk

Before this patch only cases 1 and 3 are working but the part of code
was trying to support also cases 2 and 4.
This patch is adding support for cases 2 and 4 to have all of
combinations supported.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/fpga.c