3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
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,
25 * PowerPC 8xx/8260 Internal Memory Map commands
30 #if (CONFIG_COMMANDS & CFG_CMD_IMMAP) && \
31 (defined(CONFIG_8xx) || defined(CONFIG_8260))
33 #define CMD_TBL_SIUINFO MK_CMD_TBL_ENTRY( \
34 "siuinfo", 3, 1, 1, do_siuinfo, \
35 "siuinfo - print System Interface Unit (SIU) registers\n", \
39 #define CMD_TBL_MEMCINFO MK_CMD_TBL_ENTRY( \
40 "memcinfo", 4, 1, 1, do_memcinfo, \
41 "memcinfo- print Memory Controller registers\n", \
45 #define CMD_TBL_SITINFO MK_CMD_TBL_ENTRY( \
46 "sitinfo", 3, 1, 1, do_sitinfo, \
47 "sitinfo - print System Integration Timers (SIT) registers\n", \
52 #define CMD_TBL_ICINFO MK_CMD_TBL_ENTRY( \
53 "icinfo", 3, 1, 1, do_icinfo, \
54 "icinfo - print Interrupt Controller registers\n", \
59 #define CMD_TBL_CARINFO MK_CMD_TBL_ENTRY( \
60 "carinfo", 3, 1, 1, do_carinfo, \
61 "carinfo - print Clocks and Reset registers\n", \
65 #define CMD_TBL_IOPINFO MK_CMD_TBL_ENTRY( \
66 "iopinfo", 4, 1, 1, do_iopinfo, \
67 "iopinfo - print I/O Port registers\n", \
71 #define CMD_TBL_IOPSET MK_CMD_TBL_ENTRY( \
72 "iopset", 4, 5, 0, do_iopset, \
73 "iopset - set I/O Port registers\n", \
74 "PORT PIN CMD VALUE\nPORT: A-D, PIN: 0-31, CMD: [dat|dir|odr|sor], VALUE: 0|1" \
77 #define CMD_TBL_DMAINFO MK_CMD_TBL_ENTRY( \
78 "dmainfo", 3, 1, 1, do_dmainfo, \
79 "dmainfo - print SDMA/IDMA registers\n", \
83 #define CMD_TBL_FCCINFO MK_CMD_TBL_ENTRY( \
84 "fccinfo", 3, 1, 1, do_fccinfo, \
85 "fccinfo - print FCC registers\n", \
89 #define CMD_TBL_BRGINFO MK_CMD_TBL_ENTRY( \
90 "brginfo", 3, 1, 1, do_brginfo, \
91 "brginfo - print Baud Rate Generator (BRG) registers\n", \
95 #define CMD_TBL_I2CINFO MK_CMD_TBL_ENTRY( \
96 "i2cinfo", 4, 1, 1, do_i2cinfo, \
97 "i2cinfo - print I2C registers\n", \
101 #define CMD_TBL_SCCINFO MK_CMD_TBL_ENTRY( \
102 "sccinfo", 3, 1, 1, do_sccinfo, \
103 "sccinfo - print SCC registers\n", \
107 #define CMD_TBL_SMCINFO MK_CMD_TBL_ENTRY( \
108 "smcinfo", 3, 1, 1, do_smcinfo, \
109 "smcinfo - print SMC registers\n", \
113 #define CMD_TBL_SPIINFO MK_CMD_TBL_ENTRY( \
114 "spiinfo", 3, 1, 1, do_spiinfo, \
115 "spiinfo - print Serial Peripheral Interface (SPI) registers\n",\
119 #define CMD_TBL_MUXINFO MK_CMD_TBL_ENTRY( \
120 "muxinfo", 3, 1, 1, do_muxinfo, \
121 "muxinfo - print CPM Multiplexing registers\n", \
125 #define CMD_TBL_SIINFO MK_CMD_TBL_ENTRY( \
126 "siinfo", 3, 1, 1, do_siinfo, \
127 "siinfo - print Serial Interface (SI) registers\n", \
131 #define CMD_TBL_MCCINFO MK_CMD_TBL_ENTRY( \
132 "mccinfo", 3, 1, 1, do_mccinfo, \
133 "mccinfo - print MCC registers\n", \
137 int do_siuinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
138 int do_memcinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
139 int do_sitinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
141 int do_icinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
143 int do_carinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
144 int do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
145 int do_iopset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
146 int do_dmainfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
147 int do_fccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
148 int do_brginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
149 int do_i2cinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
150 int do_sccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
151 int do_smcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
152 int do_spiinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
153 int do_muxinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
154 int do_siinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
155 int do_mccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
159 #define CMD_TBL_SIUINFO
160 #define CMD_TBL_MEMCINFO
161 #define CMD_TBL_SITINFO
163 #define CMD_TBL_ICINFO
165 #define CMD_TBL_CARINFO
166 #define CMD_TBL_IOPINFO
167 #define CMD_TBL_IOPSET
168 #define CMD_TBL_DMAINFO
169 #define CMD_TBL_FCCINFO
170 #define CMD_TBL_BRGINFO
171 #define CMD_TBL_I2CINFO
172 #define CMD_TBL_SCCINFO
173 #define CMD_TBL_SMCINFO
174 #define CMD_TBL_SPIINFO
175 #define CMD_TBL_MUXINFO
176 #define CMD_TBL_SIINFO
177 #define CMD_TBL_MCCINFO
179 #endif /* CFG_CMD_IMMAP && (CONFIG_8xx || CONFIG_8260) */
181 #endif /* _CMD_IMMAP_H */