blob: f0d29ede1d067c53e2479e4c49d364a3536a01d9 [file] [log] [blame]
Martin Roth9b1b3352016-02-24 12:27:06 -08001/*
2 * MemTest86+ V5 Specific code (GPL V2.0)
3 * By Samuel DEMEULEMEESTER, sdemeule@memtest.org
4 * http://www.canardpc.com - http://www.memtest.org
5 * ------------------------------------------------
6 * config.h - MemTest-86 Version 3.3
7 *
8 * Compile time configuration options
9 *
10 * Released under version 2 of the Gnu Public License.
11 * By Chris Brady
12 */
13
14/* CONSERVATIVE_SMP - If set to 0, SMP will be enabled by default */
15/* Might be enabled in future revision after extensive testing */
16/* In all cases, SMP is disabled by defaut on server platform */
Martin Rothbfa1e7f2016-02-24 14:30:25 -080017#ifndef CONSERVATIVE_SMP
Martin Roth9b1b3352016-02-24 12:27:06 -080018#define CONSERVATIVE_SMP 1
Martin Rothbfa1e7f2016-02-24 14:30:25 -080019#endif
Martin Roth9b1b3352016-02-24 12:27:06 -080020
21/* BEEP_MODE - Beep on error. Default off, Change to 1 to enable */
Martin Rothbfa1e7f2016-02-24 14:30:25 -080022#ifndef BEEP_MODE
Martin Roth9b1b3352016-02-24 12:27:06 -080023#define BEEP_MODE 0
Martin Rothbfa1e7f2016-02-24 14:30:25 -080024#endif
Martin Roth9b1b3352016-02-24 12:27:06 -080025
26/* BEEP_END_NO_ERROR - Beep at end of each pass without error. Default off, Change to 1 to enable */
Martin Rothbfa1e7f2016-02-24 14:30:25 -080027#ifndef BEEP_END_NO_ERROR
Martin Roth9b1b3352016-02-24 12:27:06 -080028#define BEEP_END_NO_ERROR 0
Martin Rothbfa1e7f2016-02-24 14:30:25 -080029#endif
Martin Roth9b1b3352016-02-24 12:27:06 -080030
31/* PARITY_MEM - Enables support for reporting memory parity errors */
32/* Experimental, normally enabled */
Martin Rothbfa1e7f2016-02-24 14:30:25 -080033#ifndef PARITY_MEM
Martin Roth9b1b3352016-02-24 12:27:06 -080034#define PARITY_MEM
Martin Rothbfa1e7f2016-02-24 14:30:25 -080035#endif
Martin Roth9b1b3352016-02-24 12:27:06 -080036
37/* SERIAL_CONSOLE_DEFAULT - The default state of the serial console. */
38/* This is normally off since it slows down testing. Change to a 1 */
39/* to enable. */
Martin Rothbfa1e7f2016-02-24 14:30:25 -080040#ifndef SERIAL_CONSOLE_DEFAULT
Martin Roth9b1b3352016-02-24 12:27:06 -080041#define SERIAL_CONSOLE_DEFAULT 0
Martin Rothbfa1e7f2016-02-24 14:30:25 -080042#endif
Martin Roth9b1b3352016-02-24 12:27:06 -080043
Martin Roth26b11612016-03-03 19:40:34 -070044/* SERIAL_TTY - The default serial port to use. 0=ttyS0, 1=ttyS1, 2=ttyS2, 3=ttyS3 */
Martin Rothbfa1e7f2016-02-24 14:30:25 -080045#ifndef SERIAL_TTY
Martin Roth9b1b3352016-02-24 12:27:06 -080046#define SERIAL_TTY 0
Martin Rothbfa1e7f2016-02-24 14:30:25 -080047#endif
Martin Roth9b1b3352016-02-24 12:27:06 -080048
49/* SERIAL_BAUD_RATE - Baud rate for the serial console */
Martin Rothbfa1e7f2016-02-24 14:30:25 -080050#ifndef SERIAL_BAUD_RATE
Ben Gardner80c71a62016-03-07 09:09:35 -060051#define SERIAL_BAUD_RATE 115200
Martin Rothbfa1e7f2016-02-24 14:30:25 -080052#endif
Martin Roth9b1b3352016-02-24 12:27:06 -080053
54/* SCRN_DEBUG - extra check for SCREEN_BUFFER
Martin Roth4dcd13d2016-02-24 13:53:07 -080055 */
Martin Roth9b1b3352016-02-24 12:27:06 -080056/* #define SCRN_DEBUG */
57
58/* APM - Turns off APM at boot time to avoid blanking the screen */
59/* Normally enabled */
60#define APM_OFF
61
62/* USB_WAR - Enables a workaround for errors caused by BIOS USB keyboard */
63/* and mouse support*/
64/* Normally enabled */
65#define USB_WAR
66
Martin Roth48c7f182016-02-25 16:24:37 -080067/* coreboot version number for memtest86+ - 3 characters. */
Martin Roth0bd34c22018-10-18 17:53:30 -060068#define COREBOOT_VERSION_NUMBER_STRING "002"
Martin Roth48c7f182016-02-25 16:24:37 -080069
Piotr Król686a6732017-05-25 00:54:47 +020070/* CB_NOSPDD - disable SPD data reading and usage */
71#ifndef CB_NOSPD
72#define CB_NOSPD 0
73#endif
74
Martin Roth48c7f182016-02-25 16:24:37 -080075/* The memtest version string with the coreboot badge (28 chars total)
76 * This is 25 characters plus the 3 character version number.
77 * "0123456789012345678901234567" */
Piotr Król686a6732017-05-25 00:54:47 +020078#if !(CB_NOSPD)
Martin Roth48c7f182016-02-25 16:24:37 -080079#define MEMTEST_VERSION_STRING "Memtest86+ 5.01 coreboot " COREBOOT_VERSION_NUMBER_STRING
Piotr Król686a6732017-05-25 00:54:47 +020080#else
81#define MEMTEST_VERSION_STRING "Memtest86+ 5.01 CB_NOSPD " COREBOOT_VERSION_NUMBER_STRING
82#endif
Martin Roth48c7f182016-02-25 16:24:37 -080083
84/* Location of flashing '+' symbol */
85#define MEMTEST_PLUS_LOCATION 9