Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ obj-m += 6.12.0/drivers/media/pci/intel/
endif

obj-y += drivers/media/platform/intel/
obj-m += drivers/i2c/i2c-atr.o
obj-m += drivers/media/i2c/

subdir-ccflags-y += $(subdir-ccflags-m)
Expand Down
13 changes: 9 additions & 4 deletions dkms.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE_NAME="ipu-camera-sensor"
PACKAGE_VERSION="0.1"
PACKAGE_VERSION="4.3"
VERSION_SUFFIX="${PACKAGE_VERSION}"

MAKE="make KERNELRELEASE=$kernelver DRIVER_VERSION_SUFFIX='${VERSION_SUFFIX}' KERNEL_SRC=$kernel_source_dir"
Expand Down Expand Up @@ -140,6 +140,11 @@ BUILT_MODULE_LOCATION[$i]="drivers/media/i2c"
DEST_MODULE_LOCATION[$i]="/updates"
STRIP[$i]=no

BUILT_MODULE_NAME[$((++i))]="i2c-atr"
BUILT_MODULE_LOCATION[$i]="drivers/i2c"
DEST_MODULE_LOCATION[$i]="/updates"
STRIP[$i]=no

BUILT_MODULE_NAME[$((++i))]="max9x"
BUILT_MODULE_LOCATION[$i]="drivers/media/i2c/max9x"
DEST_MODULE_LOCATION[$i]="/updates"
Expand Down Expand Up @@ -174,10 +179,10 @@ STRIP[$i]=no
# 6.12 and 6.17 BKC kernels typically ship with CONFIG_I2C_ATR disabled, so
# users must rebuild those kernels with CONFIG_I2C_ATR=y to use maxim-serdes.
# Skip on 6.12-intel and 6.17-intel. 6.18-intel and newer are allowed.
KERNEL_SKIP_MAXIM_SERDES=0
if [ "$KERNEL_VER" -eq 6 ] && { [ "$KERNEL_PATCH" -eq 12 ] || [ "$KERNEL_PATCH" -eq 17 ]; } && echo "$kernelver" | grep -q -- '-intel'; then
#KERNEL_SKIP_MAXIM_SERDES=0
#if [ "$KERNEL_VER" -eq 6 ] && { [ "$KERNEL_PATCH" -eq 12 ] || [ "$KERNEL_PATCH" -eq 17 ]; } && echo "$kernelver" | grep -q -- '-intel'; then
KERNEL_SKIP_MAXIM_SERDES=1
fi
#fi
if [ "$KERNEL_SKIP_MAXIM_SERDES" -ne 1 ]; then
BUILT_MODULE_NAME[$((++i))]="max-serdes"
BUILT_MODULE_LOCATION[$i]="drivers/media/i2c/maxim-serdes"
Expand Down
3 changes: 3 additions & 0 deletions drivers/i2c/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0

obj-m += i2c-atr.o
Loading