From e6315f74d6f402734e476a57a8faf4ac9cb23d38 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Sat, 4 Apr 2020 05:27:05 +0200 Subject: 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 Signed-off-by: Aaron Durbin Signed-off-by: Zheng Bao Signed-off-by: Felix Held Signed-off-by: Furquan Shaikh Change-Id: I2b4a78e1eef9f998e1986da1506201eb505822eb Reviewed-on: https://review.coreboot.org/c/coreboot/+/33772 Reviewed-by: Raul Rangel Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/mainboard/amd/mandolin/Kconfig | 94 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 src/mainboard/amd/mandolin/Kconfig (limited to 'src/mainboard/amd/mandolin/Kconfig') 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 -- cgit v1.2.3