From 4d27bb6f20bd17a4040be411aa9594d62e733d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Fri, 8 Nov 2013 17:34:08 +0000 Subject: [PATCH] moved code around to try and determine why PCI memory mapping doesn't work as expected --- BaS_gcc/sources/pci.c | 5 +++++ BaS_gcc/sources/sysinit.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/BaS_gcc/sources/pci.c b/BaS_gcc/sources/pci.c index 6fc13f9..3e26b13 100644 --- a/BaS_gcc/sources/pci.c +++ b/BaS_gcc/sources/pci.c @@ -462,6 +462,11 @@ void init_xlbus_arbiter(void) /* device errata 26: Flexbus hang up in 4:1 clock ratio */ MCF_PCI_PCIGSCR |= 0x80000000; /* disable pipeline */ } + + xprintf("PCIGSCR = %08x\r\n"); + MCF_PCI_PCIGSCR |= 0x60000000; /* clear PERR and SERR in global status/command register */ + xprintf("PCIGSCR = %08x\r\n"); + /* FIXME: Firetos (boot2.S, l. 719) looks pretty strange at this place - is this a typo? */ } diff --git a/BaS_gcc/sources/sysinit.c b/BaS_gcc/sources/sysinit.c index b557c7d..d19de46 100644 --- a/BaS_gcc/sources/sysinit.c +++ b/BaS_gcc/sources/sysinit.c @@ -1029,9 +1029,9 @@ void initialize_hardware(void) init_video_ddr(); dvi_on(); #endif /* MACHINE_FIREBEE */ + init_pci(); init_eport(); init_xlbus_arbiter(); - init_pci(); /* moved the following line (temporarily) to BaS (after MMU init) to be able to catch adressing errors on USB init */ //init_usb(); #if MACHINE_FIREBEE