Hook up "mmc extcsd read/write" commands.

Signed-off-by: Chris Ball <cjb@laptop.org>
diff --git a/Makefile b/Makefile
index 63f97b5..34c5ec3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 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
 
diff --git a/mmc.c b/mmc.c
index 787df1d..b2dd41b 100644
--- a/mmc.c
+++ b/mmc.c
@@ -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 @@
 	/*
 	 *	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 }
 };