summaryrefslogtreecommitdiff
path: root/recipes/u-boot/u-boot-git/mmcinit.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-10-20 20:15:40 +0200
committerKoen Kooi <koen@openembedded.org>2009-10-21 15:27:27 +0200
commitd57e14b9e27ed8360d49446361c5f7607ea34d88 (patch)
tree5537320fb1b8a6022ae998a458c051c5bd7721a8 /recipes/u-boot/u-boot-git/mmcinit.patch
parent9566f5fa6724f0beae77c206c9c391b177060fb8 (diff)
u-boot: fix fw_env logic, update beagle and touchbook
Diffstat (limited to 'recipes/u-boot/u-boot-git/mmcinit.patch')
-rw-r--r--recipes/u-boot/u-boot-git/mmcinit.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/u-boot/u-boot-git/mmcinit.patch b/recipes/u-boot/u-boot-git/mmcinit.patch
new file mode 100644
index 0000000000..8aee768e54
--- /dev/null
+++ b/recipes/u-boot/u-boot-git/mmcinit.patch
@@ -0,0 +1,20 @@
+--- a/common/cmd_mmc.c 2009-09-02 23:02:48.000000000 -0700
++++ b/common/cmd_mmc.c 2009-09-02 23:01:09.000000000 -0700
+@@ -92,6 +92,17 @@
+ "init [dev] - init MMC sub system\n"
+ "mmc device [dev] - show or set current device\n"
+ );
++int do_mmcinit (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
++{
++ char *argv2[] = {"mmc", "init"};
++ return do_mmc (cmdtp, flag, 2, argv2);
++}
++
++U_BOOT_CMD(
++ mmcinit, 1, 0, do_mmcinit,
++ "mmcinit - init mmc card\n",
++ NULL
++);
+ #else /* !CONFIG_GENERIC_MMC */
+
+ static void print_mmcinfo(struct mmc *mmc)