]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Touch PIN_ETHRST only on TMS570_RPP
authorJakub NejedlĂ˝ <nejedjak@fel.cvut.cz>
Mon, 19 Aug 2019 11:58:57 +0000 (13:58 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 29 Aug 2019 14:29:14 +0000 (16:29 +0200)
Other boards do not have this pin.

rpp/src/rpp/eth.c

index 118c06a30c627e85b112b89e84f67bba0891f117..de44f077019cb63879e95ba073e814e818d7586f 100644 (file)
@@ -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);