Browse Source

cupid: Add regulator, touch, haptics and audio kernel modules

Change-Id: I9484a243935db3355a8639a9ae6413dc82431b1c
Arian 1 year ago
parent
commit
976acdfb47
1 changed files with 14 additions and 0 deletions
  1. 14 0
      BoardConfig.mk

+ 14 - 0
BoardConfig.mk

@@ -12,6 +12,20 @@ include vendor/xiaomi/cupid/BoardConfigVendor.mk
 
 DEVICE_PATH := device/xiaomi/cupid
 
+# 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
 TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop