]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit7b40d5900dca4cafa22fade8c8bfd82fe88c0bb8
tree72bf4ceba8c87ef0e96b1a0df0317559d6e2eab0
parenta255f0471d42f94463f8f1937d4409f08c3e1d50
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