3 * Denis Peter, MPL AG Switzerland, d.peter@mpl.ch
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 #include "../common/common_util.h"
32 extern void print_pip405_info(void);
33 extern int do_mplcommon(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
36 /* ------------------------------------------------------------------------- */
38 int do_pip405(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
43 if (strcmp(argv[1], "info") == 0)
48 if (strcmp(argv[1], "led") == 0)
50 led_nr = (ulong)simple_strtoul(argv[2], NULL, 10);
51 led_on = (ulong)simple_strtoul(argv[3], NULL, 10);
59 return (do_mplcommon(cmdtp, flag, argc, argv));
62 pip405, 6, 1, do_pip405,
63 "pip405 - PIP405 specific Cmds\n",
64 "flash mem [SrcAddr] - updates U-Boot with image in memory\n"
65 "pip405 flash floppy [SrcAddr] - updates U-Boot with image from floppy\n"
66 "pip405 flash mps - updates U-Boot with image from MPS\n"
69 /* ------------------------------------------------------------------------- */