# SP11 additions to Fedora's kernel configuration: scripts/20-build-kernel.sh installs this file as the kernel
# source RPM's kernel-local (Source3001), which kernel.spec merges into every configuration it builds. Fedora's
# aarch64 configuration already sets every other option the Surface Pro 11 uses. Step 20 accepts exactly these lines
# as the difference to Fedora's configuration, so a symbol that Kconfig derives from one of them is listed as well.
# Every change to an effective line needs a new KERNEL_SP11_REV with its KERNEL_SP11_REV_SHA256; comments do not
# count.

# The touch controller driver the SP11 patch set adds (Fedora's configuration checks refuse an unset new symbol).
CONFIG_TOUCHSCREEN_MSHW0485=m

# The front (IMX681) and IR (VD55G0) camera sensor drivers the SP11 patch set adds. The rest of the camera stack the
# Denali device tree enables (CAMSS, CCI, the camera clock controller, the rear OV13858, the PM8550 flash LED) is in
# Fedora's configuration already.
CONFIG_VIDEO_IMX681=m
CONFIG_VIDEO_VD55G0=m

# The driver of a device the X1E80100 device tree enables and Fedora leaves out: the video clock controller, a user
# of the RPMh power domains. Until every user of a power domain or interconnect provider has its driver, the
# provider never reaches sync_state and Linux keeps its boot-time maximum votes on every rail and bus, sleep votes
# included; under the held rail votes the CDSP never wakes from its first sleep. Step 20 checks that every such
# user has a driver. The crypto engine, the other such user up to kernel 7.2, is disabled by the SP11 device tree
# since 7.3 marked its driver BROKEN (it races with the secure world): a disabled node binds nothing and votes for
# nothing.
CONFIG_SM_VIDEOCC_8550=m

# The TPM 2.0 driver the SP11 patch set adds, for the TPM behind the TrustZone application qcom.tz.mssecapp
# (docs/hardware.md, TPM). Built in, so that the TPM's start-up, about 3 s, begins while the kernel boots.
CONFIG_TCG_QCOM_MSSECAPP=y
