karo: tx51: justify and adjust the delay required before releasing the ETN PHY strap... KARO-TX51-2015-03-27
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 27 Mar 2015 10:13:03 +0000 (11:13 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 27 Mar 2015 10:13:03 +0000 (11:13 +0100)
packages/devs/eth/arm/tx51karo/v1_0/include/devs_eth_arm_tx51.inl

index ea9ff11..ab5e155 100644 (file)
@@ -220,7 +220,12 @@ static void tx51_fec_phy_init(void)
        if (!gpio_tst_bit(2, 14)) {
                diag_printf("**Failed to release PHY reset\n");
        }
-       HAL_DELAY_US(400);
+       /*
+        * Due to an RC-filter in the PHY RESET line, a minimum
+        * delay of 535us is required to let the RESET line rise
+        * above the logic high threshold of the PHY input pin.
+         */
+       HAL_DELAY_US(550);
 
        /* configure all FEC pins to their required functions */
        for (i = 0; i < NUM_ELEMS(tx51_fec_gpio_data); i++) {