blob: 3366705ddb60fa48e72c7ef3b3ddb4fba1f69ac0 [file] [log] [blame]
Ritul Guru286c2f62021-02-05 23:53:28 +05301# 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_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
15config FMDFILE
16 string
17 default "src/mainboard/amd/bilby/board.fmd"
18
19config 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
30choice
31 prompt "SMSC/Microchip 1036 SuperIO config address"
32 depends on SUPERIO_SMSC_SIO1036
33 default BILBY_SMSC_SIO1036_BASE_164E
34
35config BILBY_SMSC_SIO1036_BASE_4E
36 bool "0x4e/0x4d base address"
37
38config BILBY_SMSC_SIO1036_BASE_164E
39 bool "0x164e/0x164d base address"
40
41endchoice
42
43config SUPERIO_ADDR_BASE
44 hex
45 default 0x4e if BILBY_SMSC_SIO1036_BASE_4E
46 default 0x164e if BILBY_SMSC_SIO1036_BASE_164E
47
48config CBFS_SIZE
49 hex
Ritul Guru3e945f12021-02-19 08:36:27 +053050 default 0xfef000 # Maximum size for the Bilby FMAP
Ritul Guru286c2f62021-02-05 23:53:28 +053051
52config MAINBOARD_DIR
53 string
54 default "amd/bilby"
55
56config MAINBOARD_PART_NUMBER
57 string
58 default "BILBY"
59
60config DEVICETREE
61 string
62 default "devicetree.cb"
63
64config ONBOARD_VGA_IS_PRIMARY
65 bool
66 default y
67
Ritul Guru286c2f62021-02-05 23:53:28 +053068if !AMD_LPC_DEBUG_CARD
69choice
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
76config BILBY_IOMUX_USE_LPC
77 bool "LPC signals"
78
79config BILBY_IOMUX_USE_EMMC
80 bool "eMMC signals"
81
82endchoice
83endif # !AMD_LPC_DEBUG_CARD
84
85config 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
93config 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
100config VGA_BIOS_DGPU_FILE
101 string
102 default "3rdparty/amd_blobs/picasso/Raven2GenericVbios.bin"
103
104config EFS_SPI_READ_MODE
105 int
106 default 0 if EM100
107 default 3
108
109config EFS_SPI_SPEED
110 int
111 default 3 if EM100
112 default 0
113
114config EFS_SPI_MICRON_FLAG
115 int
116 default 0
117
118endif # BOARD_AMD_BILBY