]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/cmd_immap.h
Fix SDRAM timing on Purple board
[karo-tx-uboot.git] / include / cmd_immap.h
1 /*
2  * (C) Copyright 2000
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
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.
12  *
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.
17  *
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,
21  * MA 02111-1307 USA
22  */
23
24 /*
25  * PowerPC 8xx/8260 Internal Memory Map commands
26  */
27 #ifndef _CMD_IMMAP_H
28 #define _CMD_IMMAP_H
29
30 #if (CONFIG_COMMANDS & CFG_CMD_IMMAP) && \
31     (defined(CONFIG_8xx) || defined(CONFIG_8260))
32
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",      \
36         NULL                                                            \
37 ),
38
39 #define CMD_TBL_MEMCINFO        MK_CMD_TBL_ENTRY(                       \
40         "memcinfo",     4,      1,      1,      do_memcinfo,            \
41         "memcinfo- print Memory Controller registers\n",                \
42         NULL                                                            \
43 ),
44
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",  \
48         NULL                                                            \
49 ),
50
51 #ifdef CONFIG_8260
52 #define CMD_TBL_ICINFO          MK_CMD_TBL_ENTRY(                       \
53         "icinfo",       3,      1,      1,      do_icinfo,              \
54         "icinfo  - print Interrupt Controller registers\n",             \
55         NULL                                                            \
56 ),
57 #endif
58
59 #define CMD_TBL_CARINFO         MK_CMD_TBL_ENTRY(                       \
60         "carinfo",      3,      1,      1,      do_carinfo,             \
61         "carinfo - print Clocks and Reset registers\n",                 \
62         NULL                                                            \
63 ),
64
65 #define CMD_TBL_IOPINFO         MK_CMD_TBL_ENTRY(                       \
66         "iopinfo",      4,      1,      1,      do_iopinfo,             \
67         "iopinfo - print I/O Port registers\n",                         \
68         NULL                                                            \
69 ),
70
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" \
75 ),
76
77 #define CMD_TBL_DMAINFO         MK_CMD_TBL_ENTRY(                       \
78         "dmainfo",      3,      1,      1,      do_dmainfo,             \
79         "dmainfo - print SDMA/IDMA registers\n",                        \
80         NULL                                                            \
81 ),
82
83 #define CMD_TBL_FCCINFO         MK_CMD_TBL_ENTRY(                       \
84         "fccinfo",      3,      1,      1,      do_fccinfo,             \
85         "fccinfo - print FCC registers\n",                              \
86         NULL                                                            \
87 ),
88
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",        \
92         NULL                                                            \
93 ),
94
95 #define CMD_TBL_I2CINFO         MK_CMD_TBL_ENTRY(                       \
96         "i2cinfo",      4,      1,      1,      do_i2cinfo,             \
97         "i2cinfo - print I2C registers\n",                              \
98         NULL                                                            \
99 ),
100
101 #define CMD_TBL_SCCINFO         MK_CMD_TBL_ENTRY(                       \
102         "sccinfo",      3,      1,      1,      do_sccinfo,             \
103         "sccinfo - print SCC registers\n",                              \
104         NULL                                                            \
105 ),
106
107 #define CMD_TBL_SMCINFO         MK_CMD_TBL_ENTRY(                       \
108         "smcinfo",      3,      1,      1,      do_smcinfo,             \
109         "smcinfo - print SMC registers\n",                              \
110         NULL                                                            \
111 ),
112
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",\
116         NULL                                                            \
117 ),
118
119 #define CMD_TBL_MUXINFO         MK_CMD_TBL_ENTRY(                       \
120         "muxinfo",      3,      1,      1,      do_muxinfo,             \
121         "muxinfo - print CPM Multiplexing registers\n",                 \
122         NULL                                                            \
123 ),
124
125 #define CMD_TBL_SIINFO          MK_CMD_TBL_ENTRY(                       \
126         "siinfo",       3,      1,      1,      do_siinfo,              \
127         "siinfo  - print Serial Interface (SI) registers\n",            \
128         NULL                                                            \
129 ),
130
131 #define CMD_TBL_MCCINFO         MK_CMD_TBL_ENTRY(                       \
132         "mccinfo",      3,      1,      1,      do_mccinfo,             \
133         "mccinfo - print MCC registers\n",                              \
134         NULL                                                            \
135 ),
136
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[]);
140 #ifdef CONFIG_8260
141 int do_icinfo  (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
142 #endif
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[]);
156
157 #else
158
159 #define CMD_TBL_SIUINFO
160 #define CMD_TBL_MEMCINFO
161 #define CMD_TBL_SITINFO
162 #ifdef CONFIG_8260
163 #define CMD_TBL_ICINFO
164 #endif
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
178
179 #endif  /* CFG_CMD_IMMAP && (CONFIG_8xx || CONFIG_8260) */
180
181 #endif  /* _CMD_IMMAP_H */