# Kernel configuration

Source: [https://docs.qualcomm.com/doc/80-70014-6/topic/ufs-kernel-configuration.html](https://docs.qualcomm.com/doc/80-70014-6/topic/ufs-kernel-configuration.html)

A default UFS kernel configuration enables UFS functionality.

The following table provides a list of kernel configurations for UFS that can be modified
            by the developer. The default values of these configurations included in the build are
            described below.

Table : UFS kernel configuration

| Configuration | Enabled (Yes/No) | Comments |
| --- | :---: | --- |
| `CONFIG_UFS_FAULT_INJECTION` | No | Injects the failure command for debugging |
| `CONFIG_SCSI_UFSHCD` | Yes | Enables the UFS host control driver in the kernel |
| `CONFIG_SCSI_UFSHCD_PLATFORM` | Yes | States that the UFS controller is supported by the platform<br>                            bus |
| `CONFIG_SCSI_UFS_QCOM` | Yes | Enables a QTI-specific addition to access the hardware, that is, PHY<br>                            configuration and vendor-specific registers |
| `CONFIG_PHY_QCOM_QMP` | Yes | Supports UFS QMP PHY driver |
| `CONFIG_SCSI_UFS_BSG` | Yes | Enables UFS BSG device node |
| `CONFIG_SCSI_UFS_CRYPTO` | No | UFS crypto engine support |

A default SDHC kernel configuration enables SD card functionality.

The following table provides a list of kernel configurations for SD card that can be
            modified by the developer. The default values of these configurations included in the
            build are described below.

Table : SDHC kernel configuration

| Configuration | Enabled (Yes/No) | Comments |
| --- | :---: | --- |
| `CONFIG_MMC` | Yes | Enables MMC driver |
| `CONFIG_MMC_DEBUG` | No | Enables driver debug messages |
| `CONFIG_MMC_SDHCI` | Yes | Detects SDHCI driver |
| `CONFIG_MMC_CQHCI` | Yes | Enables command queue host control interface |
| `CONFIG_MMC_SDHCI_MSM` | Yes | Enables MSM SDHCI driver |
| `CONFIG_MMC_BLOCK` | Yes | Enables MMC block driver |

The kernel configurations as per the preceding table are enabled by default in
                &lt;workspace\_root\_path&gt;/sources/kernel/kernel\_platform/kernel/arch/arm64/configs/defconfig
            and qcom\_defconfig files.

**Parent Topic:** [Configure](https://docs.qualcomm.com/doc/80-70014-6/topic/configuration.html)

Last Published: Jul 10, 2024

[Previous Topic
Configure](https://docs.qualcomm.com/bundle/publicresource/80-70014-6/topics/configuration.md) [Next Topic
Power management states](https://docs.qualcomm.com/bundle/publicresource/80-70014-6/topics/power_management_states.md)