Debian Codegraph @

src/mainboard/amd/bilby/Kconfig

raw
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_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
14 config FMDFILE
15 default "src/mainboard/amd/bilby/board.fmd"
16
17 config 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
28 choice
29 prompt "SMSC/Microchip 1036 SuperIO config address"
30 depends on SUPERIO_SMSC_SIO1036
31 default BILBY_SMSC_SIO1036_BASE_164E
32
33 config BILBY_SMSC_SIO1036_BASE_4E
34 bool "0x4e/0x4d base address"
35
36 config BILBY_SMSC_SIO1036_BASE_164E
37 bool "0x164e/0x164d base address"
38
39 endchoice
40
41 config SUPERIO_ADDR_BASE
42 hex
43 default 0x4e if BILBY_SMSC_SIO1036_BASE_4E
44 default 0x164e if BILBY_SMSC_SIO1036_BASE_164E
45
46 config CBFS_SIZE
47 default 0xfef000 # Maximum size for the Bilby FMAP
48
49 config MAINBOARD_DIR
50 default "amd/bilby"
51
52 config MAINBOARD_PART_NUMBER
53 default "BILBY"
54
55 config ONBOARD_VGA_IS_PRIMARY
56 bool
57 default y
58
59 if !AMD_LPC_DEBUG_CARD
60 choice
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
67 config BILBY_IOMUX_USE_LPC
68 bool "LPC signals"
69
70 config BILBY_IOMUX_USE_EMMC
71 bool "eMMC signals"
72
73 endchoice
74 endif # !AMD_LPC_DEBUG_CARD
75
76 config 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
83 if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
84 config EFS_SPI_READ_MODE
85 default 3 # Quad IO (1-1-4)
86
87 config EFS_SPI_SPEED
88 default 0 # 66MHz
89
90 config EFS_SPI_MICRON_FLAG
91 default 0
92
93 config NORMAL_READ_SPI_SPEED
94 default 1 # 33MHz
95
96 config ALT_SPI_SPEED
97 default 1 # 33MHz
98
99 config TPM_SPI_SPEED
100 default 1 # 33MHz
101
102 endif # !EM100
103
104 choice
105 prompt "DDI-0 connector type"
106 default CONNECT_DP_ON_DDI_0
107
108 config CONNECT_HDMI_ON_DDI_0
109 bool "Use HDMI interface"
110
111 config CONNECT_DP_ON_DDI_0
112 bool "Use Displayport interface"
113 endchoice
114
115 config DDI0_CONNECTOR_TYPE
116 int
117 default 0 if CONNECT_DP_ON_DDI_0
118 default 4 if CONNECT_HDMI_ON_DDI_0
119
120 choice
121 prompt "DDI-1 connector type"
122 default CONNECT_DP_ON_DDI_1
123
124 config CONNECT_HDMI_ON_DDI_1
125 bool "Use HDMI interface"
126
127 config CONNECT_DP_ON_DDI_1
128 bool "Use Displayport interface"
129 endchoice
130
131 config DDI1_CONNECTOR_TYPE
132 int
133 default 0 if CONNECT_DP_ON_DDI_1
134 default 4 if CONNECT_HDMI_ON_DDI_1
135
136 endif # BOARD_AMD_BILBY