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)
commitf4c7a4aea261e9eab3068f91a08f3c84bd58d89f
treebe35f2539f5f85532740b485bbdf4a03c9b07e8f
parent9657d97cf5f0284dbab36915654fb5d082332281
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