summaryrefslogtreecommitdiff
path: root/board/ti/evm
diff options
context:
space:
mode:
authorSanjeev Premi <premi@ti.com>2011-07-18 09:23:00 -0400
committerU-Boot <uboot@aari01-12.(none)>2011-08-03 12:49:19 +0200
commit5626f336caa7d19e7a79bd836a221a6899dc70b5 (patch)
tree3e873f7ba001ee4754c6afa83ab9f0b147fb109a /board/ti/evm
parentc06825873dbc977028c393cb9cbe320634cb5785 (diff)
downloadu-boot-imx-5626f336caa7d19e7a79bd836a221a6899dc70b5.zip
u-boot-imx-5626f336caa7d19e7a79bd836a221a6899dc70b5.tar.gz
u-boot-imx-5626f336caa7d19e7a79bd836a221a6899dc70b5.tar.bz2
omap3evm: eth: Include functions only when necessary
These functions are not required when CONFIG_CMD_NET is not defined: - setup_net_chip() - reset_net_chip() - board_eth_init() This patch wraps them in #ifdef CONFIG_CMD_NET...#endif Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'board/ti/evm')
-rw-r--r--board/ti/evm/evm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c
index 2c95fae..30c1c57 100644
--- a/board/ti/evm/evm.c
+++ b/board/ti/evm/evm.c
@@ -153,6 +153,7 @@ void set_muxconf_regs(void)
MUX_EVM();
}
+#ifdef CONFIG_CMD_NET
/*
* Routine: setup_net_chip
* Description: Setting up the configuration GPMC registers specific to the
@@ -219,3 +220,4 @@ int board_eth_init(bd_t *bis)
#endif
return rc;
}
+#endif /* CONFIG_CMD_NET */