summaryrefslogtreecommitdiff
path: root/mmc_cmds.h
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2012-04-19 10:58:37 +0200
committerChris Ball <cjb@laptop.org>2012-05-17 09:21:33 -0400
commit7bd1320b2cb38f040ab5cf017d17e283496690bf (patch)
tree950ca5cfc881465e265cd7121108b49be57b4dc1 /mmc_cmds.h
parentb9c7a17fce190f085bb4eb6e6535a22e2c69de68 (diff)
downloadmmc-utils-7bd1320b2cb38f040ab5cf017d17e283496690bf.tar.gz
Add new "bootpart enable" command to enable boot partitions
This adds a new option to enable the boot from eMMC by writing to the 179 ext_csd register. The example below shows as to enable the mmcblk0boot0 partition and also set/reset the ACK bit). $ ./mmc bootpart enable 1 1 /dev/mmcblk0boot0 $ ./mmc extcsd read /dev/mmcblk0boot0 | grep PARTITION_CON Boot configuration bytes [PARTITION_CONFIG: 0x49] Reported-by: Youssef TRIKI <youssef.triki@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'mmc_cmds.h')
-rw-r--r--mmc_cmds.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mmc_cmds.h b/mmc_cmds.h
index 66e9acb..264409a 100644
--- a/mmc_cmds.h
+++ b/mmc_cmds.h
@@ -19,3 +19,4 @@ int do_read_extcsd(int nargs, char **argv);
int do_write_extcsd(int nargs, char **argv);
int do_writeprotect_get(int nargs, char **argv);
int do_writeprotect_set(int nargs, char **argv);
+int do_write_boot_en(int nargs, char **argv);