A UFS device exposes several well known logical units that live outside the ordinary LUN range. Name them centrally, in the public header, so that both the driver and the SPL boot path can refer to them.
Signed-off-by: Alexey Charkov <[email protected]> --- include/ufs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/ufs.h b/include/ufs.h index f6e27d90e43b..40088c935209 100644 --- a/include/ufs.h +++ b/include/ufs.h @@ -4,6 +4,14 @@ struct udevice; +/* Well known logical unit ids, as they appear in the LUN field of a UPIU */ +enum { + UFS_UPIU_REPORT_LUNS_WLUN = 0x81, + UFS_UPIU_BOOT_WLUN = 0xB0, + UFS_UPIU_RPMB_WLUN = 0xC4, + UFS_UPIU_UFS_DEVICE_WLUN = 0xD0, +}; + /** * ufs_probe() - initialize all devices in the UFS uclass * -- 2.54.0
