aboutsummaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-10-08 09:58:55 -0400
committerTom Rini <trini@konsulko.com>2023-10-08 09:58:55 -0400
commitd9bb6d779b69c2548891e568e5e2a23e1b7eedaa (patch)
tree53bccb62f9302d5cba0e709475683e4f823b00dc /include/spl.h
parent83aa0ed1e93e1ffac24888d98d37a5b04ed3fb07 (diff)
parentdd8d52c934e8858264f91e8e8e2d8c7d8b059dd7 (diff)
Merge tag 'u-boot-rockchip-20231007' of https://source.denx.de/u-boot/custodians/u-boot-rockchip
- Add Board: rk3568 Bananapi R2Pro; - Update pcie bifurcation support; - dwc_eth_qos controller support for rk3568 and rk3588; - Compressed binary support for U-Boot on rockchip platform; - dts and config updates for different board and soc; [ trini: Fix conflict on include/spl.h ] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index a222db9c55..f713363f8c 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -931,4 +931,13 @@ void spl_save_restore_data(void);
int spl_load_fit_image(struct spl_image_info *spl_image,
const struct legacy_img_hdr *header);
+/*
+ * spl_decompression_enabled() - check decompression support is enabled for SPL build
+ *
+ * Returns true if decompression support is enabled, else False
+ */
+static inline bool spl_decompression_enabled(void)
+{
+ return IS_ENABLED(CONFIG_SPL_GZIP) || IS_ENABLED(CONFIG_SPL_LZMA);
+}
#endif