projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'u-boot/master' into u-boot-arm-merged
[platform/kernel/u-boot.git]
/
common
/
cmd_immap.c
diff --git
a/common/cmd_immap.c
b/common/cmd_immap.c
index
559d7b4
..
1f59c1e
100644
(file)
--- a/
common/cmd_immap.c
+++ b/
common/cmd_immap.c
@@
-28,8
+28,7
@@
#include <common.h>
#include <command.h>
#include <common.h>
#include <command.h>
-#if (CONFIG_COMMANDS & CFG_CMD_IMMAP) && \
- (defined(CONFIG_8xx) || defined(CONFIG_8260))
+#if defined(CONFIG_8xx) || defined(CONFIG_8260)
#if defined(CONFIG_8xx)
#include <asm/8xx_immap.h>
#if defined(CONFIG_8xx)
#include <asm/8xx_immap.h>
@@
-41,17
+40,19
@@
#include <asm/iopin_8260.h>
#endif
#include <asm/iopin_8260.h>
#endif
+DECLARE_GLOBAL_DATA_PTR;
+
static void
static void
-unimplemented ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+unimplemented ( cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
printf ("Sorry, but the '%s' command has not been implemented\n",
cmdtp->name);
}
int
{
printf ("Sorry, but the '%s' command has not been implemented\n",
cmdtp->name);
}
int
-do_siuinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_siuinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
#if defined(CONFIG_8xx)
volatile sysconf8xx_t *sc = &immap->im_siu_conf;
#if defined(CONFIG_8xx)
volatile sysconf8xx_t *sc = &immap->im_siu_conf;
@@
-80,9
+81,9
@@
do_siuinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
int
}
int
-do_memcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_memcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
#if defined(CONFIG_8xx)
volatile memctl8xx_t *memctl = &immap->im_memctl;
#if defined(CONFIG_8xx)
volatile memctl8xx_t *memctl = &immap->im_memctl;
@@
-132,7
+133,7
@@
do_memcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
int
}
int
-do_sitinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_sitinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
@@
-140,7
+141,7
@@
do_sitinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
#ifdef CONFIG_8260
int
#ifdef CONFIG_8260
int
-do_icinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_icinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
@@
-148,9
+149,9
@@
do_icinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
#endif
int
#endif
int
-do_carinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_carinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
#if defined(CONFIG_8xx)
volatile car8xx_t *car = &immap->im_clkrst;
#if defined(CONFIG_8xx)
volatile car8xx_t *car = &immap->im_clkrst;
@@
-232,9
+233,9
@@
static void binary (char *label, uint value, int nbits)
#endif
int
#endif
int
-do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
#if defined(CONFIG_8xx)
volatile iop8xx_t *iop = &immap->im_ioport;
#if defined(CONFIG_8xx)
volatile iop8xx_t *iop = &immap->im_ioport;
@@
-315,7
+316,7
@@
do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
* use *uint and set the address based on cmd + port
*/
int
* use *uint and set the address based on cmd + port
*/
int
-do_iopset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_iopset (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
uint rcode = 0;
iopin_t iopin;
{
uint rcode = 0;
iopin_t iopin;
@@
-430,14
+431,14
@@
do_iopset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
int
}
int
-do_dmainfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_dmainfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
-do_fccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_fccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
@@
-450,10
+451,8
@@
static void prbrg (int n, uint val)
uint div16 = (val & CPM_BRG_DIV16) != 0;
#if defined(CONFIG_8xx)
uint div16 = (val & CPM_BRG_DIV16) != 0;
#if defined(CONFIG_8xx)
- DECLARE_GLOBAL_DATA_PTR;
ulong clock = gd->cpu_clk;
#elif defined(CONFIG_8260)
ulong clock = gd->cpu_clk;
#elif defined(CONFIG_8260)
- DECLARE_GLOBAL_DATA_PTR;
ulong clock = gd->brg_clk;
#endif
ulong clock = gd->brg_clk;
#endif
@@
-499,9
+498,9
@@
static void prbrg (int n, uint val)
}
int
}
int
-do_brginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_brginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
#if defined(CONFIG_8xx)
volatile cpm8xx_t *cp = &immap->im_cpm;
#if defined(CONFIG_8xx)
volatile cpm8xx_t *cp = &immap->im_cpm;
@@
-523,9
+522,9
@@
do_brginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
int
}
int
-do_i2cinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_i2cinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
#if defined(CONFIG_8xx)
volatile i2c8xx_t *i2c = &immap->im_i2c;
#if defined(CONFIG_8xx)
volatile i2c8xx_t *i2c = &immap->im_i2c;
@@
-570,42
+569,42
@@
do_i2cinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
int
}
int
-do_sccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_sccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
-do_smcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_smcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
-do_spiinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_spiinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
-do_muxinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_muxinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
-do_siinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_siinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
}
int
-do_mccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_mccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *
const
argv[])
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
{
unimplemented (cmdtp, flag, argc, argv);
return 0;
@@
-615,107
+614,106
@@
do_mccinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
U_BOOT_CMD(
siuinfo, 1, 1, do_siuinfo,
U_BOOT_CMD(
siuinfo, 1, 1, do_siuinfo,
- "
siuinfo - print System Interface Unit (SIU) registers\n
",
- NULL
+ "
print System Interface Unit (SIU) registers
",
+ ""
);
U_BOOT_CMD(
memcinfo, 1, 1, do_memcinfo,
);
U_BOOT_CMD(
memcinfo, 1, 1, do_memcinfo,
- "
memcinfo- print Memory Controller registers\n
",
- NULL
+ "
print Memory Controller registers
",
+ ""
);
U_BOOT_CMD(
sitinfo, 1, 1, do_sitinfo,
);
U_BOOT_CMD(
sitinfo, 1, 1, do_sitinfo,
- "
sitinfo - print System Integration Timers (SIT) registers\n
",
- NULL
+ "
print System Integration Timers (SIT) registers
",
+ ""
);
#ifdef CONFIG_8260
U_BOOT_CMD(
icinfo, 1, 1, do_icinfo,
);
#ifdef CONFIG_8260
U_BOOT_CMD(
icinfo, 1, 1, do_icinfo,
- "
icinfo - print Interrupt Controller registers\n
",
- NULL
+ "
print Interrupt Controller registers
",
+ ""
);
#endif
U_BOOT_CMD(
carinfo, 1, 1, do_carinfo,
);
#endif
U_BOOT_CMD(
carinfo, 1, 1, do_carinfo,
- "
carinfo - print Clocks and Reset registers\n
",
- NULL
+ "
print Clocks and Reset registers
",
+ ""
);
U_BOOT_CMD(
iopinfo, 1, 1, do_iopinfo,
);
U_BOOT_CMD(
iopinfo, 1, 1, do_iopinfo,
- "
iopinfo - print I/O Port registers\n
",
- NULL
+ "
print I/O Port registers
",
+ ""
);
U_BOOT_CMD(
iopset, 5, 0, do_iopset,
);
U_BOOT_CMD(
iopset, 5, 0, do_iopset,
- "
iopset - set I/O Port registers\n
",
+ "
set I/O Port registers
",
"PORT PIN CMD VALUE\nPORT: A-D, PIN: 0-31, CMD: [dat|dir|odr|sor], VALUE: 0|1"
);
U_BOOT_CMD(
dmainfo, 1, 1, do_dmainfo,
"PORT PIN CMD VALUE\nPORT: A-D, PIN: 0-31, CMD: [dat|dir|odr|sor], VALUE: 0|1"
);
U_BOOT_CMD(
dmainfo, 1, 1, do_dmainfo,
- "
dmainfo - print SDMA/IDMA registers\n
",
- NULL
+ "
print SDMA/IDMA registers
",
+ ""
);
U_BOOT_CMD(
fccinfo, 1, 1, do_fccinfo,
);
U_BOOT_CMD(
fccinfo, 1, 1, do_fccinfo,
- "
fccinfo - print FCC registers\n
",
- NULL
+ "
print FCC registers
",
+ ""
);
U_BOOT_CMD(
brginfo, 1, 1, do_brginfo,
);
U_BOOT_CMD(
brginfo, 1, 1, do_brginfo,
- "
brginfo - print Baud Rate Generator (BRG) registers\n
",
- NULL
+ "
print Baud Rate Generator (BRG) registers
",
+ ""
);
U_BOOT_CMD(
i2cinfo, 1, 1, do_i2cinfo,
);
U_BOOT_CMD(
i2cinfo, 1, 1, do_i2cinfo,
- "
i2cinfo - print I2C registers\n
",
- NULL
+ "
print I2C registers
",
+ ""
);
U_BOOT_CMD(
sccinfo, 1, 1, do_sccinfo,
);
U_BOOT_CMD(
sccinfo, 1, 1, do_sccinfo,
- "
sccinfo - print SCC registers\n
",
- NULL
+ "
print SCC registers
",
+ ""
);
U_BOOT_CMD(
smcinfo, 1, 1, do_smcinfo,
);
U_BOOT_CMD(
smcinfo, 1, 1, do_smcinfo,
- "
smcinfo - print SMC registers\n
",
- NULL
+ "
print SMC registers
",
+ ""
);
U_BOOT_CMD(
spiinfo, 1, 1, do_spiinfo,
);
U_BOOT_CMD(
spiinfo, 1, 1, do_spiinfo,
- "
spiinfo - print Serial Peripheral Interface (SPI) registers\n
",
- NULL
+ "
print Serial Peripheral Interface (SPI) registers
",
+ ""
);
U_BOOT_CMD(
muxinfo, 1, 1, do_muxinfo,
);
U_BOOT_CMD(
muxinfo, 1, 1, do_muxinfo,
- "
muxinfo - print CPM Multiplexing registers\n
",
- NULL
+ "
print CPM Multiplexing registers
",
+ ""
);
U_BOOT_CMD(
siinfo, 1, 1, do_siinfo,
);
U_BOOT_CMD(
siinfo, 1, 1, do_siinfo,
- "
siinfo - print Serial Interface (SI) registers\n
",
- NULL
+ "
print Serial Interface (SI) registers
",
+ ""
);
U_BOOT_CMD(
mccinfo, 1, 1, do_mccinfo,
);
U_BOOT_CMD(
mccinfo, 1, 1, do_mccinfo,
- "
mccinfo - print MCC registers\n
",
- NULL
+ "
print MCC registers
",
+ ""
);
);
-
-#endif /* CFG_CMD_IMMAP && (CONFIG_8xx || CONFIG_8260) */
+#endif