FP5: Load QCACLD module after cold boot calibration
Change-Id: I000def96639b2f0e0daad7ac5cb1b19ff9f03698
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 85111c9..b1b7b0c 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -100,6 +100,7 @@
TARGET_KERNEL_SOURCE := kernel/fairphone/qcm6490
# Kernel modules
+BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := $(DEVICE_PATH)/modules.blocklist
BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load))
BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load.recovery))
BOOT_KERNEL_MODULES := $(BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD)
diff --git a/modules.blocklist b/modules.blocklist
new file mode 100644
index 0000000..7bb4ec6
--- /dev/null
+++ b/modules.blocklist
@@ -0,0 +1,3 @@
+# The module will be loaded from the target RC after
+# cold boot calibration.
+blocklist qca_cld3_wlan
diff --git a/modules.load b/modules.load
index 5119248..7df25b9 100644
--- a/modules.load
+++ b/modules.load
@@ -76,12 +76,6 @@
llcc_perfmon.ko
slimbus-ngd.ko
mc44s803.ko
-qca_cld3_wlan.ko
-qca_cld3_qca6750.ko
-qca_cld3_qca6390.ko
-qca_cld3_wlan.ko
-qca_cld3_qca6750.ko
-qca_cld3_qca6390.ko
rmnet_core.ko
rmnet_ctl.ko
rmnet_offload.ko