]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/vsc7385.c
sf: add paired dev info for winbond w25q16jv
[u-boot] / drivers / net / vsc7385.c
index 4095bce5bfcb9009a93660cbfe7fb0075799affa..072421062b637eee13ce60a8e4cebff5dfc1e97c 100644 (file)
  */
 
 #include <config.h>
-
-#ifdef CONFIG_VSC7385_ENET
-
 #include <common.h>
+#include <console.h>
 #include <asm/io.h>
-#include <asm/errno.h>
+#include <linux/errno.h>
+#include "vsc7385.h"
 
 /*
  * Upload a Vitesse VSC7385 firmware image to the hardware
@@ -38,13 +37,13 @@ int vsc7385_upload_firmware(void *firmware, unsigned int size)
        u8 *fw = firmware;
        unsigned int i;
 
-       u32 *gloreset = (u32 *) (CFG_VSC7385_BASE + 0x1c050);
-       u32 *icpu_ctrl = (u32 *) (CFG_VSC7385_BASE + 0x1c040);
-       u32 *icpu_addr = (u32 *) (CFG_VSC7385_BASE + 0x1c044);
-       u32 *icpu_data = (u32 *) (CFG_VSC7385_BASE + 0x1c048);
-       u32 *icpu_rom_map = (u32 *) (CFG_VSC7385_BASE + 0x1c070);
+       u32 *gloreset = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c050);
+       u32 *icpu_ctrl = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c040);
+       u32 *icpu_addr = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c044);
+       u32 *icpu_data = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c048);
+       u32 *icpu_rom_map = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c070);
 #ifdef DEBUG
-       u32 *chipid = (u32 *) (CFG_VSC7385_BASE + 0x1c060);
+       u32 *chipid = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c060);
 #endif
 
        out_be32(gloreset, 3);
@@ -97,5 +96,3 @@ int vsc7385_upload_firmware(void *firmware, unsigned int size)
 
        return 0;
 }
-
-#endif