Root/
Source at commit ff3182da41eef87f6707159e6616f354a488f8b6 created 13 years 27 days ago. By Xiangfu Liu, add new command: reset, then we can reboot device after reflash | |
---|---|
1 | /* |
2 | * Copyright(C) 2009 Qi Hardware Inc., |
3 | * Authors: Xiangfu Liu <xiangfu@sharism.cc> |
4 | * |
5 | * This program is free software: you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by |
7 | * the Free Software Foundation, either version 3 of the License, or |
8 | * (at your option) any later version. |
9 | * |
10 | * This program is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * GNU General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU General Public License |
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ |
18 | |
19 | #ifndef __CMD_H__ |
20 | #define __CMD_H__ |
21 | |
22 | #include "usb_boot_defines.h" |
23 | |
24 | #define COMMAND_NUM 31 |
25 | #define MAX_ARGC 10 |
26 | #define MAX_COMMAND_LENGTH 100 |
27 | |
28 | int boot(char *stage1_path, char *stage2_path); |
29 | int init_nand_in(); |
30 | int nand_prog(void); |
31 | int nand_query(void); |
32 | int nand_erase(struct nand_in *nand_in); |
33 | int debug_memory(int obj, unsigned int start, unsigned int size); |
34 | int debug_gpio(int obj, unsigned char ops, unsigned char pin); |
35 | int debug_go(void); |
36 | int device_reset(int ops); |
37 | |
38 | #endif /* __CMD_H__ */ |
39 |