Skip to contentSkip to conversation

imx: ventana: Rework CONFIG_CMD_GSC code to not be included in SPL

PATCH New Tom Rini 4 participants 4 messages Jan 3, 2018 – Jan 12, 2018

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 imx: ventana: Rework CONFIG_CMD_GSC code to not be included in SPL

The command can only be used from full U-Boot, so do not build it into SPL.

Cc Stefano Babic <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Tim Harvey <[email protected]>
---
 board/gateworks/gw_ventana/gsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/gateworks/gw_ventana/gsc.c +1 -1
index 68b1ddb532e0..f2a01b84deb2 100644
@@ -172,7 +172,7 @@ int gsc_boot_wd_disable(void)
 	return 1;
 }
 
-#ifdef CONFIG_CMD_GSC
+#if defined(CONFIG_CMD_GSC) && !defined(CONFIG_SPL_BUILD)
 static int do_gsc_sleep(cmd_tbl_t *cmdtp, int flag, int argc,
 			char * const argv[])
 {
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 imx: ventana: Rework CONFIG_CMD_GSC code to not be included in SPL

Quoted 25 lines · Tom Rini

The command can only be used from full U-Boot, so do not build it into SPL.

Cc Stefano Babic <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Tim Harvey <[email protected]>
---
 board/gateworks/gw_ventana/gsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/gateworks/gw_ventana/gsc.c +1 -2
index 68b1ddb532e0..f2a01b84deb2 100644
@@ -172,7 +172,7 @@ int gsc_boot_wd_disable(void)
        return 1;
 }
 
-#ifdef CONFIG_CMD_GSC
+#if defined(CONFIG_CMD_GSC) && !defined(CONFIG_SPL_BUILD)
 static int do_gsc_sleep(cmd_tbl_t *cmdtp, int flag, int argc,
                        char * const argv[])
 {
--
Quoted 2 lines

2.7.4

Thanks Tom,

Tim

#3 lore raw

PATCH 1/1 imx: ventana: Rework CONFIG_CMD_GSC code to not be included in SPL

In reply to Tom Rini
Quoted 17 lines · Tom Rini

The command can only be used from full U-Boot, so do not build it into SPL.

Cc Stefano Babic <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Tim Harvey <[email protected]>
---
 board/gateworks/gw_ventana/gsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/gateworks/gw_ventana/gsc.c +0 -0
index 68b1ddb532e0..f2a01b84deb2 100644

board/gateworks/gw_ventana/gsc.c int gsc_boot_wd_disable(void) · line 178

Quoted 8 lines
board/gateworks/gw_ventana/gsc.c +1 -1
@@ -172,7 +172,7 @@ int gsc_boot_wd_disable(void)
 	return 1;
 }
 
-#ifdef CONFIG_CMD_GSC
+#if defined(CONFIG_CMD_GSC) && !defined(CONFIG_SPL_BUILD)
 static int do_gsc_sleep(cmd_tbl_t *cmdtp, int flag, int argc,
 			char * const argv[])
 {

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================