qcom: Add support for kalama platform

Change-Id: I393c3c1ca398b5b34d7b9d8a76ccdf8af329957c
This commit is contained in:
Bruno Martins 2023-04-27 09:53:38 +01:00
parent 99041d0e90
commit 8bbb7d90b6
2 changed files with 16 additions and 7 deletions

View file

@ -12,6 +12,7 @@ ATOLL := atoll #SM6250
LAHAINA := lahaina #SM8350
HOLI := holi #SM4350
TARO := taro #SM8450
KALAMA := kalama #SM8550
# UM Family
QCOM_BOARD_PLATFORMS += msm8937
@ -34,3 +35,4 @@ QCOM_BOARD_PLATFORMS += $(ATOLL)
QCOM_BOARD_PLATFORMS += $(LAHAINA)
QCOM_BOARD_PLATFORMS += $(HOLI)
QCOM_BOARD_PLATFORMS += $(TARO)
QCOM_BOARD_PLATFORMS += $(KALAMA)

View file

@ -9,6 +9,7 @@ ATOLL := atoll #SM6250
LAHAINA := lahaina #SM8350
HOLI := holi #SM4350
TARO := taro #SM8450
KALAMA := kalama #SM8550
UM_3_18_FAMILY := msm8996
UM_4_4_FAMILY := msm8998
@ -17,6 +18,7 @@ UM_4_14_FAMILY := $(MSMNILE) $(MSMSTEPPE) $(TRINKET) $(ATOLL)
UM_4_19_FAMILY := $(KONA) $(LITO) $(BENGAL)
UM_5_4_FAMILY := $(LAHAINA) $(HOLI)
UM_5_10_FAMILY := $(TARO)
UM_5_15_FAMILY := $(KALAMA)
ifeq (,$(TARGET_ENFORCES_QSSI))
UM_3_18_FAMILY += msm8937 msm8953
@ -35,7 +37,8 @@ UM_PLATFORMS := \
$(UM_4_14_FAMILY) \
$(UM_4_19_FAMILY) \
$(UM_5_4_FAMILY) \
$(UM_5_10_FAMILY)
$(UM_5_10_FAMILY) \
$(UM_5_15_FAMILY)
LEGACY_UM_PLATFORMS := \
msm8937 msm8953 msm8996 \
@ -52,7 +55,8 @@ QSSI_SUPPORTED_PLATFORMS := \
$(UM_4_14_FAMILY) \
$(UM_4_19_FAMILY) \
$(UM_5_4_FAMILY) \
$(UM_5_10_FAMILY)
$(UM_5_10_FAMILY) \
$(UM_5_15_FAMILY)
BOARD_USES_ADRENO := true
@ -97,17 +101,18 @@ TARGET_USES_QCOM_MM_AUDIO := true
TARGET_USES_COLOR_METADATA := true
# Enable DRM PP driver on UM platforms that support it
ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY) $(UM_5_10_FAMILY),$(TARGET_BOARD_PLATFORM)),)
ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY) $(UM_5_10_FAMILY) $(UM_5_15_FAMILY),$(TARGET_BOARD_PLATFORM)),)
SOONG_CONFIG_qtidisplay_drmpp := true
TARGET_USES_DRM_PP := true
endif
# Enable Gralloc4 on UM platforms that support it
ifneq ($(filter $(UM_5_4_FAMILY) $(UM_5_10_FAMILY),$(TARGET_BOARD_PLATFORM)),)
ifneq ($(filter $(UM_5_4_FAMILY) $(UM_5_10_FAMILY) $(UM_5_15_FAMILY),$(TARGET_BOARD_PLATFORM)),)
SOONG_CONFIG_qtidisplay_gralloc4 := true
endif
ifneq ($(filter $(UM_5_10_FAMILY),$(TARGET_BOARD_PLATFORM)),)
# Select AR variant of A-HAL dependencies
ifneq ($(filter $(UM_5_10_FAMILY) $(UM_5_15_FAMILY),$(TARGET_BOARD_PLATFORM)),)
TARGET_USES_QCOM_AUDIO_AR ?= true
endif
@ -125,7 +130,7 @@ TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 13)
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21)
# Mark GRALLOC_USAGE_PRIVATE_HEIF_VIDEO as valid gralloc bit on UM platforms that support it
ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY) $(UM_5_10_FAMILY),$(TARGET_BOARD_PLATFORM)),)
ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY) $(UM_5_10_FAMILY) $(UM_5_15_FAMILY),$(TARGET_BOARD_PLATFORM)),)
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 27)
endif
@ -157,6 +162,8 @@ else ifneq ($(filter $(UM_5_4_FAMILY),$(TARGET_BOARD_PLATFORM)),)
QCOM_HARDWARE_VARIANT := sm8350
else ifneq ($(filter $(UM_5_10_FAMILY),$(TARGET_BOARD_PLATFORM)),)
QCOM_HARDWARE_VARIANT := sm8450
else ifneq ($(filter $(UM_5_15_FAMILY),$(TARGET_BOARD_PLATFORM)),)
QCOM_HARDWARE_VARIANT := sm8550
else
MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM)
QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM)
@ -172,7 +179,7 @@ PRODUCT_SOONG_NAMESPACES += \
vendor/qcom/opensource/commonsys/display \
vendor/qcom/opensource/commonsys-intf/display
ifeq ($(filter $(UM_5_10_FAMILY),$(TARGET_BOARD_PLATFORM)),)
ifeq ($(filter $(UM_5_10_FAMILY) $(UM_5_15_FAMILY),$(TARGET_BOARD_PLATFORM)),)
PRODUCT_SOONG_NAMESPACES += \
vendor/qcom/opensource/display
endif