mb/system76/*: Update CMOS layouts and defaults

Windows will write to the century byte (0x32), causing the option table
checksum to be invalid and reset all options to their default values.
Move options and checksum to start after the century byte.

Add missing default for `boot_option`.
Add `debug_level`.

Reserve space for `power_on_after_fail`. It cannot be safely added
to existing boards because they do not boot with it set to `Disable`,
which is what coreboot will read with the new entry. A CMOS reset would
be required for coreboot to write `Enable` to the bits.

Change-Id: I2b61e6f5096e1109851c67a9206d0c4f586ad869
Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2021-08-19 17:09:33 -06:00
committed by Jeremy Soller
parent 3ac62b9d34
commit 952260ced2
32 changed files with 227 additions and 44 deletions

View File

@@ -1,2 +1,4 @@
boot_option=Fallback
debug_level=Debug
power_on_after_fail=Enable
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,4 @@
boot_option=Fallback
debug_level=Debug
DisplayPort_Output=Mini_DisplayPort
preserve_smmstore=0

View File

@@ -8,8 +8,13 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
392 1 e 8 DisplayPort_Output
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
411 1 e 8 DisplayPort_Output
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -20,9 +25,23 @@ 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
8 0 Mini_DisplayPort
8 1 USB-C
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,4 @@
boot_option=Fallback
debug_level=Debug
power_on_after_fail=Enable
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -5,11 +5,15 @@ entries
0 384 r 0 reserved_memory
# RTC_BOOT_BYTE (coreboot hardcoded)
384 1 e 2 boot_option
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 3 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -17,19 +21,23 @@ enumerations
1 0 Disable
1 1 Enable
2 0 Fallback
2 1 Normal
4 0 Fallback
4 1 Normal
3 0 Emergency
3 1 Alert
3 2 Critical
3 3 Error
3 4 Warning
3 5 Notice
3 6 Info
3 7 Debug
3 8 Spew
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
checksum 408 983 984

View File

@@ -1,2 +1,4 @@
boot_option=Fallback
debug_level=Debug
DisplayPort_Output=Mini_DisplayPort
preserve_smmstore=0

View File

@@ -8,8 +8,13 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
392 1 e 8 DisplayPort_Output
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
411 1 e 8 DisplayPort_Output
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -20,9 +25,23 @@ 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
8 0 Mini_DisplayPort
8 1 USB-C
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,4 @@
boot_option=Fallback
debug_level=Debug
power_on_after_fail=Enable
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 3 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,3 @@
boot_option=Fallback
debug_level=Debug
preserve_smmstore=0

View File

@@ -8,8 +8,12 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
#395 4 e 6 debug_level
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -30,6 +34,10 @@ enumerations
6 7 Debug
6 8 Spew
7 0 Disable
7 1 Enable
7 2 Keep
checksums
checksum 392 983 984
checksum 408 983 984

View File

@@ -1,2 +1,4 @@
boot_option=Fallback
debug_level=Debug
DisplayPort_Output=Mini_DisplayPort
preserve_smmstore=0

View File

@@ -8,8 +8,13 @@ entries
384 1 e 4 boot_option
388 4 h 0 reboot_counter
392 1 e 8 DisplayPort_Output
# RTC_CLK_ALTCENTURY
400 8 r 0 century
408 1 h 1 preserve_smmstore
#409 2 e 7 power_on_after_fail
411 1 e 8 DisplayPort_Output
412 4 e 6 debug_level
984 16 h 0 check_sum
enumerations
@@ -20,9 +25,23 @@ 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
8 0 Mini_DisplayPort
8 1 USB-C
checksums
checksum 392 983 984
checksum 408 983 984