]> git.sur5r.net Git - u-boot/blobdiff - board/sunxi/board.c
sunxi: Fix gmac not working due to cpu_eth_init no longer being called
[u-boot] / board / sunxi / board.c
index 80eae9cd48a635495089698924c9c0f5721b9bbf..e16718f30871e8aa57adcb4e438fba31bc98801c 100644 (file)
@@ -90,6 +90,11 @@ int board_init(void)
        if (ret)
                return ret;
 
+#ifdef CONFIG_MACPWR
+       gpio_request(CONFIG_MACPWR, "macpwr");
+       gpio_direction_output(CONFIG_MACPWR, 1);
+#endif
+
        /* Uses dm gpio code so do this here and not in i2c_init_board() */
        return soft_i2c_board_init();
 }