summaryrefslogtreecommitdiffstats
path: root/common/filetype.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-09-17 13:55:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-18 14:40:07 +0200
commitd7cdb1038a7784c7d3ba39886a43a2c2f598509c (patch)
treef30822cc19a2303580d4b244a8345eb5c172e914 /common/filetype.c
parenta50ac2c8ec11fcc6852fa97994724cc0deeb08da (diff)
downloadbarebox-d7cdb1038a7784c7d3ba39886a43a2c2f598509c.tar.gz
filetype: support fastboot barebox_update with layerscape image
We do not yet support USB on the Layerscape platforms, but when we do, it's imaginable that we would want to export barebox_update targets over Fastboot. Prepare for this by adding the layerscape images to those that filetype_is_barebox_image returns true for. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/filetype.c')
-rw-r--r--common/filetype.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/filetype.c b/common/filetype.c
index 825bf25..4966c5e 100644
--- a/common/filetype.c
+++ b/common/filetype.c
@@ -460,6 +460,8 @@ bool filetype_is_barebox_image(enum filetype ft)
case filetype_mips_barebox:
case filetype_ch_image:
case filetype_ch_image_be:
+ case filetype_layerscape_image:
+ case filetype_layerscape_qspi_image:
return true;
default:
return false;