From 7eccef8a186e5800c0baf9abb238c6e56d0e400b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0imek?= Date: Tue, 28 Jan 2025 13:05:02 +0100 Subject: [PATCH] Change Cadence i2c and Zynq GPIO from modules to built-in drivers (#3821) On Kria KD240 slg7xl45106 device is handling reset for USB hub which is providing access to SD card (USB/SD converter). Access to this device is done via i2c which needs to be also enabled in the kernel as built-in driver not as module when rootfs is mounted. Also change ZYNQ_GPIO to be built-in driver because i2c is using gpio for bus recovery that's why it should be also enabled to probe i2c driver properly. v6.6 kernel doesn't have support for usb5744 driver that's why disable it but add TODO to enable it once v6.12 upgrade is done. --- .../board/arm-uefi/generic-aarch64/kernel.config | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/buildroot-external/board/arm-uefi/generic-aarch64/kernel.config b/buildroot-external/board/arm-uefi/generic-aarch64/kernel.config index 3862de136..3733fd343 100644 --- a/buildroot-external/board/arm-uefi/generic-aarch64/kernel.config +++ b/buildroot-external/board/arm-uefi/generic-aarch64/kernel.config @@ -59,15 +59,18 @@ CONFIG_FB_HYPERV=y CONFIG_I6300ESB_WDT=y # GPIO support -CONFIG_GPIO_ZYNQ=m +CONFIG_GPIO_ZYNQ=y CONFIG_GPIO_PCA9570=y # PHY drivers CONFIG_PHY_XILINX_ZYNQMP=y # USB support -# TODO: change to `CONFIG_USB_ONBOARD_DEV` in 6.12 -CONFIG_USB_ONBOARD_HUB=y +# TODO: enable `CONFIG_USB_ONBOARD_DEV` in 6.12 +# TODO: enable `CONFIG_USB_ONBOARD_DEV_USB5744` in 6.12 + +# i2c support +CONFIG_I2C_CADENCE=y # 1-wire CONFIG_W1_MASTER_AMD_AXI=m