summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@keymile.com>2013-10-18 11:47:18 +0200
committerYork Sun <yorksun@freescale.com>2013-10-24 09:35:40 -0700
commit99f6249a0e7b36e4f9c1aa7b77a0814d883d96b2 (patch)
tree26a8db0d2df84f555c8599be8295adf567108d25 /board
parent0a4f88b98c098532bfe0a4a5f874e6e05708c4f3 (diff)
downloadu-boot-99f6249a0e7b36e4f9c1aa7b77a0814d883d96b2.tar.gz
u-boot-99f6249a0e7b36e4f9c1aa7b77a0814d883d96b2.tar.bz2
u-boot-99f6249a0e7b36e4f9c1aa7b77a0814d883d96b2.zip
KM: add CONFIG_KM_COMMON_ETH_INIT for km common eth init
This must be defined by a board support file that want to use the keymile common.c board_eth_init function that requires ethernet_present to be defined. Currently all the km architectures use it but the kmp204x architecture later supported in this series does use another board_eth_init function and thus does not define it. Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'board')
-rw-r--r--board/keymile/common/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
index 3d7b05661a..f941e44e83 100644
--- a/board/keymile/common/common.c
+++ b/board/keymile/common/common.c
@@ -142,6 +142,7 @@ void i2c_init_board(void)
}
#endif
+#if defined(CONFIG_KM_COMMON_ETH_INIT)
int board_eth_init(bd_t *bis)
{
if (ethernet_present())
@@ -149,6 +150,7 @@ int board_eth_init(bd_t *bis)
return -1;
}
+#endif
/*
* do_setboardid command