mb/system76/*: Add CMOS option table

System76 uses several custom CMOS values downstream. Reduce our diff by
providing a generic layout with the defaults:

    boot_option=Fallback
    debug_level=Debug
    power_on_after_fail=Enable

Tested on galp3-c, gaze15, oryp5, oryp6. All boards boot multiple times
with USE_OPTION_TABLE selected.

Change-Id: Ie57b0e5713bba8ad46e1a4123a3ddd43e0eea964
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56888
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Tim Crawford 2021-08-09 16:55:07 -06:00 committed by Nick Vaccaro
parent 716320b726
commit 9f7e9cbc26
15 changed files with 205 additions and 0 deletions

View File

@ -9,6 +9,8 @@ config BOARD_SPECIFIC_OPTIONS
select EC_SYSTEM76_EC_COLOR_KEYBOARD
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_CMOS_DEFAULT
select HAVE_OPTION_TABLE
select INTEL_GMA_HAVE_VBT
select INTEL_LPSS_UART_FOR_CONSOLE
select MAINBOARD_HAS_LPC_TPM

View File

@ -0,0 +1,3 @@
boot_option=Fallback
debug_level=Debug
power_on_after_fail=Enable

View File

@ -0,0 +1,36 @@
# SPDX-License-Identifier: GPL-2.0-only
entries
0 384 r 0 reserved_memory
# RTC_BOOT_BYTE (coreboot hardcoded)
384 1 e 4 boot_option
388 4 h 0 reboot_counter
395 4 e 6 debug_level
409 2 e 7 power_on_after_fail
984 16 h 0 check_sum
enumerations
4 0 Fallback
4 1 Normal
6 0 Emergency
6 1 Alert
6 2 Critical
6 3 Error
6 4 Warning
6 5 Notice
6 6 Info
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984

View File

@ -8,6 +8,8 @@ config BOARD_SPECIFIC_OPTIONS
select EC_SYSTEM76_EC_BAT_THRESHOLDS
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_CMOS_DEFAULT
select HAVE_OPTION_TABLE
select HAVE_SMI_HANDLER
select HAVE_SPD_IN_CBFS
select INTEL_GMA_HAVE_VBT

View File

@ -0,0 +1,3 @@
boot_option=Fallback
debug_level=Debug
power_on_after_fail=Enable

View File

@ -0,0 +1,36 @@
# SPDX-License-Identifier: GPL-2.0-only
entries
0 384 r 0 reserved_memory
# RTC_BOOT_BYTE (coreboot hardcoded)
384 1 e 4 boot_option
388 4 h 0 reboot_counter
395 4 e 6 debug_level
409 2 e 7 power_on_after_fail
984 16 h 0 check_sum
enumerations
4 0 Fallback
4 1 Normal
6 0 Emergency
6 1 Alert
6 2 Critical
6 3 Error
6 4 Warning
6 5 Notice
6 6 Info
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984

View File

@ -10,6 +10,8 @@ config BOARD_SPECIFIC_OPTIONS
select EC_SYSTEM76_EC_COLOR_KEYBOARD
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_CMOS_DEFAULT
select HAVE_OPTION_TABLE
select INTEL_GMA_HAVE_VBT
select INTEL_LPSS_UART_FOR_CONSOLE
select MAINBOARD_HAS_LPC_TPM

View File

@ -0,0 +1,3 @@
boot_option=Fallback
debug_level=Debug
power_on_after_fail=Enable

View File

@ -0,0 +1,36 @@
# SPDX-License-Identifier: GPL-2.0-only
entries
0 384 r 0 reserved_memory
# RTC_BOOT_BYTE (coreboot hardcoded)
384 1 e 4 boot_option
388 4 h 0 reboot_counter
395 4 e 6 debug_level
409 2 e 7 power_on_after_fail
984 16 h 0 check_sum
enumerations
4 0 Fallback
4 1 Normal
6 0 Emergency
6 1 Alert
6 2 Critical
6 3 Error
6 4 Warning
6 5 Notice
6 6 Info
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984

View File

@ -10,6 +10,8 @@ config BOARD_SPECIFIC_OPTIONS
select EC_SYSTEM76_EC_COLOR_KEYBOARD
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_CMOS_DEFAULT
select HAVE_OPTION_TABLE
select INTEL_GMA_HAVE_VBT
select MAINBOARD_HAS_LPC_TPM
select MAINBOARD_HAS_TPM2

View File

@ -0,0 +1,3 @@
boot_option=Fallback
debug_level=Debug
power_on_after_fail=Enable

View File

@ -0,0 +1,36 @@
# SPDX-License-Identifier: GPL-2.0-only
entries
0 384 r 0 reserved_memory
# RTC_BOOT_BYTE (coreboot hardcoded)
384 1 e 4 boot_option
388 4 h 0 reboot_counter
395 4 e 6 debug_level
409 2 e 7 power_on_after_fail
984 16 h 0 check_sum
enumerations
4 0 Fallback
4 1 Normal
6 0 Emergency
6 1 Alert
6 2 Critical
6 3 Error
6 4 Warning
6 5 Notice
6 6 Info
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984

View File

@ -9,6 +9,8 @@ config BOARD_SPECIFIC_OPTIONS
select EC_SYSTEM76_EC_COLOR_KEYBOARD if BOARD_SYSTEM76_DARP5
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_CMOS_DEFAULT
select HAVE_OPTION_TABLE
select INTEL_GMA_HAVE_VBT
select INTEL_LPSS_UART_FOR_CONSOLE
select MAINBOARD_HAS_LPC_TPM

View File

@ -0,0 +1,3 @@
boot_option=Fallback
debug_level=Debug
power_on_after_fail=Enable

View File

@ -0,0 +1,36 @@
# SPDX-License-Identifier: GPL-2.0-only
entries
0 384 r 0 reserved_memory
# RTC_BOOT_BYTE (coreboot hardcoded)
384 1 e 4 boot_option
388 4 h 0 reboot_counter
395 4 e 6 debug_level
409 2 e 7 power_on_after_fail
984 16 h 0 check_sum
enumerations
4 0 Fallback
4 1 Normal
6 0 Emergency
6 1 Alert
6 2 Critical
6 3 Error
6 4 Warning
6 5 Notice
6 6 Info
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984