1# SPDX-License-Identifier: GPL-2.0-only 2 3if BOARD_AMD_BILBY 4 5config BOARD_SPECIFIC_OPTIONS 6 def_bool y 7 select SOC_AMD_PICASSO 8 select BOARD_ROMSIZE_KB_16384 9 select AZALIA_HDA_CODEC_SUPPORT 10 select HAVE_ACPI_RESUME 11 select DRIVERS_UART_ACPI 12 select AMD_SOC_CONSOLE_UART if !AMD_LPC_DEBUG_CARD 13 14config FMDFILE 15 default "src/mainboard/amd/bilby/board.fmd" 16 17config AMD_LPC_DEBUG_CARD 18 bool "Enable LPC-Serial debug card on the debug header" 19 default n 20 select BILBY_LPC 21 select SUPERIO_SMSC_SIO1036 22 help 23 AMD's debug card contains an SMSC SIO1036 device which provides an 24 I/O-mapped UART in the system. This is mutually exclusive with 25 AMD_SOC_CONSOLE_UART which selects the SoC's integrated memory-mapped 26 UART for coreboot console output. 27 28choice 29 prompt "SMSC/Microchip 1036 SuperIO config address" 30 depends on SUPERIO_SMSC_SIO1036 31 default BILBY_SMSC_SIO1036_BASE_164E 32 33config BILBY_SMSC_SIO1036_BASE_4E 34 bool "0x4e/0x4d base address" 35 36config BILBY_SMSC_SIO1036_BASE_164E 37 bool "0x164e/0x164d base address" 38 39endchoice 40 41config SUPERIO_ADDR_BASE 42 hex 43 default 0x4e if BILBY_SMSC_SIO1036_BASE_4E 44 default 0x164e if BILBY_SMSC_SIO1036_BASE_164E 45 46config CBFS_SIZE 47 default 0xfef000 # Maximum size for the Bilby FMAP 48 49config MAINBOARD_DIR 50 default "amd/bilby" 51 52config MAINBOARD_PART_NUMBER 53 default "BILBY" 54 55config ONBOARD_VGA_IS_PRIMARY 56 bool 57 default y 58 59if !AMD_LPC_DEBUG_CARD 60choice 61 prompt "State of IOMux for LPC/eMMC signals" 62 default BILBY_IOMUX_USE_EMMC 63 help 64 Bilby is designed to use either LPC or eMMC signals. Use this 65 selection to determine which are configured for this image. 66 67config BILBY_IOMUX_USE_LPC 68 bool "LPC signals" 69 70config BILBY_IOMUX_USE_EMMC 71 bool "eMMC signals" 72 73endchoice 74endif # !AMD_LPC_DEBUG_CARD 75 76config BILBY_LPC 77 bool 78 default y if BILBY_IOMUX_USE_LPC 79 help 80 Picasso's LPC bus signals are MUXed with some of the EMMC signals. 81 Select this option if LPC signals are required. 82 83if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig 84config EFS_SPI_READ_MODE 85 default 3 # Quad IO (1-1-4) 86 87config EFS_SPI_SPEED 88 default 0 # 66MHz 89 90config EFS_SPI_MICRON_FLAG 91 default 0 92 93config NORMAL_READ_SPI_SPEED 94 default 1 # 33MHz 95 96config ALT_SPI_SPEED 97 default 1 # 33MHz 98 99config TPM_SPI_SPEED 100 default 1 # 33MHz 101 102endif # !EM100 103 104choice 105 prompt "DDI-0 connector type" 106 default CONNECT_DP_ON_DDI_0 107 108config CONNECT_HDMI_ON_DDI_0 109 bool "Use HDMI interface" 110 111config CONNECT_DP_ON_DDI_0 112 bool "Use Displayport interface" 113endchoice 114 115config DDI0_CONNECTOR_TYPE 116 int 117 default 0 if CONNECT_DP_ON_DDI_0 118 default 4 if CONNECT_HDMI_ON_DDI_0 119 120choice 121 prompt "DDI-1 connector type" 122 default CONNECT_DP_ON_DDI_1 123 124config CONNECT_HDMI_ON_DDI_1 125 bool "Use HDMI interface" 126 127config CONNECT_DP_ON_DDI_1 128 bool "Use Displayport interface" 129endchoice 130 131config DDI1_CONNECTOR_TYPE 132 int 133 default 0 if CONNECT_DP_ON_DDI_1 134 default 4 if CONNECT_HDMI_ON_DDI_1 135 136endif # BOARD_AMD_BILBY 137