]> git.sur5r.net Git - u-boot/commitdiff
powerpc: P1010RDB: Rework local command to not be included in SPL
authorTom Rini <trini@konsulko.com>
Wed, 3 Jan 2018 14:13:04 +0000 (09:13 -0500)
committerYork Sun <york.sun@nxp.com>
Mon, 15 Jan 2018 20:44:24 +0000 (12:44 -0800)
Add a CONFIG_SPL_BUILD guard around the code for the "mux" command so
it is not included in SPL.

Cc: Qiang Zhao <qiang.zhao@nxp.com>
Cc: York Sun <york.sun@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Reviewed-by: Qiang Zhao <qiang.zhao@nxp.com>
board/freescale/p1010rdb/p1010rdb.c

index aa04e993c460124a23dc858960dc563e761d2e26..a5d85c228279166eff02da24e8d04cbb0400e9b2 100644 (file)
@@ -550,6 +550,7 @@ int misc_init_r(void)
        return 0;
 }
 
+#ifndef CONFIG_SPL_BUILD
 static int pin_mux_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
                                char * const argv[])
 {
@@ -569,3 +570,4 @@ U_BOOT_CMD(
        "configure multiplexing pin for IFC/SDHC bus in runtime",
        "bus_type (e.g. mux sdhc)"
 );
+#endif