Ritul Guru | 286c2f6 | 2021-02-05 23:53:28 +0530 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | if BOARD_AMD_BILBY |
| 4 | |
| 5 | config BOARD_SPECIFIC_OPTIONS |
| 6 | def_bool y |
| 7 | select SOC_AMD_COMMON_BLOCK_USE_ESPI |
| 8 | select SOC_AMD_PICASSO |
| 9 | select BOARD_ROMSIZE_KB_16384 |
| 10 | select AZALIA_PLUGIN_SUPPORT |
| 11 | select HAVE_ACPI_RESUME |
| 12 | select DRIVERS_UART_ACPI |
| 13 | select AMD_SOC_CONSOLE_UART if !AMD_LPC_DEBUG_CARD |
| 14 | |
| 15 | config FMDFILE |
| 16 | string |
| 17 | default "src/mainboard/amd/bilby/board.fmd" |
| 18 | |
| 19 | config AMD_LPC_DEBUG_CARD |
| 20 | bool "Enable LPC-Serial debug card on the debug header" |
| 21 | default n |
| 22 | select BILBY_LPC |
| 23 | select SUPERIO_SMSC_SIO1036 |
| 24 | help |
| 25 | AMD's debug card contains an SMSC SIO1036 device which provides an |
| 26 | I/O-mapped UART in the system. This is mutually exclusive with |
| 27 | AMD_SOC_CONSOLE_UART which selects the SoC's integrated memory-mapped |
| 28 | UART for coreboot console output. |
| 29 | |
| 30 | choice |
| 31 | prompt "SMSC/Microchip 1036 SuperIO config address" |
| 32 | depends on SUPERIO_SMSC_SIO1036 |
| 33 | default BILBY_SMSC_SIO1036_BASE_164E |
| 34 | |
| 35 | config BILBY_SMSC_SIO1036_BASE_4E |
| 36 | bool "0x4e/0x4d base address" |
| 37 | |
| 38 | config BILBY_SMSC_SIO1036_BASE_164E |
| 39 | bool "0x164e/0x164d base address" |
| 40 | |
| 41 | endchoice |
| 42 | |
| 43 | config SUPERIO_ADDR_BASE |
| 44 | hex |
| 45 | default 0x4e if BILBY_SMSC_SIO1036_BASE_4E |
| 46 | default 0x164e if BILBY_SMSC_SIO1036_BASE_164E |
| 47 | |
| 48 | config CBFS_SIZE |
| 49 | hex |
Ritul Guru | 3e945f1 | 2021-02-19 08:36:27 +0530 | [diff] [blame^] | 50 | default 0xfef000 # Maximum size for the Bilby FMAP |
Ritul Guru | 286c2f6 | 2021-02-05 23:53:28 +0530 | [diff] [blame] | 51 | |
| 52 | config MAINBOARD_DIR |
| 53 | string |
| 54 | default "amd/bilby" |
| 55 | |
| 56 | config MAINBOARD_PART_NUMBER |
| 57 | string |
| 58 | default "BILBY" |
| 59 | |
| 60 | config DEVICETREE |
| 61 | string |
| 62 | default "devicetree.cb" |
| 63 | |
| 64 | config ONBOARD_VGA_IS_PRIMARY |
| 65 | bool |
| 66 | default y |
| 67 | |
Ritul Guru | 286c2f6 | 2021-02-05 23:53:28 +0530 | [diff] [blame] | 68 | if !AMD_LPC_DEBUG_CARD |
| 69 | choice |
| 70 | prompt "State of IOMux for LPC/eMMC signals" |
| 71 | default BILBY_IOMUX_USE_EMMC |
| 72 | help |
| 73 | Bilby is designed to use either LPC or eMMC signals. Use this |
| 74 | selection to determine which are configured for this image. |
| 75 | |
| 76 | config BILBY_IOMUX_USE_LPC |
| 77 | bool "LPC signals" |
| 78 | |
| 79 | config BILBY_IOMUX_USE_EMMC |
| 80 | bool "eMMC signals" |
| 81 | |
| 82 | endchoice |
| 83 | endif # !AMD_LPC_DEBUG_CARD |
| 84 | |
| 85 | config BILBY_LPC |
| 86 | bool |
| 87 | default y if BILBY_IOMUX_USE_LPC |
| 88 | help |
| 89 | Picasso's LPC bus signals are MUXed with some of the EMMC signals. |
| 90 | Select this option if LPC signals are required. |
| 91 | |
| 92 | #TODO: remove this hack to not break graphics in combination with SeaBIOS |
| 93 | config VGA_BIOS_DGPU_ID |
| 94 | string |
| 95 | default "1002,15d8" |
| 96 | help |
| 97 | The default VGA BIOS PCI vendor/device ID should be set to the |
| 98 | result of the map_oprom_vendev() function in northbridge.c. |
| 99 | |
| 100 | config VGA_BIOS_DGPU_FILE |
| 101 | string |
| 102 | default "3rdparty/amd_blobs/picasso/Raven2GenericVbios.bin" |
| 103 | |
| 104 | config EFS_SPI_READ_MODE |
| 105 | int |
| 106 | default 0 if EM100 |
| 107 | default 3 |
| 108 | |
| 109 | config EFS_SPI_SPEED |
| 110 | int |
| 111 | default 3 if EM100 |
| 112 | default 0 |
| 113 | |
| 114 | config EFS_SPI_MICRON_FLAG |
| 115 | int |
| 116 | default 0 |
| 117 | |
| 118 | endif # BOARD_AMD_BILBY |