summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-30 23:13:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-30 23:13:54 +0000
commit3d505747dc7c999386c5fc307ee32c7448549437 (patch)
tree992f3e28b29cd9ecb3e203c2037fc6c06627e11a /c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
parent2008-09-30 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-3d505747dc7c999386c5fc307ee32c7448549437.tar.bz2
2008-09-30 Jennifer Averett <jennifer.averett@oarcorp.com>
* Makefile.am, preinstall.am, PCI_bus/universe.c, console/console.c, include/bsp.h, irq/FPGA.c, irq/irq.c, startup/Hwr_init.c, startup/bspstart.c, startup/vmeintr.c: Modifications required to run on hardware. Some cleanup.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c62
1 files changed, 1 insertions, 61 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c b/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
index 6fb0cc6e6b..dc942e873a 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
@@ -80,70 +80,10 @@ void init_RTC(void)
void init_PCI(void)
{
-#if (SCORE603E_USE_SDS) | (SCORE603E_USE_OPEN_FIRMWARE) | (SCORE603E_USE_NONE)
- uint32_t value;
-
- /*
- * NOTE: Accessing any memory location not mapped by the BAT
- * registers will cause a TLB miss exception.
- * Set the DBAT1 to be configured for 256M of PCI MEM
- * at 0xC0000000 with Write-through and Guarded Attributed and
- * read/write access allowed
- */
-
- /* load DBAT1U (spr538) - 256Mbytes, User, Super */
- value = SCORE603E_PCI_MEM_BASE | 0x1FFF;
- asm volatile(
- "isync;"
- "mtspr 538, %0"
- : "=r" (value)
- : "0" (value)
- );
-
- /* load DBAT1L (spr539) - Write-through, Guarded and Read/Write */
- value = SCORE603E_PCI_MEM_BASE | 0x0002;
- asm volatile (
- "mtspr 539, %0;"
- "isync"
- : "=r" (value)
- : "0" (value)
- );
-
-#elif (SCORE603E_USE_DINK)
/* DINK Monitor setsup and uses all 4 BAT registers. */
/* The fourth BAT register can be modified to access this area */
-#if (0)
- /*
- * NOTE: Accessing any memory location not mapped by the BAT
- * registers will cause a TLB miss exception.
- * Set the DBAT3 to be configured for 256M of PCI MEM
- * at 0xC0000000 with Write-through and Guarded Attributed and
- * read/write access allowed
- */
-
- /* load DBAT3U (spr542) - 256Mbytes, User, Super */
- value = SCORE603E_PCI_MEM_BASE | 0x1FFF;
- asm volatile(
- "isync;"
- "mtspr 542, %0"
- : "=r" (value)
- : "0" (value)
- );
-
- /* load DBAT3L (spr543) - Write-through, Guarded and Read/Write */
- value = SCORE603E_PCI_MEM_BASE | 0x0002;
- asm volatile (
- "mtspr 543, %0;"
- "isync"
- : "=r" (value)
- : "0" (value)
- );
-#endif
-
-#else
-#error "SCORE603E BSPSTART.C -- what ROM monitor are you using"
-#endif
+ printk("init_PCI:\n");
}
#define PPC_Get_HID0( _value ) \