summaryrefslogtreecommitdiff
path: root/arch/m68k/cpu/mcf5445x
diff options
context:
space:
mode:
authorWolfgang Wegner <w.wegner@astro-kom.de>2010-03-30 19:19:51 +0100
committerTsiChung Liew <tsicliew@gmail.com>2010-05-28 02:15:57 -0500
commitadf55679af1ed98c15a136eb81d6204ebe740b30 (patch)
tree7b2463f100f199c37445681d236b53abec707ff5 /arch/m68k/cpu/mcf5445x
parentae49099755affc942171a7727c1b12c51d167abf (diff)
downloadu-boot-imx-adf55679af1ed98c15a136eb81d6204ebe740b30.zip
u-boot-imx-adf55679af1ed98c15a136eb81d6204ebe740b30.tar.gz
u-boot-imx-adf55679af1ed98c15a136eb81d6204ebe740b30.tar.bz2
add CONFIG_SYS_FEC_FULL_MII for MCF5445x
This patch adds support for full MII interface on MCF5445x (in contrast to RMII as used on the evaluation boards). Signed-off-by: Wolfgang Wegner <w.wegner at astro-kom.de>
Diffstat (limited to 'arch/m68k/cpu/mcf5445x')
-rw-r--r--arch/m68k/cpu/mcf5445x/cpu_init.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/m68k/cpu/mcf5445x/cpu_init.c b/arch/m68k/cpu/mcf5445x/cpu_init.c
index e2a1293..fdcd185 100644
--- a/arch/m68k/cpu/mcf5445x/cpu_init.c
+++ b/arch/m68k/cpu/mcf5445x/cpu_init.c
@@ -207,10 +207,19 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
gpio->par_feci2c &=
~(GPIO_PAR_FECI2C_MDC0_MDC0 | GPIO_PAR_FECI2C_MDIO0_MDIO0);
- if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
+ if (info->iobase == CONFIG_SYS_FEC0_IOBASE) {
+#ifdef CONFIG_SYS_FEC_FULL_MII
+ gpio->par_fec |= GPIO_PAR_FEC_FEC0_MII;
+#else
gpio->par_fec &= GPIO_PAR_FEC_FEC0_UNMASK;
- else
+#endif
+ } else {
+#ifdef CONFIG_SYS_FEC_FULL_MII
+ gpio->par_fec |= GPIO_PAR_FEC_FEC1_MII;
+#else
gpio->par_fec &= GPIO_PAR_FEC_FEC1_UNMASK;
+#endif
+ }
}
return 0;
}