summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2013-03-18 08:29:39 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2015-04-17 01:10:19 +0200
commit819de55b6f2fa318357a33fe14a7e0aa1d3083fd (patch)
treecbab583f2f8bb1f50dd442d1dfa6ceb693ca2379 /c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c
parentGRETH: cleaned up parts of PHY init code (diff)
downloadrtems-819de55b6f2fa318357a33fe14a7e0aa1d3083fd.tar.bz2
PCI-RASTA: set GRPCI1 target cache-line-size to avoid poor performance
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c b/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c
index 7a100836ae..823cd9e0ab 100644
--- a/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c
+++ b/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c
@@ -250,6 +250,12 @@ int gr_rasta_tmtc_hw_init(struct gr_rasta_tmtc_priv *priv)
}
#endif
+ /* Setup cache line size. Default cache line size will result in
+ * poor performance (256 word fetches), 0xff will set it according
+ * to the max size of the PCI FIFO.
+ */
+ pci_cfg_w8(pcidev, PCI_CACHE_LINE_SIZE, 0xff);
+
/* Scan AMBA Plug&Play */
/* AMBA MAP bar0 (in CPU) ==> 0x80000000(remote amba address) */