diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-06-11 16:03:36 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-08-09 11:16:59 -0400 |
commit | 6f12ebf6ea7bcae1b6d9ff090b5c1e7452be90e9 (patch) | |
tree | 6fc4e5046839b55b3ffc6d4e6cd9a8a215dc7bf8 /drivers/dfu/dfu.c | |
parent | cb7bd2e07e70aed7802e28619ce93d15d7ce10dc (diff) | |
download | u-boot-imx-6f12ebf6ea7bcae1b6d9ff090b5c1e7452be90e9.zip u-boot-imx-6f12ebf6ea7bcae1b6d9ff090b5c1e7452be90e9.tar.gz u-boot-imx-6f12ebf6ea7bcae1b6d9ff090b5c1e7452be90e9.tar.bz2 |
dfu: add SF backend
This allows SPI Flash to be programmed using DFU.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/dfu/dfu.c')
-rw-r--r-- | drivers/dfu/dfu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 897dfab..6cd3fbb 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -413,6 +413,9 @@ static int dfu_fill_entity(struct dfu_entity *dfu, char *s, int alt, } else if (strcmp(interface, "ram") == 0) { if (dfu_fill_entity_ram(dfu, devstr, s)) return -1; + } else if (strcmp(interface, "sf") == 0) { + if (dfu_fill_entity_sf(dfu, devstr, s)) + return -1; } else { printf("%s: Device %s not (yet) supported!\n", __func__, interface); |