From 003d6397c6237e618e846b655283bdb9c605c518 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Fri, 31 May 2024 17:17:00 +0200 Subject: via: Start template for VIA C7 w/ CX700 northbridge The first steps to bring C7 and CX700 support back mainline. Most is skeleton copied from the `min86' example. The romstage entry is placed in the northbridge code, as that's where we'll perform raminit. Support to read the FSB frequency is added right away, same for a reset function (using CF9 reset), as both are required for a minimal build test. A mainboard VIA EPIA-EX is also introduced for build testing, and in later stages boot testing as well. Links: DS: https://theretroweb.com/chip/documentation/via-cx700-datasheet-feb06-666c8b172d347554179891.pdf PM: https://web.archive.org/web/20180616220857/http://linux.via.com.tw/support/beginDownload.action?eleid=141&fid=221 Change-Id: I66f678fae0d5a27bb09c0c6c702440900998e574 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/82765 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/mainboard/via/Kconfig | 17 +++++++++++++++++ src/mainboard/via/Kconfig.name | 4 ++++ src/mainboard/via/epia-ex/Kconfig | 18 ++++++++++++++++++ src/mainboard/via/epia-ex/Kconfig.name | 4 ++++ src/mainboard/via/epia-ex/board_info.txt | 8 ++++++++ src/mainboard/via/epia-ex/devicetree.cb | 6 ++++++ 6 files changed, 57 insertions(+) create mode 100644 src/mainboard/via/Kconfig create mode 100644 src/mainboard/via/Kconfig.name create mode 100644 src/mainboard/via/epia-ex/Kconfig create mode 100644 src/mainboard/via/epia-ex/Kconfig.name create mode 100644 src/mainboard/via/epia-ex/board_info.txt create mode 100644 src/mainboard/via/epia-ex/devicetree.cb (limited to 'src/mainboard') diff --git a/src/mainboard/via/Kconfig b/src/mainboard/via/Kconfig new file mode 100644 index 0000000000..8fff54262d --- /dev/null +++ b/src/mainboard/via/Kconfig @@ -0,0 +1,17 @@ +## SPDX-License-Identifier: GPL-2.0-only + +if VENDOR_VIA + +choice + prompt "Mainboard model" + +source "src/mainboard/via/*/Kconfig.name" + +endchoice + +source "src/mainboard/via/*/Kconfig" + +config MAINBOARD_VENDOR + default "VIA" + +endif # VENDOR_VIA diff --git a/src/mainboard/via/Kconfig.name b/src/mainboard/via/Kconfig.name new file mode 100644 index 0000000000..c3d6cfddb4 --- /dev/null +++ b/src/mainboard/via/Kconfig.name @@ -0,0 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only + +config VENDOR_VIA + bool "VIA" diff --git a/src/mainboard/via/epia-ex/Kconfig b/src/mainboard/via/epia-ex/Kconfig new file mode 100644 index 0000000000..76347f2621 --- /dev/null +++ b/src/mainboard/via/epia-ex/Kconfig @@ -0,0 +1,18 @@ +## SPDX-License-Identifier: GPL-2.0-only + +if BOARD_VIA_EPIA_EX + +config BOARD_SPECIFIC_OPTIONS + def_bool y + select CPU_VIA_C7 + select NORTHBRIDGE_VIA_CX700 + select BOARD_ROMSIZE_KB_512 + select NO_UART_ON_SUPERIO + +config MAINBOARD_DIR + default "via/epia-ex" + +config MAINBOARD_PART_NUMBER + default "EPIA-EX" + +endif diff --git a/src/mainboard/via/epia-ex/Kconfig.name b/src/mainboard/via/epia-ex/Kconfig.name new file mode 100644 index 0000000000..067e6b4813 --- /dev/null +++ b/src/mainboard/via/epia-ex/Kconfig.name @@ -0,0 +1,4 @@ +## SPDX-License-Identifier: GPL-2.0-only + +config BOARD_VIA_EPIA_EX + bool "EPIA-EX (work in progress)" diff --git a/src/mainboard/via/epia-ex/board_info.txt b/src/mainboard/via/epia-ex/board_info.txt new file mode 100644 index 0000000000..b2367999a8 --- /dev/null +++ b/src/mainboard/via/epia-ex/board_info.txt @@ -0,0 +1,8 @@ +Board name: EPIA-EX +Category: mini +Board URL: https://web.archive.org/web/20211129175218/https://www.viatech.com/en/support/eol/epia-ex-eol/ +ROM package: PLCC +ROM protocol: LPC +ROM socketed: y +Flashrom support: y +Release year: 2006 diff --git a/src/mainboard/via/epia-ex/devicetree.cb b/src/mainboard/via/epia-ex/devicetree.cb new file mode 100644 index 0000000000..3f76279175 --- /dev/null +++ b/src/mainboard/via/epia-ex/devicetree.cb @@ -0,0 +1,6 @@ +chip northbridge/via/cx700 + + device domain 0 on + end + +end -- cgit v1.2.3