diff mbox series

[07/18] ram: Support driver model in TPL

Message ID 20240828014538.3322013-8-sjg@chromium.org
State Changes Requested
Delegated to: Tom Rini
Headers show
Series vbe: Series part D | expand

Commit Message

Simon Glass Aug. 28, 2024, 1:45 a.m. UTC
Some boards want to use RAM in TPL so add an option for that.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/ram/Kconfig | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Tom Rini Sept. 4, 2024, 6:14 p.m. UTC | #1
On Tue, Aug 27, 2024 at 07:45:26PM -0600, Simon Glass wrote:

> Some boards want to use RAM in TPL so add an option for that.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  drivers/ram/Kconfig | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/ram/Kconfig b/drivers/ram/Kconfig
> index a64d2dff68d..f7e357f24da 100644
> --- a/drivers/ram/Kconfig
> +++ b/drivers/ram/Kconfig
> @@ -26,6 +26,15 @@ config TPL_RAM
>  	  TPL, enable this option. It might provide a cleaner interface to
>  	  setting up RAM (e.g. SDRAM / DDR) within TPL.
>  
> +config VPL_RAM
> +	bool "Enable RAM support in VPL"
> +	depends on RAM && VPL

Subject and commit say TPL, but this is VPL.
diff mbox series

Patch

diff --git a/drivers/ram/Kconfig b/drivers/ram/Kconfig
index a64d2dff68d..f7e357f24da 100644
--- a/drivers/ram/Kconfig
+++ b/drivers/ram/Kconfig
@@ -26,6 +26,15 @@  config TPL_RAM
 	  TPL, enable this option. It might provide a cleaner interface to
 	  setting up RAM (e.g. SDRAM / DDR) within TPL.
 
+config VPL_RAM
+	bool "Enable RAM support in VPL"
+	depends on RAM && VPL
+	help
+	  The RAM subsystem adds a small amount of overhead to the image.
+	  If this is acceptable and you have a need to use RAM drivers in
+	  VPL, enable this option. It might provide a cleaner interface to
+	  setting up RAM (e.g. SDRAM / DDR) within VPL.
+
 config STM32_SDRAM
 	bool "Enable STM32 SDRAM support"
 	depends on RAM