blob: 21e47206f446a03d847444e6ae87ab3e43f3271e [file] [log] [blame]
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -07001if PAYLOAD_SEABIOS
2
3choice
4 prompt "SeaBIOS version"
5 default SEABIOS_STABLE
6
7config SEABIOS_STABLE
Martin Kepplinger8b4528a2019-12-10 12:25:00 +01008 bool "1.13.0"
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -07009 help
10 Stable SeaBIOS version
11config SEABIOS_MASTER
12 bool "master"
13 help
14 Newest SeaBIOS version
Antonello Dettori3aa91dc2016-03-07 23:56:57 +000015config SEABIOS_REVISION
16 bool "git revision"
17 help
18 Select this option if you have a specific commit or branch
19 that you want to use as the revision from which to
20 build SeaBIOS.
21
22 You will be able to specify the name of a branch or a commit id
23 later.
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070024
25endchoice
26
Antonello Dettori3aa91dc2016-03-07 23:56:57 +000027config SEABIOS_REVISION_ID
28 string "Insert a commit's SHA-1 or a branch name"
29 depends on SEABIOS_REVISION
30 default "origin/master"
31 help
32 The commit's SHA-1 or branch name of the revision to use.
33
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070034config SEABIOS_PS2_TIMEOUT
35 prompt "PS/2 keyboard controller initialization timeout (milliseconds)"
36 default 0
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070037 int
38 help
39 Some PS/2 keyboard controllers don't respond to commands immediately
40 after powering on. This specifies how long SeaBIOS will wait for the
41 keyboard controller to become ready before giving up.
42
43config SEABIOS_THREAD_OPTIONROMS
44 prompt "Hardware init during option ROM execution"
45 default n
46 bool
47 help
48 Allow hardware init to run in parallel with optionrom execution.
49
50 This can reduce boot time, but can cause some timing
51 variations during option ROM code execution. It is not
52 known if all option ROMs will behave properly with this option.
53
Matt DeVillier9d821fa2020-03-26 21:13:24 -050054config SEABIOS_HARDWARE_IRQ
55 prompt "Hardware Interrupts"
56 default y
57 bool
58 help
59 Program and support hardware interrupts using the i8259
60 programmable interrupt controller (PIC). Deselected by
61 boards which would otherwise hang at the boot menu (eg,
62 google/rambi).
63
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070064config SEABIOS_VGA_COREBOOT
65 prompt "Include generated option rom that implements legacy VGA BIOS compatibility"
Arthur Heymans46dd4672016-10-25 17:11:16 +020066 default y if !VENDOR_EMULATION
Marcello Sylvester Bauer5d8f02f2018-11-24 02:39:49 +010067 depends on !VGA_ROM_RUN && (VGA_TEXT_FRAMEBUFFER || LINEAR_FRAMEBUFFER)
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070068 bool
69 help
Martin Rothe81ce042017-06-03 20:00:36 -060070 coreboot can initialize the GPU of some mainboards.
Martin Roth99d05c72015-11-28 15:44:34 -070071
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070072 After initializing the GPU, the information about it can be passed to the payload.
73 Provide an option rom that implements this legacy VGA BIOS compatibility requirement.
74
Martin Roth99d05c72015-11-28 15:44:34 -070075config PAYLOAD_CONFIGFILE
76 string "SeaBIOS config file"
77 default ""
78 help
79 This option allows a platform to set Kconfig options for a basic
80 SeaBIOS payload. In general, if the option is used, the default
81 would be "$(top)/src/mainboard/$(MAINBOARDDIR)/config_seabios"
82
Martin Rothbc46ac52016-06-05 10:30:34 -060083config SEABIOS_BOOTORDER_FILE
84 string "SeaBIOS bootorder file"
85 default ""
86 help
87 Add a SeaBIOS bootorder file. From the wiki:
88 "The bootorder file may be used to configure the boot up order. The file
89 should be ASCII text and contain one line per boot method. The description
90 of each boot method follows an Open Firmware device path format. SeaBIOS
91 will attempt to boot from each item in the file - first line of the file
92 first."
93
94 See: https://www.coreboot.org/SeaBIOS#Configuring_boot_order
95
96 If used, a typical value would be:
97 $(top)/src/mainboard/$(MAINBOARDDIR)/bootorder
98
Piotr Królbb957312018-05-04 15:29:56 +020099config SEABIOS_ADD_SERCON_PORT_FILE
100 prompt "Add SeaBIOS sercon-port file to CBFS"
101 default n
102 bool
103 help
104 Select this option to enable SeaBIOS' VGA adapter emulation
105 on serial port.
106
107config SEABIOS_SERCON_PORT_ADDR
108 hex "SeaBIOS sercon-port base address"
109 depends on SEABIOS_ADD_SERCON_PORT_FILE
110 default TTYS0_BASE
111 help
112 Set this field to the IO address of a serial port for SeaBIOS' VGA
113 adapter emulation.
114
115 By default primary console UART defined by TTYS0_BASE is used.
116
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -0700117config PAYLOAD_FILE
118 default "payloads/external/SeaBIOS/seabios/out/bios.bin.elf"
119
120config PAYLOAD_VGABIOS_FILE
121 string
122 depends on SEABIOS_VGA_COREBOOT
123 default "payloads/external/SeaBIOS/seabios/out/vgabios.bin"
124
Stefan Taunerc48d7912017-01-15 11:49:25 +0100125config SEABIOS_DEBUG_LEVEL
Martin Roth8556db32017-01-23 14:56:55 -0700126 int "SeaBIOS debug level (verbosity)"
127 default -1
Stefan Taunerc48d7912017-01-15 11:49:25 +0100128 help
Martin Roth8556db32017-01-23 14:56:55 -0700129 The higher the number, the more verbose SeaBIOS will be. See the table
130 below for the current values corresponding to various items as of SeaBIOS
131 version 1.10.1. Set this value to -1 to use SeaBIOS' default.
Stefan Taunerc48d7912017-01-15 11:49:25 +0100132
Martin Roth8556db32017-01-23 14:56:55 -0700133 Output at various SeaBIOS log levels:
134 level 0 - Logging disabled
135 level 1 - Basic output, interrupts 5, 18h, 19h, 40h, SMP, PNP, PMM
136 level 2 - AHCI, Floppy, Basic ps2, interrupts 11h, 12h, 14h, 17h
137 level 3 - bootsplash, initializations, SeaBIOS VGA BIOS interrupts
Elyes HAOUAS6dc9d032020-02-16 16:22:52 +0100138 level 4 - BIOS tables, more optionrom
Martin Roth8556db32017-01-23 14:56:55 -0700139 level 5 - Extra bootsplash, more XHCI
140 level 6 - ATA commands, extra optionrom
141 level 7 - extra ps2 commands, more OHCI & EHCI
142 level 8 - extra malloc info, more AHCI
143 level 9 - interrupts 15h, 16h, 1ah, APM, PCI, SMIs, PCIBIOS,
144 USB-HID commands, SDcard commands, Floppy commands
145 level 10 - interrupt 13h (Drives other than floppy)
146 level 20 - interrupt 10h (Display)
147
148comment "Using default SeaBIOS log level"
149 depends on SEABIOS_DEBUG_LEVEL = -1
150
151comment "SeaBIOS logging disabled"
152 depends on SEABIOS_DEBUG_LEVEL = 0
153
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -0700154endif