1 // SPDX-License-Identifier: GPL-2.0
2 
3 #ifndef __QCOM_PRIV_H__
4 #define __QCOM_PRIV_H__
5 
6 /**
7  * enum qcom_boot_source - Track where we got loaded from.
8  * Used for capsule update logic.
9  *
10  * @QCOM_BOOT_SOURCE_ANDROID: chainloaded (typically from ABL)
11  * @QCOM_BOOT_SOURCE_XBL: flashed to the XBL or UEFI partition
12  */
13 enum qcom_boot_source {
14 	QCOM_BOOT_SOURCE_ANDROID = 1,
15 	QCOM_BOOT_SOURCE_XBL,
16 };
17 
18 extern enum qcom_boot_source qcom_boot_source;
19 
20 #if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
21 void qcom_configure_capsule_updates(void);
22 #else
qcom_configure_capsule_updates(void)23 void qcom_configure_capsule_updates(void) {}
24 #endif /* EFI_HAVE_CAPSULE_SUPPORT */
25 
26 #endif /* __QCOM_PRIV_H__ */
27