blob: 83e3b823f7887e5c0059f01c7ec0788d40ae1d7e [file] [log] [blame]
Martin Roth3c963d92022-10-06 16:29:07 -06001# SPDX-License-Identifier: GPL-2.0-only
2
Felix Singer35a30de2023-11-09 22:27:30 +01003config BOARD_AMD_BIRMAN_COMMON
4 def_bool n
Martin Roth86284c22022-10-27 18:15:25 -06005 select BOARD_ROMSIZE_KB_16384 # Birman actually has a 32MiB ROM
Martin Roth3c963d92022-10-06 16:29:07 -06006 select EC_ACPI
Fred Reitberger997ead62023-02-23 14:09:10 -05007 select SOC_AMD_COMMON_BLOCK_USE_ESPI if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
Fred Reitberger67bc6ab2023-04-06 10:01:23 -04008 select DRIVERS_PCIE_RTD3_DEVICE
Martin Roth3c963d92022-10-06 16:29:07 -06009 select MAINBOARD_HAS_CHROMEOS
10 select PCIEXP_ASPM
11 select PCIEXP_CLK_PM
12 select PCIEXP_COMMON_CLOCK
13 select PCIEXP_L1_SUB_STATE
Fred Reitberger997ead62023-02-23 14:09:10 -050014 select SOC_AMD_COMMON_BLOCK_ESPI_RETAIN_PORT80_EN if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
15 select SOC_AMD_COMMON_BLOCK_SIMNOW_SUPPORTED
Fred Reitbergere8696e12023-06-23 09:59:18 -040016 select SPI_FLASH_EXIT_4_BYTE_ADDR_MODE
Martin Roth3c963d92022-10-06 16:29:07 -060017
Felix Singer35a30de2023-11-09 22:27:30 +010018config BOARD_AMD_BIRMAN_PHOENIX
19 select BOARD_AMD_BIRMAN_COMMON
20 select SOC_AMD_PHOENIX
21
22config BOARD_AMD_BIRMAN_GLINDA
23 select BOARD_AMD_BIRMAN_COMMON
24 select SOC_AMD_GLINDA
25
26if BOARD_AMD_BIRMAN_COMMON
27
Martin Roth3c963d92022-10-06 16:29:07 -060028config FMDFILE
Fred Reitberger0ef9d892023-02-08 13:02:42 -050029 default "src/mainboard/amd/birman/chromeos_glinda.fmd" if CHROMEOS && BOARD_AMD_BIRMAN_GLINDA
30 default "src/mainboard/amd/birman/chromeos_phoenix.fmd" if CHROMEOS && BOARD_AMD_BIRMAN_PHOENIX
31 default "src/mainboard/amd/birman/board_glinda.fmd" if BOARD_AMD_BIRMAN_GLINDA
32 default "src/mainboard/amd/birman/board_phoenix.fmd"
Martin Roth3c963d92022-10-06 16:29:07 -060033
34config MAINBOARD_DIR
35 default "amd/birman"
36
37config MAINBOARD_PART_NUMBER
Martin Roth86284c22022-10-27 18:15:25 -060038 default "Birman_Glinda" if BOARD_AMD_BIRMAN_GLINDA
Martin Roth20646cd2023-01-04 21:27:06 -070039 default "Birman_Phoenix"
Martin Roth86284c22022-10-27 18:15:25 -060040
41config DEVICETREE
42 default "devicetree_glinda.cb" if BOARD_AMD_BIRMAN_GLINDA
Martin Roth20646cd2023-01-04 21:27:06 -070043 default "devicetree_phoenix.cb"
Martin Roth3c963d92022-10-06 16:29:07 -060044
Martin Roth3c963d92022-10-06 16:29:07 -060045config BIRMAN_HAVE_MCHP_FW
46 bool "Have Microchip EC firmware?"
47 default n
48
49config BIRMAN_MCHP_SIG_FILE
50 string "Microchip EC signature file"
51 depends on BIRMAN_HAVE_MCHP_FW
52 default "3rdparty/blobs/mainboard/amd/birman/EC_birman_sig.bin"
53 help
54 The EC sig blob is the first 4kBytes of the firmware image.
55 The first 4 bytes form a pointer (with CRC) to where the EC firmware
56 is located
57
Martin Roth2fca0262023-05-10 13:32:29 -060058config AMD_SOC_CONSOLE_UART
59 default y if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
60
Martin Roth3c963d92022-10-06 16:29:07 -060061config BIRMAN_MCHP_FW_FILE
62 string "Microchip EC firmware file"
63 depends on BIRMAN_HAVE_MCHP_FW
64 default "3rdparty/blobs/mainboard/amd/birman/EC_birman.bin"
65 help
Fred Reitberger75e720b2022-12-12 10:13:41 -050066 The EC firmware blob is at the EC_BODY FMAP region of the firmware image.
Martin Roth3c963d92022-10-06 16:29:07 -060067
68config VBOOT
69 select VBOOT_NO_BOARD_SUPPORT
70 select VBOOT_SEPARATE_VERSTAGE
71 select VBOOT_STARTS_IN_BOOTBLOCK
72
73config VBOOT_VBNV_OFFSET
74 hex
75 default 0x2A
76
77config RO_REGION_ONLY
78 string
79 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
80 # Add the EFS and EC to the RO region only
Martin Roth20646cd2023-01-04 21:27:06 -070081 # This is a birman-specific override of soc/amd/(phoenix | glinda)/Kconfig
Martin Roth3c963d92022-10-06 16:29:07 -060082 default "apu/amdfw apu/ecfw"
83
84config CHROMEOS
85 # Use default libpayload config
86 select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
87 # We don't have recovery buttons, so we can't manually enable devmode.
88 select GBB_FLAG_FORCE_DEV_SWITCH_ON
89
Fred Reitberger3c8a8c22023-03-23 13:29:01 -040090config ENABLE_EVAL_CARD
91 bool "Enable Eval Card"
92 help
93 Enable the Eval Card PCIe slot
94
95config ENABLE_EVAL_19V
96 bool "Enable 19V rail for Eval Card"
97 depends on ENABLE_EVAL_CARD
98 help
99 Enable the 19V rail for Eval Card PCIe slot
100
101choice
102 prompt "DT SLOT/M.2 SSD1 ENABLE"
103 default ENABLE_DT_SLOT
104 help
105 Either DT slot or M.2 SSD1 can be used, as they are sharing PCIe lanes.
106
107config ENABLE_DT_SLOT
108 bool "Enable DT slot"
109
110config ENABLE_M2_SSD1
111 bool "Enable M.2 SSD1"
112
113config DISABLE_DT_M2
114 bool "Disable both DT and M.2 slot"
115
116endchoice
117
118choice
119 prompt "WLAN/WWAN Selection"
120 default WLAN0_WWAN0
121 help
122 WLAN and WWAN lane configuration
123
124config WLAN0_WWAN0
125 bool "Both WLAN and WWAN Enabled (1 lane each)"
126
127config WLAN01
128 bool "Only WLAN Enabled (2 lanes WLAN, 0 lanes WWAN)"
129
130config WWAN01
131 bool "Only WWAN Enabled (2 lanes WWAN, 0 lanes WLAN)"
132
133endchoice
134
Martin Roth3c963d92022-10-06 16:29:07 -0600135if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
136config EFS_SPI_READ_MODE
137 default 3 # Quad IO (1-1-4)
138
139config EFS_SPI_SPEED
140 default 0 # 66MHz
141
142config EFS_SPI_MICRON_FLAG
143 default 0
144
145config NORMAL_READ_SPI_SPEED
146 default 1 # 33MHz
147
148config ALT_SPI_SPEED
149 default 1 # 33MHz
150
151config TPM_SPI_SPEED
152 default 1 # 33MHz
153
154endif # !EM100
155
Martin Roth20646cd2023-01-04 21:27:06 -0700156endif # BOARD_AMD_BIRMAN_GLINDA || BOARD_AMD_BIRMAN_PHOENIX