Commit Graph

541 Commits

Author SHA1 Message Date
Blue Swirl
78ca85bba5 Fix console escape code problems with NetBSD 4.0 and Debian 3.1r1
git-svn-id: svn://coreboot.org/openbios/openbios-devel@427 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-25 20:37:01 +00:00
Blue Swirl
eea3589cb9 Use RAM for SMP init instead of NVRAM
git-svn-id: svn://coreboot.org/openbios/openbios-devel@426 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-25 12:20:12 +00:00
Blue Swirl
3fae06cd81 Add support for floppy boot on Sparc32
git-svn-id: svn://coreboot.org/openbios/openbios-devel@425 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-25 09:56:08 +00:00
Blue Swirl
91cba136b9 Add UPA decode and encode methods
git-svn-id: svn://coreboot.org/openbios/openbios-devel@424 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-25 07:31:15 +00:00
Blue Swirl
65057d6167 Fix Sabre device ID
git-svn-id: svn://coreboot.org/openbios/openbios-devel@423 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-25 07:30:45 +00:00
Blue Swirl
037d00c9b5 Add Propolice support
git-svn-id: svn://coreboot.org/openbios/openbios-devel@422 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-24 08:23:33 +00:00
Blue Swirl
7a00116a9f Add slavioconfig only for SS-4, SS-5 and S3GX
git-svn-id: svn://coreboot.org/openbios/openbios-devel@421 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-24 07:31:45 +00:00
Blue Swirl
bcd092ad4a Add support for configuring for multiple targets
git-svn-id: svn://coreboot.org/openbios/openbios-devel@420 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-23 20:09:26 +00:00
Blue Swirl
c2ccc6bf52 Update build target description
git-svn-id: svn://coreboot.org/openbios/openbios-devel@419 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-18 10:14:58 +00:00
Blue Swirl
6fd0d0dfcf Send key on key press, not release: closes #26
git-svn-id: svn://coreboot.org/openbios/openbios-devel@418 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-17 20:39:12 +00:00
Blue Swirl
3af23c3fdc Suppress OpenBSD linker warning
git-svn-id: svn://coreboot.org/openbios/openbios-devel@417 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-17 20:28:21 +00:00
Blue Swirl
0560ab5941 Fix PCI I/O ports allocation (Aurelien Jarno)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@416 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-17 19:02:38 +00:00
Blue Swirl
0726678a35 Use PCI IDE controller
git-svn-id: svn://coreboot.org/openbios/openbios-devel@415 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-17 18:42:48 +00:00
Blue Swirl
52f8efadc0 Set up console input and output variables correctly
git-svn-id: svn://coreboot.org/openbios/openbios-devel@414 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-17 15:37:30 +00:00
Blue Swirl
f5f46f28f5 Use aliases for console device selection
git-svn-id: svn://coreboot.org/openbios/openbios-devel@413 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-17 10:15:13 +00:00
Blue Swirl
95183db81e Fix Sparc32 nographic mode
git-svn-id: svn://coreboot.org/openbios/openbios-devel@412 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-17 09:55:09 +00:00
Laurent Vivier
f336ed1793 ide: allow to have multiple instances
git-svn-id: svn://coreboot.org/openbios/openbios-devel@411 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-15 12:55:31 +00:00
Laurent Vivier
33b98e5c5f ide: improve ide aliases management
git-svn-id: svn://coreboot.org/openbios/openbios-devel@410 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-15 02:18:58 +00:00
Laurent Vivier
00ed6db419 ide: improve support of MMIO ide controller
git-svn-id: svn://coreboot.org/openbios/openbios-devel@409 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-15 02:17:00 +00:00
Laurent Vivier
60c755b54f macio.c: remove unused functions
git-svn-id: svn://coreboot.org/openbios/openbios-devel@408 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-14 23:30:09 +00:00
Laurent Vivier
e85a0d9bde PowerPC: Fix milliseconds prom call
The current implementation of the milliseconds prom call on PowerPC is
totally buggy:
- The timer frequency returned by get_timer_freq() does not correspond
  to the timer which is read.
- The dividend and the divisor of the division are swapped
- If called very often, this function is not precise
- Depending on the timer frequency and of the frequency of the calls,
  the variable overflow after a few dozen of seconds.

Please find in this patch a totally new implementation. This fixes the
problem observed with the quik when a timeout is defined.

The timer frequency is defined using #define, I wonder if there is a
better place to put it.

It reads both low and high part of the timer to make sure there is no
overflow. It also removes the function that returns 0 on the first call
as this is not needed according to IEEE 1275-1994. Finally it computes
the real value of the timer each time, instead of adding a small value
to a variable at each function calls, in order to get a correct
precision if this method is call very often.

(Aurelien Jarno)


git-svn-id: svn://coreboot.org/openbios/openbios-devel@407 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-14 23:25:41 +00:00
Laurent Vivier
f89783c5e4 CONFIG_SERIAL_PORT to 0 select ch-a (0x20 offset), other value select ch-b (0x00 offset). Idea from Blue Swirl
git-svn-id: svn://coreboot.org/openbios/openbios-devel@406 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 20:24:52 +00:00
Laurent Vivier
b599634ceb Don't try to start Quik from hard disk if booting from the CD-ROM
(Aurelien Jarno)


git-svn-id: svn://coreboot.org/openbios/openbios-devel@405 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 20:07:43 +00:00
Laurent Vivier
f9a9554ba5 use the kernel arguments when using -kernel-append (Aurelien Jarno)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@404 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 20:02:40 +00:00
Blue Swirl
0bcf12f53b Fix warning about shadowing
git-svn-id: svn://coreboot.org/openbios/openbios-devel@403 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 19:54:29 +00:00
Blue Swirl
f7b372866c Fix Sparc64 native unix build
git-svn-id: svn://coreboot.org/openbios/openbios-devel@402 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 19:31:14 +00:00
Blue Swirl
3bcc49243a Fix native compilation (Aurelien Jarno)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@401 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 17:40:00 +00:00
Laurent Vivier
c254d42e4c ESCC: correctly use CONFIG_SERIAL_PORT
git-svn-id: svn://coreboot.org/openbios/openbios-devel@400 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 16:42:29 +00:00
Laurent Vivier
7a10250555 ppc, cross-ppc: add -Werror to CFLAGS
git-svn-id: svn://coreboot.org/openbios/openbios-devel@399 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 12:19:11 +00:00
Laurent Vivier
53c56562ce escc: add "AAPL," and "reg" properties (allow to use it with linux)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@398 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 08:05:51 +00:00
Laurent Vivier
7dac2248ea Add aliases for ch-a and ch-b: ttya, ttyb for oldworld, and scca and sccb for all
git-svn-id: svn://coreboot.org/openbios/openbios-devel@397 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-13 07:49:44 +00:00
Blue Swirl
3ed0c8e1e4 Synch cross and native configs
git-svn-id: svn://coreboot.org/openbios/openbios-devel@396 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-12 20:46:27 +00:00
Blue Swirl
e43da79c51 Fix wrong property
git-svn-id: svn://coreboot.org/openbios/openbios-devel@395 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-12 19:49:10 +00:00
Laurent Vivier
f52a3bcc8e Add ide0, ide1 ... ideN aliases needed by ybin (yaboot)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@394 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-12 19:22:10 +00:00
Blue Swirl
b417eb1838 Fix amd64 warning
git-svn-id: svn://coreboot.org/openbios/openbios-devel@393 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-12 18:20:14 +00:00
Blue Swirl
3eda0189f0 Use ESCC for PowerMac serial
git-svn-id: svn://coreboot.org/openbios/openbios-devel@392 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-12 17:47:56 +00:00
Blue Swirl
4f2d4ae6f2 Extract ESCC serial driver
git-svn-id: svn://coreboot.org/openbios/openbios-devel@391 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-12 17:46:19 +00:00
Blue Swirl
8eff2e7fc7 Shave off a few padding bytes
git-svn-id: svn://coreboot.org/openbios/openbios-devel@390 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-11 11:49:00 +00:00
Blue Swirl
e66ae17fc7 Shave off a few padding bytes
git-svn-id: svn://coreboot.org/openbios/openbios-devel@389 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-11 08:16:52 +00:00
Laurent Vivier
358bee9e5d Create properties for an oldworld machine if needed.
If arch is ppc and machine arch id is heathrow, we create:

- properties in root node for a powermac beige
  (Linux says "Powermac G3 (Silk)")

- "AAPL,interrupts" and "AAPL,address" properties in PCI device tree.



git-svn-id: svn://coreboot.org/openbios/openbios-devel@388 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-11 01:03:16 +00:00
Laurent Vivier
c93afa0cca Disable debug printk in ofmem_map()
git-svn-id: svn://coreboot.org/openbios/openbios-devel@387 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-11 00:34:08 +00:00
Laurent Vivier
5fde3e6ee3 Remove compilation warning
git-svn-id: svn://coreboot.org/openbios/openbios-devel@386 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-11 00:27:48 +00:00
Laurent Vivier
3888c71730 Add quik support (oldworld bootloader).
Load two first sectors of the partition and check quik signature ('QUIK').
If it is quik, execute it to boot.

Currently partition and parameter are hardcoded to "hd:2" and "Linux".



git-svn-id: svn://coreboot.org/openbios/openbios-devel@385 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-11 00:19:02 +00:00
Laurent Vivier
f42c360455 According to
"PowerPC Processor binding to:
IEEE 1275-1994, Standard for Boot (Initialization, Configuration) Firmware
Revision: 2.1 (Approved Version), November 6, 1996"

7.1 Calling Convention:

Client interface preserves: msr, cr, r1, r2, r13-r31, sprg0-3, fpscr, f0-f31,
sr0-sr15, other SPRs.

This patch modifies of_client_callback(), to preserve r1, r2, r4-r31.

This is needed to be able to execute the first stage of quik which
supposes r7 is unmodified.



git-svn-id: svn://coreboot.org/openbios/openbios-devel@384 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-11 00:01:40 +00:00
Laurent Vivier
0a8028cefc Correct comment about dictionnary size (512K)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@383 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-10 23:47:37 +00:00
Blue Swirl
cbfd537bee Fix x86 build
git-svn-id: svn://coreboot.org/openbios/openbios-devel@382 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-10 21:00:46 +00:00
Blue Swirl
ef3a27bcdf Fix warning about unused variables
git-svn-id: svn://coreboot.org/openbios/openbios-devel@381 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-10 20:40:11 +00:00
Blue Swirl
0d733f14f2 Fix warning
git-svn-id: svn://coreboot.org/openbios/openbios-devel@380 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-10 20:31:21 +00:00
Blue Swirl
397977b9a6 Disable romfont: unused
git-svn-id: svn://coreboot.org/openbios/openbios-devel@379 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-10 11:49:43 +00:00
Blue Swirl
cbbf8e81a9 Remove accidental debug printk
git-svn-id: svn://coreboot.org/openbios/openbios-devel@378 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-10 11:41:04 +00:00