MAINLINE dfu: mmc: Provide support for eMMC boot partition access
authorLukasz Majewski <l.majewski@samsung.com>
Tue, 18 Feb 2014 15:43:09 +0000 (16:43 +0100)
committerLukasz Majewski <l.majewski@samsung.com>
Tue, 18 Mar 2014 15:48:58 +0000 (16:48 +0100)
commit1b0ff5905b7fc109f339f9dae5754a48a8fcecfb
tree2ab0e3d5362d74eede790bbc5833bdb3a0b22e64
parentc9116828caf31f3558e5ad72f12b10634690b133
MAINLINE dfu: mmc: Provide support for eMMC boot partition access

Before this patch it was only possible to access only the default eMMC
partition. By partition selection I mean the access to eMMC via ext_csd[179]
register programming.

It sometimes happens that it is necessary to write to other partitions.
This patch adds extra attributes to "mmc" sub type of the dfu_alt_info
variable (e.g. boot-mmc.bin mmc 0 200 mmcpart 1;)

It saves the original boot value and restores it after storing the file.

Such definition will not impact other definitions of the "mmc".

Change-Id: I34069510eb27aa80794189d2d13cdb97e54ba83d
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/dfu/dfu_mmc.c
include/dfu.h