drivers/intel/mipi_camera: Flesh out SSDB platform enum

Rename `intel_camera_platform_type` to `platform_type` and populate it
using the available values from the Intel Camera DDK available on
Windows Update and slimbootloader.

Change-Id: I7c40e29dbf71caf7b655e8f2e5b4be7cc6970194
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90184
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Matt DeVillier 2025-11-09 18:15:11 -06:00
commit c91ea7c582
2 changed files with 22 additions and 10 deletions

View file

@ -297,7 +297,7 @@ static void camera_fill_ssdb_defaults(struct drivers_intel_mipi_camera_config *c
config->ssdb.bdf_value = PCI_DEVFN(CIO2_PCI_DEV, CIO2_PCI_FN);
if (!config->ssdb.platform)
config->ssdb.platform = PLATFORM_SKC;
config->ssdb.platform = PLAT_SKC;
if (!config->ssdb.flash_support)
config->ssdb.flash_support = FLASH_DISABLE;

View file

@ -14,15 +14,27 @@ enum camera_device_type {
DEV_TYPE_ROM
};
enum intel_camera_platform_type {
PLATFORM_BXT = 8,
PLATFORM_SKC = 9,
PLATFORM_CNL = 10,
PLATFORM_TGL = 12,
PLATFORM_JSL = 14,
PLATFORM_ADL = 15,
PLATFORM_MTL = 16,
PLATFORM_LNL = 17
enum platform_type {
PLAT_UNK,
PLAT_BYT,
PLAT_CHT,
PLAT_CHT1,
PLAT_CHT2,
PLAT_CHT_CR,
PLAT_CHT_COPOP,
PLAT_BSW,
PLAT_BXT,
PLAT_SKC,
PLAT_CNL,
PLAT_LKF,
PLAT_TGL,
PLAT_TGL_H,
PLAT_JSL,
PLAT_ADL,
PLAT_MTL,
PLAT_LNL,
PLAT_PTL,
PLAT_NVL,
};
enum intel_camera_flash_type {