ipq9574: Do board_eth_init only if EMDA enabled

Change-Id: I76ea6c634ca004c796deb6b32191b881ac143f3a
Signed-off-by: Selvam Sathappan Periakaruppan
This commit is contained in:
Selvam Sathappan Periakaruppan 2021-07-20 20:03:32 +05:30 committed by Gerrit - the friendly Code Review server
parent 3422ebf3ff
commit c643a856cc

View file

@ -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)
{