1 # SPDX-License-Identifier: GPL-2.0-only
3 if BOARD_AMD_MANDOLIN || BOARD_AMD_CEREME
5 config BOARD_SPECIFIC_OPTIONS
7 select SOC_AMD_COMMON_BLOCK_USE_ESPI
9 select BOARD_ROMSIZE_KB_8192 if BOARD_AMD_MANDOLIN
10 select BOARD_ROMSIZE_KB_16384 if BOARD_AMD_CEREME
11 select AZALIA_HDA_CODEC_SUPPORT
12 select HAVE_ACPI_RESUME
13 select DRIVERS_UART_ACPI
14 select AMD_SOC_CONSOLE_UART if !AMD_LPC_DEBUG_CARD
15 select AMD_FWM_POSITION_420000_DEFAULT if BOARD_AMD_MANDOLIN
16 select AMD_FWM_POSITION_820000_DEFAULT if BOARD_AMD_CEREME
19 default "src/mainboard/amd/mandolin/variants/\$(CONFIG_VARIANT_DIR)/board.fmd"
21 config AMD_LPC_DEBUG_CARD
22 bool "Enable LPC-Serial debug card on the debug header"
25 select SUPERIO_SMSC_SIO1036
27 AMD's debug card contains an SMSC SIO1036 device which provides an
28 I/O-mapped UART in the system. This is mutually exclusive with
29 AMD_SOC_CONSOLE_UART which selects the SoC's integrated memory-mapped
30 UART for coreboot console output.
33 prompt "SMSC/Microchip 1036 SuperIO config address"
34 depends on SUPERIO_SMSC_SIO1036
35 default SMSC_SIO1036_BASE_164E
37 config SMSC_SIO1036_BASE_4E
38 bool "0x4e/0x4d base address"
40 config SMSC_SIO1036_BASE_164E
41 bool "0x164e/0x164d base address"
45 config SUPERIO_ADDR_BASE
47 default 0x4e if SMSC_SIO1036_BASE_4E
48 default 0x164e if SMSC_SIO1036_BASE_164E
51 default 0x7cf000 if BOARD_AMD_MANDOLIN # Maximum size for the Mandolin FMAP
52 default 0xfcf000 if BOARD_AMD_CEREME # Maximum size for the Cereme FMAP
55 default "amd/mandolin"
58 default "mandolin" if BOARD_AMD_MANDOLIN
59 default "cereme" if BOARD_AMD_CEREME
61 config MAINBOARD_PART_NUMBER
62 default "MANDOLIN" if BOARD_AMD_MANDOLIN
63 default "CEREME" if BOARD_AMD_CEREME
66 default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
68 config ONBOARD_VGA_IS_PRIMARY
72 config MANDOLIN_HAVE_MCHP_FW
73 bool "Have Microchip EC firmware?"
76 config MANDOLIN_MCHP_FW_FILE
78 depends on MANDOLIN_HAVE_MCHP_FW
79 default "3rdparty/blobs/mainboard/amd/mandolin/EC_mandolin.bin" if BOARD_AMD_MANDOLIN
80 default "3rdparty/blobs/mainboard/amd/mandolin/EC_cereme.bin" if BOARD_AMD_CEREME
82 The EC firmware blob is usually the first 128kByte of the stock
85 if !AMD_LPC_DEBUG_CARD
87 prompt "State of IOMux for LPC/eMMC signals"
88 default MANDOLIN_IOMUX_USE_EMMC
90 Mandolin is designed to use either LPC or eMMC signals. Use this
91 selection to determine which are configured for this image.
93 config MANDOLIN_IOMUX_USE_LPC
96 config MANDOLIN_IOMUX_USE_EMMC
100 endif # !AMD_LPC_DEBUG_CARD
104 default y if MANDOLIN_IOMUX_USE_LPC
106 Picasso's LPC bus signals are MUXed with some of the EMMC signals.
107 Select this option if LPC signals are required.
109 #TODO: remove this hack to not break graphics in combination with SeaBIOS
110 config VGA_BIOS_DGPU_ID
114 The default VGA BIOS PCI vendor/device ID should be set to the
115 result of the map_oprom_vendev() function in northbridge.c.
117 config VGA_BIOS_DGPU_FILE
119 default "3rdparty/amd_blobs/picasso/PicassoGenericVbios.bin" if BOARD_AMD_MANDOLIN
120 default "3rdparty/amd_blobs/picasso/Raven2GenericVbios.bin" if BOARD_AMD_CEREME
122 if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
123 config EFS_SPI_READ_MODE
124 default 3 # Quad IO (1-1-4)
129 config EFS_SPI_MICRON_FLAG
132 config NORMAL_READ_SPI_SPEED
143 endif # BOARD_AMD_MANDOLIN || BOARD_AMD_CEREME