From c8151b4a5de136ea2c2a0e6e9aec481810ee0460 Mon Sep 17 00:00:00 2001 From: Lukasz Majewski Date: Fri, 9 May 2014 16:58:15 +0200 Subject: dfu: mmc: Provide support for eMMC boot partition access Before this patch it was only possible to access the default eMMC HW partition. By partition selection I mean the access to eMMC via the ext_csd[179] register programming. It sometimes happens that it is necessary to write to other partitions. This patch adds extra attribute to "raw" sub type of the dfu_alt_info environment variable (e.g. boot-mmc.bin raw 0x0 0x200 mmcpart 1;) It saves the original boot value and restores it after storing the file. Signed-off-by: Lukasz Majewski --- include/dfu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/dfu.h') diff --git a/include/dfu.h b/include/dfu.h index 986598e397..26ffbc8e81 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -43,6 +43,9 @@ struct mmc_internal_data { unsigned int lba_size; unsigned int lba_blk_size; + /* eMMC HW partition access */ + int hw_partition; + /* FAT/EXT */ unsigned int dev; unsigned int part; -- cgit v1.2.1