summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot/u-boot/mmcinit.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-01-08 20:03:43 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2011-01-08 20:03:43 +0100
commit675866afcb9cfc421693448a7903fa059c922b63 (patch)
tree23f8e85d7e5b22807f0a0bc0ed4c64066afedc8a /recipes-bsp/u-boot/u-boot/mmcinit.patch
parent234596fc5d169b91aba8f998e20307715fdebfcc (diff)
downloadmeta-ti-675866afcb9cfc421693448a7903fa059c922b63.tar.gz
P: add support the Always Innovating Touchbook
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot/mmcinit.patch')
-rw-r--r--recipes-bsp/u-boot/u-boot/mmcinit.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot/mmcinit.patch b/recipes-bsp/u-boot/u-boot/mmcinit.patch
new file mode 100644
index 00000000..a48d9eb9
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot/mmcinit.patch
@@ -0,0 +1,34 @@
1From 412e0ab7334defa38c8d3732fb0076f4957843f0 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Sat, 8 Jan 2011 19:17:07 +0100
4Subject: [PATCH 09/10] mmcinit.patch
5
6---
7 common/cmd_mmc.c | 11 +++++++++++
8 1 files changed, 11 insertions(+), 0 deletions(-)
9
10diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
11index 039fe59..c1958ba 100644
12--- a/common/cmd_mmc.c
13+++ b/common/cmd_mmc.c
14@@ -91,6 +91,17 @@ U_BOOT_CMD(
15 "init [dev] - init MMC sub system\n"
16 "mmc device [dev] - show or set current device\n"
17 );
18+int do_mmcinit (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
19+{
20+ char *argv2[] = {"mmc", "init"};
21+ return do_mmc (cmdtp, flag, 2, argv2);
22+}
23+
24+U_BOOT_CMD(
25+ mmcinit, 1, 0, do_mmcinit,
26+ "mmcinit - init mmc card\n",
27+ NULL
28+);
29 #else /* !CONFIG_GENERIC_MMC */
30
31 static void print_mmcinfo(struct mmc *mmc)
32--
331.6.6.1
34