Sean Rhodes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/59979 )
Change subject: mb/starlabs/labtop: Store serial number in CMOS ......................................................................
mb/starlabs/labtop: Store serial number in CMOS
Signed-off-by: Sean Rhodes sean@starlabs.systems Change-Id: I70c35c8f99f7e3ac8e45e742156dca741a6c6933 --- M src/mainboard/starlabs/labtop/cmos.default M src/mainboard/starlabs/labtop/cmos.layout M src/mainboard/starlabs/labtop/mainboard.c 3 files changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/59979/1
diff --git a/src/mainboard/starlabs/labtop/cmos.default b/src/mainboard/starlabs/labtop/cmos.default index b4b2d26..96e3e51 100644 --- a/src/mainboard/starlabs/labtop/cmos.default +++ b/src/mainboard/starlabs/labtop/cmos.default @@ -19,3 +19,5 @@ fn_ctrl_swap=Disable # southbridge power_on_after_fail=Disable +# serial number +serial_number=00000 diff --git a/src/mainboard/starlabs/labtop/cmos.layout b/src/mainboard/starlabs/labtop/cmos.layout index 2601e98..7c9a133 100644 --- a/src/mainboard/starlabs/labtop/cmos.layout +++ b/src/mainboard/starlabs/labtop/cmos.layout @@ -50,6 +50,8 @@ 1040 8 h 10 kbl_brightness 1048 8 h 1 kbl_state
+# serial number +2000 16 h 0 serial_number # -----------------------------------------------------------------
enumerations diff --git a/src/mainboard/starlabs/labtop/mainboard.c b/src/mainboard/starlabs/labtop/mainboard.c index 8babae3..02bdfb8 100644 --- a/src/mainboard/starlabs/labtop/mainboard.c +++ b/src/mainboard/starlabs/labtop/mainboard.c @@ -43,5 +43,5 @@
const char *smbios_chassis_serial_number(void) { - return smbios_mainboard_serial_number(); + return CONFIG_MAINBOARD_FAMILY && get_uint_options("serial_number"); }