[PATCH v2 06/14] spl: add UFS boot mode defines to spl.h
Balaji Selvanathan
balaji.selvanathan at oss.qualcomm.com
Sat Jun 6 12:18:37 CEST 2026
Add UFS_MODE_RAW and UFS_MODE_FS defines to include/spl.h,
mirroring the existing MMCSD_MODE_* constants. These are used
by spl_ufs_boot_mode() to select between raw sector and
filesystem boot paths in spl_ufs_load().
Signed-off-by: Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>
---
Changes in v2:
- Added UFS boot mode defines in spl.h, as a seperate patch
---
include/spl.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/spl.h b/include/spl.h
index 5078d7525ab..a617bc26c04 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -29,6 +29,10 @@ struct legacy_img_hdr;
#define MMCSD_MODE_FS 2
#define MMCSD_MODE_EMMCBOOT 3
+/* UFS boot modes */
+#define UFS_MODE_RAW 1
+#define UFS_MODE_FS 2
+
struct blk_desc;
struct legacy_img_hdr;
struct spl_boot_device;
--
2.34.1
More information about the U-Boot
mailing list