All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] spl: ram: Convert to CONFIG_IS_ENABLED
@ 2018-04-07 15:03 Marek Vasut
  2018-04-11 20:59 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2018-04-07 15:03 UTC (permalink / raw)
  To: u-boot

This patch is a preparation for adding TPL support for RAM loading.
CONFIG_IS_ENABLED allows for proper handling of the U-Boot/SPL/TPL
differences in config symbol names.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Tom Rini <trini@konsulko.com>
---
 common/spl/spl_ram.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c
index d9db9f3a40..a15761e309 100644
--- a/common/spl/spl_ram.c
+++ b/common/spl/spl_ram.c
@@ -36,7 +36,7 @@ static int spl_ram_load_image(struct spl_image_info *spl_image,
 
 	header = (struct image_header *)CONFIG_SPL_LOAD_FIT_ADDRESS;
 
-#if defined(CONFIG_SPL_DFU_SUPPORT)
+#if CONFIG_IS_ENABLED(DFU_SUPPORT)
 	if (bootdev->boot_device == BOOT_DEVICE_DFU)
 		spl_dfu_cmd(0, "dfu_alt_info_ram", "ram", "0");
 #endif
@@ -74,10 +74,10 @@ static int spl_ram_load_image(struct spl_image_info *spl_image,
 
 	return 0;
 }
-#if defined(CONFIG_SPL_RAM_DEVICE)
+#if CONFIG_IS_ENABLED(RAM_DEVICE)
 SPL_LOAD_IMAGE_METHOD("RAM", 0, BOOT_DEVICE_RAM, spl_ram_load_image);
 #endif
-#if defined(CONFIG_SPL_DFU_SUPPORT)
+#if CONFIG_IS_ENABLED(DFU_SUPPORT)
 SPL_LOAD_IMAGE_METHOD("DFU", 0, BOOT_DEVICE_DFU, spl_ram_load_image);
 #endif
 
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] spl: ram: Convert to CONFIG_IS_ENABLED
  2018-04-07 15:03 [U-Boot] [PATCH] spl: ram: Convert to CONFIG_IS_ENABLED Marek Vasut
@ 2018-04-11 20:59 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2018-04-11 20:59 UTC (permalink / raw)
  To: u-boot

On Sat, Apr 07, 2018 at 05:03:28PM +0200, Marek Vasut wrote:

> This patch is a preparation for adding TPL support for RAM loading.
> CONFIG_IS_ENABLED allows for proper handling of the U-Boot/SPL/TPL
> differences in config symbol names.
> 
> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
> Cc: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180411/0fc31bc0/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-11 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-07 15:03 [U-Boot] [PATCH] spl: ram: Convert to CONFIG_IS_ENABLED Marek Vasut
2018-04-11 20:59 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.