summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/mandolin/Kconfig
diff options
context:
space:
mode:
authorFelix Held <felix.held@amd.corp-partner.google.com>2020-04-04 05:27:05 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-06-21 01:17:31 +0000
commite6315f74d6f402734e476a57a8faf4ac9cb23d38 (patch)
tree21ef786a292ad9ec95bbbb196d9234588d6ffa97 /src/mainboard/amd/mandolin/Kconfig
parent12b0f7746e6ce8c3eeb677e093b756aeb8ede493 (diff)
downloadcoreboot-e6315f74d6f402734e476a57a8faf4ac9cb23d38.tar.xz
mb/amd/mandolin: Add Picasso CRB
Mandolin is the CRB for AMD Picasso and Dali. The mainboard code still needs a little cleanup and verification, but I'll do that in a follow-up to have a non Chromebook board using the Picasso SoC code in tree as soon as possible to be able to detect some possible breakage. BUG=b:130660285 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I2b4a78e1eef9f998e1986da1506201eb505822eb Reviewed-on: https://review.coreboot.org/c/coreboot/+/33772 Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/amd/mandolin/Kconfig')
-rw-r--r--src/mainboard/amd/mandolin/Kconfig94
1 files changed, 94 insertions, 0 deletions
diff --git a/src/mainboard/amd/mandolin/Kconfig b/src/mainboard/amd/mandolin/Kconfig
new file mode 100644
index 0000000000..9760e45194
--- /dev/null
+++ b/src/mainboard/amd/mandolin/Kconfig
@@ -0,0 +1,94 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+if BOARD_AMD_MANDOLIN
+
+config BOARD_SPECIFIC_OPTIONS
+ def_bool y
+ select SOC_AMD_COMMON_BLOCK_USE_ESPI
+ select SOC_AMD_PICASSO
+ select HAVE_ACPI_TABLES
+ select BOARD_ROMSIZE_KB_8192
+ select AZALIA_PLUGIN_SUPPORT
+ select HAVE_ACPI_RESUME
+
+config FMDFILE
+ string
+ default "src/mainboard/amd/mandolin/mandolin.fmd"
+
+config AMD_LPC_DEBUG_CARD
+ bool "Enable LPC-Serial debug card on the debug header"
+ default n
+ select PICASSO_LPC_IOMUX
+ select SUPERIO_SMSC_SIO1036
+ help
+ AMD's debug card contains an SMSC SIO1036 device which provides
+ an I/O-based UART in the system. This feature is not compatible with
+ CONFIG_HUDSON_UART enabling the memory-mapped UART in the chipset.
+ Note that Kconfig does not currently enforce this restriction.
+
+config CBFS_SIZE
+ default 0x780000
+ help
+ TODO: Adjust this to maximize CBFS size
+
+config MAINBOARD_DIR
+ string
+ default amd/mandolin
+
+config MAINBOARD_PART_NUMBER
+ string
+ default "MANDOLIN"
+
+config MAX_CPUS
+ int
+ default 8
+
+config IRQ_SLOT_COUNT
+ int
+ default 11
+
+config ONBOARD_VGA_IS_PRIMARY
+ bool
+ default y
+
+config AMD_FWM_POSITION_INDEX
+ int
+ default 3
+ help
+ TODO: might need to be adapted for better placement of files in cbfs
+
+config MANDOLIN_HAVE_MCHP_FW
+ bool "Have Microchip EC firmware?"
+ default n
+
+config MANDOLIN_MCHP_FW_FILE
+ string
+ depends on MANDOLIN_HAVE_MCHP_FW
+ default "3rdparty/blobs/mainboard/amd/mandolin/mchp.bin"
+
+if !AMD_LPC_DEBUG_CARD
+choice MANDOLIN_LPC_IOMUX
+ prompt "State of IOMux for LPC/eMMC signals"
+ default MANDOLIN_IOMUX_USE_EMMC
+ help
+ Mandolin is designed to use either LPC or eMMC signals. Use this
+ selection to determine which are configured for this image.
+
+config MANDOLIN_IOMUX_USE_LPC
+ bool "LPC signals"
+ help
+
+config MANDOLIN_IOMUX_USE_EMMC
+ bool "eMMC signals"
+
+endchoice
+endif # !AMD_LPC_DEBUG_CARD
+
+config PICASSO_LPC_IOMUX
+ bool
+ default y if MANDOLIN_IOMUX_USE_LPC
+ help
+ Picasso's LPC bus signals are MUXed with some of the EMMC signals.
+ Select this option if LPC signals are required.
+
+endif # BOARD_AMD_MANDOLIN