summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2004-01-22 00:45:13 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2004-01-22 00:45:13 +0000
commitc5acd90b53f90363ed691a6fd63675af78fea971 (patch)
treee9891bbf44412f00a3d45ccbcc946c4bde2e0dcc /src
parent86da2207882bfaa9cc2f7772675d5e5717ac0a10 (diff)
try to get memory mapped i/o to work
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1349 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/embeddedplanet/ep405pc/Config.lb20
-rw-r--r--src/mainboard/embeddedplanet/ep405pc/init.c12
2 files changed, 22 insertions, 10 deletions
diff --git a/src/mainboard/embeddedplanet/ep405pc/Config.lb b/src/mainboard/embeddedplanet/ep405pc/Config.lb
index 5b9669b8fc..38708daac1 100644
--- a/src/mainboard/embeddedplanet/ep405pc/Config.lb
+++ b/src/mainboard/embeddedplanet/ep405pc/Config.lb
@@ -4,18 +4,30 @@
uses PCIC0_CFGADDR
uses PCIC0_CFGDATA
-uses UART0_IO_BASE
+uses ISA_IO_BASE
+uses ISA_MEM_BASE
+uses TTYS0_BASE
+uses _IO_BASE
##
-## Set PCI registers
+## Set PCI configuration register addresses
##
default PCIC0_CFGADDR=0xeec00000
default PCIC0_CFGDATA=0xeec00004
##
-## Set UART base address
+## Set PCI/ISA I/O and memory base address
##
-default UART0_IO_BASE=0xef600300
+default ISA_IO_BASE=0xe8000000
+default ISA_MEM_BASE=0x80000000
+default _IO_BASE=ISA_IO_BASE
+
+##
+## HACK ALERT: the UART0 registers are not in the PCI I/O address space
+## but both IDE and UART use the same routines for I/O (inb/outb). To get
+## around this we set TTYSO_BASE to the difference between the two.
+##
+default TTYS0_BASE=0xef600300-ISA_IO_BASE
##
## Early board initialization, called from ppc_main()
diff --git a/src/mainboard/embeddedplanet/ep405pc/init.c b/src/mainboard/embeddedplanet/ep405pc/init.c
index 240a392260..2ab248c5c2 100644
--- a/src/mainboard/embeddedplanet/ep405pc/init.c
+++ b/src/mainboard/embeddedplanet/ep405pc/init.c
@@ -54,21 +54,21 @@ board_init(void)
/*
* Enable FLASH, NVRAM, POR
*/
- outb(0x9C, 0xF4000002);
+ out_8(0x9C, 0xF4000002);
/*
* Enable UART0
*/
- outb(0x20, 0xF4000003);
+ out_8(0x20, 0xF4000003);
/*
* Cycle LEDs to show something is happening...
*/
- outb(0x07, 0xF4000009);
+ out_8(0x07, 0xF4000009);
udelay(100000);
- outb(0x0B, 0xF4000009);
+ out_8(0x0B, 0xF4000009);
udelay(100000);
- outb(0x0D, 0xF4000009);
+ out_8(0x0D, 0xF4000009);
udelay(100000);
- outb(0x0E, 0xF4000009);
+ out_8(0x0E, 0xF4000009);
}