From 46731237ceca6162302e23f535dc886ac171b6e6 Mon Sep 17 00:00:00 2001 From: Maxime de Roucy Date: Sun, 27 Sep 2015 15:45:35 +0200 Subject: pcengines/apu1: Add CMOS/NVRAM support Inspired by the Sage source code (itself from coreboot). Change-Id: I4864923166efb200882d895c572d1ee060c71951 Signed-off-by: Maxime de Roucy Reviewed-on: http://review.coreboot.org/11730 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- src/mainboard/pcengines/apu1/Kconfig | 2 ++ src/mainboard/pcengines/apu1/cmos.default | 5 ++++ src/mainboard/pcengines/apu1/cmos.layout | 46 +++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 src/mainboard/pcengines/apu1/cmos.default create mode 100644 src/mainboard/pcengines/apu1/cmos.layout (limited to 'src/mainboard/pcengines/apu1') diff --git a/src/mainboard/pcengines/apu1/Kconfig b/src/mainboard/pcengines/apu1/Kconfig index b1b19c9b44..7ea1821415 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 0000000000..35e036538d --- /dev/null +++ b/src/mainboard/pcengines/apu1/cmos.default @@ -0,0 +1,5 @@ +last_boot=Fallback +boot_option=Fallback +multi_core=Enable +debug_level=Spew +baud_rate=115200 diff --git a/src/mainboard/pcengines/apu1/cmos.layout b/src/mainboard/pcengines/apu1/cmos.layout new file mode 100644 index 0000000000..0cf145f258 --- /dev/null +++ b/src/mainboard/pcengines/apu1/cmos.layout @@ -0,0 +1,46 @@ +entries + +# +0 384 r 0 reserved_memory +384 4 r 0 reboot_bits +388 1 e 2 last_boot +# leave 3 bits to make checksummed area start byte-aligned +392 1 e 2 boot_option +393 1 e 1 multi_core +394 3 e 3 baud_rate +397 4 e 4 debug_level +# leave 7 bits to make checksummed area end byte-aligned +408 16 h 0 check_sum + +enumerations + +#