[PATCH] ram: Move Kconfig options into their own menu entry

Quentin Schulz quentin.schulz at cherry.de
Mon Jun 2 14:28:27 CEST 2025


Hi Yao Zi,

On 6/2/25 12:15 PM, Yao Zi wrote:
> RAM drivers using Device Model currently lack of their own Kconfig menu
> entry, which makes Kconfig put all options of the class in the top-level
> menu of device drivers. These options are also incorrectly grouped with
> pinctrl options in the generated .config, which is hard to read. Let's
> create a menu entry for these drivers.
> 
> Fixes: 6c51df6859f ("dm: Add support for RAM drivers")
> Signed-off-by: Yao Zi <ziyao at disroot.org>

Reviewed-by: Quentin Schulz <quentin.schulz at cherry.de>

> ---
>   drivers/ram/Kconfig | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/ram/Kconfig b/drivers/ram/Kconfig
> index 39d03e8d3d3..edb8e254d5b 100644
> --- a/drivers/ram/Kconfig
> +++ b/drivers/ram/Kconfig
> @@ -1,3 +1,5 @@
> +menu "RAM drivers using Driver Model"
> +

Considering SPL_RAM, TPL_RAM and VPL_RAM all depend on RAM, you could 
also go the same route as AXI and have:

menuconfig RAM

>   	bool "Enable RAM drivers using Driver Model"
>   	depends on DM

[...]

if RAM

> @@ -136,3 +138,5 @@ source "drivers/ram/stm32mp1/Kconfig"
>   source "drivers/ram/starfive/Kconfig"
>   source "drivers/ram/sunxi/Kconfig"
>   source "drivers/ram/thead/Kconfig"

endif

Up to you :)

Cheers,
Quentin


More information about the U-Boot mailing list