soc/mediatek/common: Add UFS2.2 and eMMC definitions to storage.h

Add support for projects with UFS2.2 and eMMC storage.

BUG=b:379008996
BRANCH=none
TEST=build pass

Signed-off-by: Vince Liu <vince-wl.liu@mediatek.corp-partner.google.com>
Change-Id: Ie8d76920417c7708117e3492152d3d4e87dd87ca
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87864
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
Vince Liu 2025-05-13 21:07:47 +08:00 committed by Yidi Lin
commit c34baacc72

View file

@ -10,13 +10,16 @@
#define _BASE_TYPE_UFS _BASE_TYPE(0x1)
#define _BASE_TYPE_NVME _BASE_TYPE(0x2)
#define _BASE_TYPE_EMMC _BASE_TYPE(0x3)
enum mtk_storage_type {
STORAGE_UNKNOWN = 0,
STORAGE_UFS_22 = _BASE_TYPE_UFS | 0x220,
STORAGE_UFS_31 = _BASE_TYPE_UFS | 0x310,
STORAGE_UFS_40 = _BASE_TYPE_UFS | 0x400,
STORAGE_UFS_40_HS = _BASE_TYPE_UFS | 0x401,
STORAGE_NVME = _BASE_TYPE_NVME,
STORAGE_EMMC = _BASE_TYPE_EMMC,
};
enum mtk_storage_type mainboard_get_storage_type(void);