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>
4 files changed
tree: 950ca5cfc881465e265cd7121108b49be57b4dc1
  1. Makefile
  2. man/
  3. mmc.c
  4. mmc.h
  5. mmc_cmds.c
  6. mmc_cmds.h