mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-06 17:30:35 +01:00
ipq9574: Do board_eth_init only if EMDA enabled
Change-Id: I76ea6c634ca004c796deb6b32191b881ac143f3a Signed-off-by: Selvam Sathappan Periakaruppan
This commit is contained in:
parent
3422ebf3ff
commit
c643a856cc
1 changed files with 3 additions and 2 deletions
|
|
@ -917,21 +917,22 @@ void eth_clock_enable(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IPQ9574_EDMA
|
||||
int board_eth_init(bd_t *bis)
|
||||
{
|
||||
int ret=0;
|
||||
int ret = 0;
|
||||
|
||||
#ifndef CONFIG_IPQ9574_RUMI
|
||||
eth_clock_enable();
|
||||
#endif
|
||||
|
||||
ret = ipq9574_edma_init(NULL);
|
||||
|
||||
if (ret != 0)
|
||||
printf("%s: ipq9574_edma_init failed : %d\n", __func__, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
unsigned long timer_read_counter(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue