summaryrefslogtreecommitdiff
path: root/drivers/dfu/dfu.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2020-12-22 11:32:21 +0100
committerMarek Vasut <marex@denx.de>2021-01-31 14:08:56 +0100
commitb5f3405b9d8666bd0ab627c298cea1c927da081a (patch)
treea9601b12649f1d52eead24385a2688a7c492291c /drivers/dfu/dfu.c
parentf21358ad6cb5d39fff432fa0af0c4fd24288b2b7 (diff)
downloadu-boot-b5f3405b9d8666bd0ab627c298cea1c927da081a.tar.gz
u-boot-b5f3405b9d8666bd0ab627c298cea1c927da081a.tar.bz2
u-boot-b5f3405b9d8666bd0ab627c298cea1c927da081a.zip
dfu: add 'SKIP' entity
Define a new 'SKIP' type for the DFU entities. The flashed data for that entity is simply ignored without returning any error values. This allows to have one flashing procedure and images for the different board types or variants, where each board uses only the images relevant to it and skips the rest. This is especially usefull for the THOR protocol, which usually transfers more than one file in a single session. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Minkyu Kang <mk7.kang@samsung.com> [mszyprow: rephrased commit message and docs for easier reading, changed subject to "dfu: add 'SKIP' entity"] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'drivers/dfu/dfu.c')
-rw-r--r--drivers/dfu/dfu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
index 501a60b344..fc32a53323 100644
--- a/drivers/dfu/dfu.c
+++ b/drivers/dfu/dfu.c
@@ -614,7 +614,7 @@ const char *dfu_get_dev_type(enum dfu_device_type t)
const char *dfu_get_layout(enum dfu_layout l)
{
const char *const dfu_layout[] = {NULL, "RAW_ADDR", "FAT", "EXT2",
- "EXT3", "EXT4", "RAM_ADDR" };
+ "EXT3", "EXT4", "RAM_ADDR", "SKIP" };
return dfu_layout[l];
}