2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation; either version 2 of
5 * the License, or (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 #if (CONFIG_COMMANDS & CFG_CMD_NAND)
29 #define CMD_TBL_NAND MK_CMD_TBL_ENTRY( \
30 "nand", 3, 5, 1, do_nand, \
31 "nand - NAND sub-system\n", \
32 "info - show available NAND devices\n" \
33 "nand device [dev] - show or set current device\n" \
34 "nand read addr off size\n" \
35 "nand write addr off size - read/write `size'" \
36 " bytes starting at offset `off'\n" \
37 " to/from memory address `addr'\n" \
38 "nand erase off size - erase `size' bytes of NAND from offset `off'\n" \
41 #define CMD_TBL_NANDBOOT MK_CMD_TBL_ENTRY( \
42 "nboot", 4, 4, 1, do_nandboot, \
43 "nboot - boot from NAND device\n", \
47 int do_nand (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
48 int do_nandboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
52 #define CMD_TBL_NANDBOOT
55 #endif /* _CMD_NAND_H */