Skip to contentSkip to conversation

configs: verdin-am62: Drop unused or redundant config options

PATCH In review Emanuele Ghidoli 3 participants 3 messages May 6, 2025 – May 22, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: verdin-am62: Drop unused or redundant config options

From: Emanuele Ghidoli <[email protected]>

Several Kconfig options are enabled but unused or unnecessary for our use case. These include features such as SPL FAT support, YMODEM, and USB keyboard. Some R5-specific configurations are not used at all, as U-Boot proper is not executed on that core.

Cleaning them up helps reduce build size and simplifies maintenance.

---
 configs/verdin-am62_a53_defconfig | 7 -------
 configs/verdin-am62_r5_defconfig  | 6 ------
 2 files changed, 13 deletions(-)
configs/verdin-am62_a53_defconfig +0 -7
index 4bdcb4b6c461..c299c9fe4ad6 100644
@@ -1,5 +1,4 @@
 CONFIG_ARM=y
-CONFIG_SKIP_LOWLEVEL_INIT=y
 CONFIG_ARCH_K3=y
 CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_SYS_MALLOC_F_LEN=0x8000
@@ -28,8 +27,6 @@ CONFIG_SYS_BOOTM_LEN=0x40000000
 CONFIG_SYS_LOAD_ADDR=0x88200000
 CONFIG_SPL_SIZE_LIMIT=0x40000
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x800
-CONFIG_SPL_FS_FAT=y
-CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SYS_MEMTEST_START=0x80000000
 CONFIG_SYS_MEMTEST_END=0xB0000000
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
@@ -53,13 +50,11 @@ CONFIG_SPL_SYS_MMCSD_RAW_MODE=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400
 CONFIG_SPL_DMA=y
 CONFIG_SPL_ENV_SUPPORT=y
-CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
 CONFIG_SPL_I2C=y
 CONFIG_SPL_DM_MAILBOX=y
 CONFIG_SPL_POWER_DOMAIN=y
 CONFIG_SPL_RAM_DEVICE=y
 CONFIG_SPL_THERMAL=y
-CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_SYS_PROMPT="Verdin AM62 # "
 CONFIG_CMD_ADTIMG=y
 CONFIG_CMD_ASKENV=y
@@ -192,8 +187,6 @@ CONFIG_USB_DWC3_GENERIC=y
 CONFIG_SPL_USB_DWC3_GENERIC=y
 CONFIG_SPL_USB_DWC3_AM62=y
 CONFIG_USB_DWC3_AM62=y
-CONFIG_USB_KEYBOARD=y
-CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_GADGET=y
 CONFIG_SPL_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Toradex"
configs/verdin-am62_r5_defconfig +0 -6
index f9580e697ff0..6d662f2febf2 100644
@@ -47,14 +47,8 @@ CONFIG_SPL_DM_MAILBOX=y
 CONFIG_SPL_DM_RESET=y
 CONFIG_SPL_POWER_DOMAIN=y
 CONFIG_SPL_RAM_DEVICE=y
-CONFIG_SPL_YMODEM_SUPPORT=y
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_ASKENV=y
 CONFIG_CMD_DFU=y
-CONFIG_CMD_GPT=y
-CONFIG_CMD_MMC=y
 # CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_TIME=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_SPL_MULTI_DTB_FIT=y
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Emanuele Ghidoli

From: Emanuele Ghidoli <[email protected]>

Several Kconfig options are enabled but unused or unnecessary for our use case. These include features such as SPL FAT support, YMODEM, and USB keyboard. Some R5-specific configurations are not used at all, as U-Boot proper is not executed on that core.

Cleaning them up helps reduce build size and simplifies maintenance.

#2 lore raw
In reply to Emanuele Ghidoli
Quoted 8 lines · Emanuele Ghidoli

Several Kconfig options are enabled but unused or unnecessary for our use case. These include features such as SPL FAT support, YMODEM, and USB keyboard. Some R5-specific configurations are not used at all, as U-Boot proper is not executed on that core.

Cleaning them up helps reduce build size and simplifies maintenance.

[...]

Applied to u-boot/next, thanks!

[1/1] configs: verdin-am62: Drop unused or redundant config options

      commit: df8dbc87a2570e99ba73d8e0a097797126040568
Signature · 1 line
Tom