In order for Linux to find and use the SoC's integrated UARTs, they need to be exposed in ACPI. BUG=b:165020060 TEST=Linux detects the SoC's integrated UARTs. Change-Id: Iaa66657b88f62b2067c865c3e1945b7bdbf9be23 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44529 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
125 lines
2.9 KiB
Plaintext
125 lines
2.9 KiB
Plaintext
# 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 if BOARD_AMD_MANDOLIN
|
|
select AZALIA_PLUGIN_SUPPORT
|
|
select HAVE_ACPI_RESUME
|
|
select DRIVERS_UART_ACPI
|
|
select PICASSO_CONSOLE_UART if !AMD_LPC_DEBUG_CARD
|
|
|
|
config FMDFILE
|
|
string
|
|
default "src/mainboard/amd/mandolin/variants/\$(CONFIG_VARIANT_DIR)/board.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
|
|
hex
|
|
default 0x7cf000 if BOARD_AMD_MANDOLIN # Maximum size for the Mandolin FMAP
|
|
|
|
config MAINBOARD_DIR
|
|
string
|
|
default "amd/mandolin"
|
|
|
|
config VARIANT_DIR
|
|
string
|
|
default "mandolin" if BOARD_AMD_MANDOLIN
|
|
|
|
config MAINBOARD_PART_NUMBER
|
|
string
|
|
default "MANDOLIN" if BOARD_AMD_MANDOLIN
|
|
|
|
config DEVICETREE
|
|
string
|
|
default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
|
|
|
|
config MAX_CPUS
|
|
int
|
|
default 8
|
|
|
|
config ONBOARD_VGA_IS_PRIMARY
|
|
bool
|
|
default y
|
|
|
|
config AMD_FWM_POSITION_INDEX
|
|
int
|
|
default 3 if BOARD_AMD_MANDOLIN
|
|
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/EC_mandolin.bin" if BOARD_AMD_MANDOLIN
|
|
|
|
if !AMD_LPC_DEBUG_CARD
|
|
choice
|
|
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"
|
|
|
|
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.
|
|
|
|
#TODO: remove this hack to not break graphics in combination with SeaBIOS
|
|
config VGA_BIOS_DGPU_ID
|
|
string
|
|
default "1002,15d8"
|
|
help
|
|
The default VGA BIOS PCI vendor/device ID should be set to the
|
|
result of the map_oprom_vendev() function in northbridge.c.
|
|
|
|
config VGA_BIOS_DGPU_FILE
|
|
string
|
|
default "3rdparty/amd_blobs/picasso/PicassoGenericVbios.bin" if BOARD_AMD_MANDOLIN
|
|
|
|
config EFS_SPI_READ_MODE
|
|
int
|
|
default 0 if EM100
|
|
default 5
|
|
|
|
config EFS_SPI_SPEED
|
|
int
|
|
default 3 if EM100
|
|
default 0
|
|
|
|
config EFS_SPI_MICRON_FLAG
|
|
int
|
|
default 0
|
|
|
|
endif # BOARD_AMD_MANDOLIN
|