]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
Merge branch 'master' of git://git.denx.de/u-boot-microblaze
authorWolfgang Denk <wd@denx.de>
Thu, 27 Oct 2011 22:14:16 +0000 (00:14 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 27 Oct 2011 22:14:16 +0000 (00:14 +0200)
* 'master' of git://git.denx.de/u-boot-microblaze:
  microblaze: Fix strict-aliasing rules for in_be32
  microblaze: Wire up axi_ethernet driver initialization

arch/microblaze/include/asm/io.h
board/xilinx/microblaze-generic/microblaze-generic.c
include/configs/microblaze-generic.h

index 7e190d15c60e98be1b2a68f191e33f19b5ed42d8..584cbce358c5aedeff87fb780bf5f9c4b99e95ed 100644 (file)
@@ -25,7 +25,7 @@
 #define readw(addr) \
   ({ unsigned short __v = (*(volatile unsigned short *) (addr)); __v; })
 #define readl(addr) \
-  ({ unsigned long __v = (*(volatile unsigned long *) (addr)); __v; })
+       ({ unsigned int __v = (*(volatile unsigned int *) (addr)); __v; })
 
 #define writeb(b, addr) \
   (void)((*(volatile unsigned char *) (addr)) = (b))
index 9b2952f04eeeac01e4ef96cfe77e52f7d754f59c..c4c13a668277611e6d70712c18a92bda104eeacf 100644 (file)
@@ -72,6 +72,12 @@ int fsl_init2 (void) {
 int board_eth_init(bd_t *bis)
 {
        int ret = 0;
+
+#ifdef CONFIG_XILINX_AXIEMAC
+       ret |= xilinx_axiemac_initialize(bis, XILINX_AXIEMAC_BASEADDR,
+                                               XILINX_AXIDMA_BASEADDR);
+#endif
+
 #ifdef CONFIG_XILINX_EMACLITE
        u32 txpp = 0;
        u32 rxpp = 0;
index 09ff7c4fb936cae7beffb3a8d89c872082f1c4c9..6b3fd7600371cdbc66f428b3d53c7f3f915a5bcf 100644 (file)
 # define CONFIG_XILINX_LL_TEMAC                1
 # define CONFIG_SYS_ENET
 #endif
+#if defined(XILINX_AXIEMAC_BASEADDR)
+# define CONFIG_XILINX_AXIEMAC 1
+# define CONFIG_SYS_ENET
+#endif
 
 #undef ET_DEBUG