summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/asus/p2b/Kconfig1
-rw-r--r--src/mainboard/asus/p2b/cmos.default8
-rw-r--r--src/mainboard/asus/p2b/cmos.layout72
3 files changed, 81 insertions, 0 deletions
diff --git a/src/mainboard/asus/p2b/Kconfig b/src/mainboard/asus/p2b/Kconfig
index 1d3d3b9e0e..ab0a8191af 100644
--- a/src/mainboard/asus/p2b/Kconfig
+++ b/src/mainboard/asus/p2b/Kconfig
@@ -16,6 +16,7 @@ config BOARD_SPECIFIC_OPTIONS
select SUPERIO_WINBOND_W83977TF
select HAVE_PIRQ_TABLE
select BOARD_ROMSIZE_KB_256
+ select HAVE_OPTION_TABLE
select SDRAMPWR_4DIMM if BOARD_ASUS_P2B_LS || BOARD_ASUS_P3B_F
select HAVE_ACPI_TABLES if BOARD_ASUS_P2B || BOARD_ASUS_P2B_LS
select BASE_ASUS_P2B_D if BOARD_ASUS_P2B_D || BOARD_ASUS_P2B_DS
diff --git a/src/mainboard/asus/p2b/cmos.default b/src/mainboard/asus/p2b/cmos.default
new file mode 100644
index 0000000000..447726f193
--- /dev/null
+++ b/src/mainboard/asus/p2b/cmos.default
@@ -0,0 +1,8 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+boot_option=Fallback
+debug_level=Debug
+nmi=Enable
+udma_enable=Enable
+scsi_lvd_term=Enable
+scsi_se_term=Enable
diff --git a/src/mainboard/asus/p2b/cmos.layout b/src/mainboard/asus/p2b/cmos.layout
new file mode 100644
index 0000000000..37fe73d915
--- /dev/null
+++ b/src/mainboard/asus/p2b/cmos.layout
@@ -0,0 +1,72 @@
+entries
+
+# -----------------------------------------------------------------
+0 120 r 0 reserved_memory
+#120 264 r 0 unused
+
+# -----------------------------------------------------------------
+# RTC_BOOT_BYTE (coreboot hardcoded)
+384 1 e 3 boot_option
+388 4 h 0 reboot_counter
+
+# -----------------------------------------------------------------
+# coreboot config options: console
+395 4 e 4 debug_level
+
+# -----------------------------------------------------------------
+# coreboot config options: southbridge
+
+# Non Maskable Interrupt(NMI) support, which is an interrupt that may
+# occur on a RAM or unrecoverable error.
+408 1 e 1 nmi
+
+#409 2 e 5 power_on_after_fail
+411 1 e 1 udma_enable
+
+# -----------------------------------------------------------------
+# p2b-[ld]s config options: onboard SCSI termination
+# Controls PIIX4 GPO22 (Ultra2-68) and GPO23 (SCSI-50)
+412 1 e 1 scsi_se_term
+413 1 e 2 scsi_lvd_term
+
+# -----------------------------------------------------------------
+# TODO: raminit config options
+#415 1 e 6 ram_timing
+#416 1 e 5 srp_timing
+#417 1 e 5 srcd_timing
+#418 1 e 5 cas_latency
+
+enumerations
+#ID value text
+
+# Generic on/off enum
+1 0 Disable
+1 1 Enable
+# Inverted on/off enum
+2 0 Enable
+2 1 Disable
+
+# boot_option
+3 0 Fallback
+3 1 Normal
+
+# debug_level
+4 0 Emergency
+4 1 Alert
+4 2 Critical
+4 3 Error
+4 4 Warning
+4 5 Notice
+4 6 Info
+4 7 Debug
+4 8 Spew
+
+#5 0 3
+#5 1 2
+
+#6 0 Auto
+#6 1 Manual
+
+checksums
+
+checksum 592 975 976