]> git.ipfire.org Git - people/ms/u-boot.git/commit
dfu: mmc: Provide support for eMMC boot partition access
authorLukasz Majewski <l.majewski@samsung.com>
Fri, 9 May 2014 14:58:15 +0000 (16:58 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 14 May 2014 22:24:24 +0000 (00:24 +0200)
commitc8151b4a5de136ea2c2a0e6e9aec481810ee0460
treeebff50c1cd8180d5380d75f90ee9fccb4f67c7db
parent584b55b072a94de94b3fe0d54defae87795237d7
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 <l.majewski@samsung.com>
drivers/dfu/dfu_mmc.c
include/dfu.h