From cc10acc34beaec552d33b704cdfcc70edf439444 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jakub=20Nejedl=C3=BD?= Date: Mon, 19 Aug 2019 13:58:57 +0200 Subject: [PATCH] Touch PIN_ETHRST only on TMS570_RPP Other boards do not have this pin. --- rpp/src/rpp/eth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpp/src/rpp/eth.c b/rpp/src/rpp/eth.c index 118c06a..de44f07 100644 --- a/rpp/src/rpp/eth.c +++ b/rpp/src/rpp/eth.c @@ -527,7 +527,9 @@ static err_t rpp_eth_hw_init(struct hdkif *hdkif) * We have pull-down resistor, so after reset, we only need * to put ETHRST pin to log. high */ - gio_set(PIN_ETHRST, 1); + #ifdef TARGET_TMS570_RPP + gio_set(PIN_ETHRST, 1); + #endif /* Initialize EMAC control module and EMAC module */ EMACInit(hdkif->emac_ctrl_base, hdkif->emac_base); -- 2.39.2