summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm926ejs
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-08-19 04:58:29 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 14:58:28 +0200
commit89ce53ffcd9b5dab4880ce7c01cf45b1d8039968 (patch)
tree336cd604721f94d87ed0920976a55c0137f43923 /arch/arm/cpu/arm926ejs
parent6e829b672edde1b87d54ecbaffc03f65386d988f (diff)
downloadu-boot-imx-89ce53ffcd9b5dab4880ce7c01cf45b1d8039968.zip
u-boot-imx-89ce53ffcd9b5dab4880ce7c01cf45b1d8039968.tar.gz
u-boot-imx-89ce53ffcd9b5dab4880ce7c01cf45b1d8039968.tar.bz2
mxs: Only build internal Ethernet controller for i.MX28
The internal Ethernet controller is only available on i.MX28 processors so it needs to use CONFIG_MX28 guardian to avoid having this code called in others. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/arm/cpu/arm926ejs')
-rw-r--r--arch/arm/cpu/arm926ejs/mxs/mxs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c
index c028e5e..a1769fd 100644
--- a/arch/arm/cpu/arm926ejs/mxs/mxs.c
+++ b/arch/arm/cpu/arm926ejs/mxs/mxs.c
@@ -246,7 +246,7 @@ int do_mx28_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
/*
* Initializes on-chip ethernet controllers.
*/
-#ifdef CONFIG_CMD_NET
+#if defined(CONFIG_MX28) && defined(CONFIG_CMD_NET)
int cpu_eth_init(bd_t *bis)
{
struct mxs_clkctrl_regs *clkctrl_regs =