summaryrefslogtreecommitdiff
path: root/common/cmd_mii.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-04-18 23:32:11 +0000
committerwdenk <wdenk>2004-04-18 23:32:11 +0000
commite35745bb64fae64da3e1fa7f4afe3213287f5908 (patch)
tree492a81e51c1102c16ec8ad265fa218586ba523fb /common/cmd_mii.c
parent2471111d3511dab6b80e87bd5901be9fafa514db (diff)
downloadu-boot-imx-e35745bb64fae64da3e1fa7f4afe3213287f5908.zip
u-boot-imx-e35745bb64fae64da3e1fa7f4afe3213287f5908.tar.gz
u-boot-imx-e35745bb64fae64da3e1fa7f4afe3213287f5908.tar.bz2
* Temporarily disabled John Kerl's extended MII command code because
"miivals.h" is missing * Patches by Mark Jonas, 13 Apr 2004: - Remove CS0 chip select timing setting from cpu/mpc5xxx/start.S - Add sync instructions to IceCube SDRAM init code - Move SDRAM chip constants into seperate include files - Unify DDR and SDR initialization code - Unify all IceCube (Lite5xxx) target names
Diffstat (limited to 'common/cmd_mii.c')
-rw-r--r--common/cmd_mii.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/common/cmd_mii.c b/common/cmd_mii.c
index 4a84829..4539dc5 100644
--- a/common/cmd_mii.c
+++ b/common/cmd_mii.c
@@ -27,10 +27,11 @@
#include <common.h>
#include <command.h>
-#include <miiphy.h>
-#include <miivals.h>
#if (CONFIG_COMMANDS & CFG_CMD_MII)
+#include <miiphy.h>
+
+#define CONFIG_TERSE_MII /* XXX necessary here because "miivals.h" is missing */
#ifdef CONFIG_TERSE_MII
/*
@@ -145,7 +146,10 @@ U_BOOT_CMD(
"mii read <addr> <reg> - read MII PHY <addr> register <reg>\n"
"mii write <addr> <reg> <data> - write MII PHY <addr> register <reg>\n"
);
-#else /* CONFIG_TERSE_MII */
+
+#else /* ! CONFIG_TERSE_MII ================================================= */
+
+#include <miivals.h>
typedef struct _MII_reg_desc_t {
ushort regno;