summaryrefslogtreecommitdiff
path: root/src/mainboard/via
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2024-05-31 17:17:00 +0200
committerLean Sheng Tan <sheng.tan@9elements.com>2024-11-11 09:16:55 +0000
commit003d6397c6237e618e846b655283bdb9c605c518 (patch)
treee423a541cc0c5c21ef3a2021373b07629cb13b7f /src/mainboard/via
parent5b0dc2b6a015288fa22803a5e2dc99c3dbc21c5c (diff)
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 <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82765 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/via')
-rw-r--r--src/mainboard/via/Kconfig17
-rw-r--r--src/mainboard/via/Kconfig.name4
-rw-r--r--src/mainboard/via/epia-ex/Kconfig18
-rw-r--r--src/mainboard/via/epia-ex/Kconfig.name4
-rw-r--r--src/mainboard/via/epia-ex/board_info.txt8
-rw-r--r--src/mainboard/via/epia-ex/devicetree.cb6
6 files changed, 57 insertions, 0 deletions
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