Maxime de Roucy (maxime.deroucy@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11730
-gerrit
commit 956be703463a66bd4d153c31888a67ba7dd8cc5c Author: Maxime de Roucy maxime.deroucy@gmail.com Date: Sun Sep 27 15:45:35 2015 +0200
pcengines/apu1: Add CMOS/NVRAM support
Inspired by the Sage source code (itself from coreboot).
Change-Id: I4864923166efb200882d895c572d1ee060c71951 Signed-off-by: Maxime de Roucy maxime.deroucy@gmail.com --- src/mainboard/pcengines/apu1/Kconfig | 2 ++ src/mainboard/pcengines/apu1/cmos.default | 5 ++++ src/mainboard/pcengines/apu1/cmos.layout | 44 +++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+)
diff --git a/src/mainboard/pcengines/apu1/Kconfig b/src/mainboard/pcengines/apu1/Kconfig index b1b19c9..7ea1821 100644 --- a/src/mainboard/pcengines/apu1/Kconfig +++ b/src/mainboard/pcengines/apu1/Kconfig @@ -30,6 +30,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy select HAVE_MP_TABLE select HAVE_ACPI_RESUME select HAVE_ACPI_TABLES + select HAVE_OPTION_TABLE + select HAVE_CMOS_DEFAULT select BOARD_ROMSIZE_KB_2048 select SPD_CACHE
diff --git a/src/mainboard/pcengines/apu1/cmos.default b/src/mainboard/pcengines/apu1/cmos.default new file mode 100644 index 0000000..bca3115 --- /dev/null +++ b/src/mainboard/pcengines/apu1/cmos.default @@ -0,0 +1,5 @@ +last_boot=Fallback +boot_option=Fallback +multi_core=Enable +debug_level=Emerg +baud_rate=115200 diff --git a/src/mainboard/pcengines/apu1/cmos.layout b/src/mainboard/pcengines/apu1/cmos.layout new file mode 100644 index 0000000..6172f35 --- /dev/null +++ b/src/mainboard/pcengines/apu1/cmos.layout @@ -0,0 +1,44 @@ +entries + +# <start-bit> <bit-length> <config> <config-id> <parameter-name> +0 384 r 0 reserved_memory +384 4 r 0 reboot_bits +388 1 e 2 last_boot +389 1 e 2 boot_option +390 1 e 1 multi_core +391 3 e 3 baud_rate +394 4 e 4 debug_level +398 16 h 0 check_sum + +enumerations + +#<config-id> <value> <label> +## for multi_core +1 0 Enable +1 1 Disable +## for last_boot, boot_option +2 0 Fallback +2 1 Normal +## for baud_rate +3 0 115200 +3 1 57600 +3 2 38400 +3 3 19200 +3 4 9600 +3 5 4800 +3 6 2400 +3 7 1200 +## for debug_level +4 0 Emerg +4 1 Alert +4 2 Crit +4 3 Err +4 4 Warning +4 5 Notice +4 6 Info +4 7 Debug +4 8 Spew + +checksums + +checksum 389 397 398