Skip to content

Commit

Permalink
fpga: Guard the LOADMK functionality with config
Browse files Browse the repository at this point in the history
Guard the LOADMK functionality with config to provide
an option to enable or disable it.
This will require to enable this option for all configs
in mainline.

Signed-off-by: Siva Durga Prasad Paladugu <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
Siva Durga Prasad Paladugu authored and Michal Simek committed Mar 17, 2014
1 parent 256f19f commit f2688c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/cmd_fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ int do_fpga(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
rc = fpga_fsload(dev, fpga_data, data_size, &fpga_fsinfo);
break;
#endif
#ifdef CONFIG_FPGA_LOADMK
case FPGA_LOADMK:
switch (genimg_get_format(fpga_data)) {
case IMAGE_FORMAT_LEGACY:
Expand Down Expand Up @@ -262,7 +263,7 @@ int do_fpga(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
break;
}
break;

#endif
case FPGA_DUMP:
rc = fpga_dump(dev, fpga_data, data_size);
break;
Expand Down

0 comments on commit f2688c1

Please sign in to comment.