Commit 45541d55 authored by Chris Ball's avatar Chris Ball
Browse files

Hook up "mmc extcsd read/write" commands.


Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent a8bfde77
CC = gcc
AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2
CFLAGS = -g -O0
objects = mmc.o mmc_cmds.h
objects = mmc.o mmc_cmds.o
CHECKFLAGS= -Wall -Werror -Wuninitialized -Wundef
......
......@@ -21,6 +21,8 @@
#include <stdlib.h>
#include <string.h>
#include "mmc_cmds.h"
#define MMC_VERSION "0.1"
#define BASIC_HELP 0
......@@ -48,6 +50,16 @@ static struct Command commands[] = {
/*
* avoid short commands different for the case only
*/
{ do_read_extcsd, -1,
"extcsd read", "<device>\n"
"Print extcsd data from <device>.",
NULL
},
{ do_write_extcsd, -1,
"extcsd write", "<device>\n"
"Write extcsd data to <device>.",
NULL
},
{ 0, 0, 0, 0 }
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment