From 94db4a1c3815c5a79f475c48ec03718141534b9a Mon Sep 17 00:00:00 2001 From: Arian Date: Sat, 27 Jan 2024 11:10:12 +0100 Subject: [PATCH] unicorn: Add regulator, touch, haptics and audio kernel modules --- BoardConfig.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index caf2b14..d882bf6 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -12,6 +12,20 @@ include vendor/xiaomi/unicorn/BoardConfigVendor.mk DEVICE_PATH := device/xiaomi/unicorn +# Kernel +device_second_stage_modules := \ + qcom_pm8008-regulator.ko \ + fts_touch_spi.ko \ + aw8697-haptic.ko + +device_vendor_dlkm_exclusive_modules := \ + cs35l41_dlkm.ko + +BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD += $(device_second_stage_modules) +BOARD_VENDOR_KERNEL_MODULES_LOAD += $(device_second_stage_modules) $(device_vendor_dlkm_exclusive_modules) + +BOOT_KERNEL_MODULES += $(device_second_stage_modules) + # Properties TARGET_SYSTEM_PROP += $(DEVICE_PATH)/properties/system.prop