+static const struct command_registration mflash_exec_command_handlers[] = {
+ {
+ .name = "probe",
+ .handler = &mg_probe_cmd,
+ .mode = COMMAND_EXEC,
+ .help = "Detect bank configuration information",
+ },
+ {
+ .name = "write",
+ .handler = &mg_write_cmd,
+ .mode = COMMAND_EXEC,
+ .usage = "<num> <file> <address>",
+ .help = "Write a file at the specified address",
+ },
+ {
+ .name = "dump",
+ .handler = &mg_dump_cmd,
+ .mode = COMMAND_EXEC,
+ .usage = "<num> <file> <address> <size>",
+ .help = "Dump to a file from the specified address",
+ },
+ {
+ .name = "config",
+ .handler = &mg_config_cmd,
+ .mode = COMMAND_EXEC,
+ .usage = "<num> <stage>",
+ .help = "Dump to a file from the specified address",
+ },
+ COMMAND_REGISTRATION_DONE
+};
+