2 * Command for accessing DataFlash.
4 * Copyright (C) 2008 Atmel Corporation
9 static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
13 /* need at least two arguments */
19 if (strcmp(cmd, "init") == 0) {
20 df_init(0, 0, 1000000);
24 if (strcmp(cmd, "info") == 0) {
30 return cmd_usage(cmdtp);
34 sf, 2, 1, do_serial_flash,
35 "Serial flash sub-system",
36 "probe [bus:]cs - init flash device on given SPI bus and CS")