imx: ventana: Rework CONFIG_CMD_GSC code to not be included in SPL
authorTom Rini <trini@konsulko.com>
Wed, 3 Jan 2018 14:16:29 +0000 (09:16 -0500)
committerStefano Babic <sbabic@denx.de>
Fri, 12 Jan 2018 13:28:04 +0000 (14:28 +0100)
The command can only be used from full U-Boot, so do not build it into
SPL.

Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
board/gateworks/gw_ventana/gsc.c

index 68b1ddb532e0cf60bd43a1b61f181536609b6ca8..f2a01b84deb29c74a381eacd07a88be40163f79c 100644 (file)
@@ -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[])
 {