summaryrefslogtreecommitdiff
path: root/board/digsy_mtc/digsy_mtc.c
diff options
context:
space:
mode:
authorGrzegorz Bernacki <gjb@semihalf.com>2009-06-12 11:33:54 +0200
committerWolfgang Denk <wd@denx.de>2009-06-14 23:04:37 +0200
commit12304871bc7839145f2b4238923e9023616d7399 (patch)
tree03bd8c431bafd304ac7989a10af41e33106f7d15 /board/digsy_mtc/digsy_mtc.c
parentf1f66edfc76f4a9f5b9f63972d90309784a8cae5 (diff)
downloadu-boot-imx-12304871bc7839145f2b4238923e9023616d7399.zip
u-boot-imx-12304871bc7839145f2b4238923e9023616d7399.tar.gz
u-boot-imx-12304871bc7839145f2b4238923e9023616d7399.tar.bz2
digsy MTC: Add 'mtc' command.
New command allows to: o check FW version o set LED status o set digital output status o get digital input status Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
Diffstat (limited to 'board/digsy_mtc/digsy_mtc.c')
-rw-r--r--board/digsy_mtc/digsy_mtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/digsy_mtc/digsy_mtc.c b/board/digsy_mtc/digsy_mtc.c
index cc6087b..9d77e54 100644
--- a/board/digsy_mtc/digsy_mtc.c
+++ b/board/digsy_mtc/digsy_mtc.c
@@ -240,6 +240,7 @@ void board_get_enetaddr (uchar * enet)
int misc_init_r(void)
{
+ extern int mtc_cmd_init_r (void);
uchar enetaddr[6];
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
@@ -247,6 +248,7 @@ int misc_init_r(void)
eth_setenv_enetaddr("ethaddr", enetaddr);
}
+ mtc_cmd_init_r();
return 0;
}