]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/zynq_gem.c
pci: Set PCI_COMMAND_IO bit for VGA device
[u-boot] / drivers / net / zynq_gem.c
index 438e4a82e9084d37ae8273cc5271371504a0cacc..9175d2cae8f75676009ea0b0a3d9bfe74c704dae 100644 (file)
@@ -163,7 +163,7 @@ struct zynq_gem_priv {
 static inline int mdio_wait(struct eth_device *dev)
 {
        struct zynq_gem_regs *regs = (struct zynq_gem_regs *)dev->iobase;
-       u32 timeout = 200;
+       u32 timeout = 20000;
 
        /* Wait till MDIO interface is ready to accept a new transaction. */
        while (--timeout) {
@@ -553,7 +553,7 @@ int zynq_gem_initialize(bd_t *bis, phys_addr_t base_addr,
        return 1;
 }
 
-#ifdef CONFIG_OF_CONTROL
+#if CONFIG_IS_ENABLED(OF_CONTROL)
 int zynq_gem_of_init(const void *blob)
 {
        int offset = 0;