diff options
author | Michal Simek <michal.simek@xilinx.com> | 2017-01-06 11:20:54 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-01-10 10:21:59 +0100 |
commit | 5cf22289aeaf0c84dcb55c629ae4ed72112024cc (patch) | |
tree | 2925ba2f7ffb029d6e2bb10bf3476deb45d1e3b0 /cmd/fpga.c | |
parent | ef4cab9d4f0a4a7231c614001f5d1da562104874 (diff) | |
download | u-boot-imx-5cf22289aeaf0c84dcb55c629ae4ed72112024cc.zip u-boot-imx-5cf22289aeaf0c84dcb55c629ae4ed72112024cc.tar.gz u-boot-imx-5cf22289aeaf0c84dcb55c629ae4ed72112024cc.tar.bz2 |
fpga: Use enum for bitstream command types
Using enum simplify handling of different bitstream command
types.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'cmd/fpga.c')
-rw-r--r-- | cmd/fpga.c | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -18,15 +18,17 @@ static int fpga_get_op(char *opstr); /* Local defines */ -#define FPGA_NONE -1 -#define FPGA_INFO 0 -#define FPGA_LOAD 1 -#define FPGA_LOADB 2 -#define FPGA_DUMP 3 -#define FPGA_LOADMK 4 -#define FPGA_LOADP 5 -#define FPGA_LOADBP 6 -#define FPGA_LOADFS 7 +enum { + FPGA_NONE = -1, + FPGA_INFO, + FPGA_LOAD, + FPGA_LOADB, + FPGA_DUMP, + FPGA_LOADMK, + FPGA_LOADP, + FPGA_LOADBP, + FPGA_LOADFS, +}; /* ------------------------------------------------------------------------- */ /* command form: |