]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: Moved gem buffers and bds to bram to get around h/w problems
authorJohn Linn <john.linn@xilinx.com>
Wed, 14 Jul 2010 19:04:34 +0000 (13:04 -0600)
committerJohn Linn <john.linn@xilinx.com>
Wed, 14 Jul 2010 19:42:02 +0000 (13:42 -0600)
The new peep design is not working in DDR yet for the GEM but it is working
in BRAM. Once DDR is working with GEM this commit can be reverted.

board/xilinx/dfe/xgmac.c
cpu/arm_cortexa8/u-boot.lds

index 69d4b63d6c37ba2429aefac569befa58d0b6c7a6..d4aa01b006cc7134416632b4e6e9fd70795e19d3 100644 (file)
@@ -33,10 +33,18 @@ int Xgmac_phy_mgmt_idle(XEmacPss * EmacPssInstancePtr);
 /*
  * Aligned memory segments to be used for buffer descriptors
  */
+#define BRAM_BUFFERS
+#ifdef BRAM_BUFFERS
+static XEmacPss_Bd RxBdSpace[RXBD_CNT] __attribute__ ((section (".bram_buffers")));
+static XEmacPss_Bd TxBdSpace[TXBD_CNT] __attribute__ ((section (".bram_buffers")));
+static char RxBuffers[RXBD_CNT * XEMACPSS_RX_BUF_SIZE] __attribute__ ((section (".bram_buffers")));
+static uchar data_buffer[XEMACPSS_RX_BUF_SIZE] __attribute__ ((section (".bram_buffers")));
+#else
 static XEmacPss_Bd RxBdSpace[RXBD_CNT];
 static XEmacPss_Bd TxBdSpace[TXBD_CNT];
 static char RxBuffers[RXBD_CNT * XEMACPSS_RX_BUF_SIZE];
 static uchar data_buffer[XEMACPSS_RX_BUF_SIZE];
+#endif
 
 static struct {
        u8 initialized;
index 4f1711cca00068c7fcd37bf8dae7ddb5cf7c9c80..399f63c950982c74073661466fa533ea4e3d4e4c 100644 (file)
@@ -55,4 +55,8 @@ SECTIONS
        __bss_start = .;
        .bss : { *(.bss) }
        _end = .;
+
+       . = 0xFFFE0000;
+       . = ALIGN(4);
+       .bram_buffers (NOLOAD) : { *(.bram_buffers) }
 }