]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: fpga: Extract fpga info command to separate function
authorMichal Simek <michal.simek@xilinx.com>
Mon, 4 Jun 2018 12:57:34 +0000 (14:57 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 11 Sep 2018 08:58:42 +0000 (10:58 +0200)
commit9eea6d3d4ba20d2bbb79b5c443ddd5460a09748a
treebe35f2539f5f85532740b485bbdf4a03c9b07e8f
parent33f9831e5c39eca4ea53a89c2bc8e908280948b3
cmd: fpga: Extract fpga info command to separate function

Move fpga info to U_BOOT_CMD_MKENT subcommand.
Also use strtol instead of simple_strtoul. The reason is that if -1 is
passed (or fpga info without "fpga" variable) the list of all fpgas is
shown.
This functionality is in the fpga core but it couldn't be performed.

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