1 # SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_AMD_BIRMAN_COMMON
5 select BOARD_ROMSIZE_KB_16384 # Birman actually has a 32MiB ROM
7 select SOC_AMD_COMMON_BLOCK_USE_ESPI if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
8 select DRIVERS_PCIE_RTD3_DEVICE
9 select MAINBOARD_HAS_CHROMEOS
12 select PCIEXP_COMMON_CLOCK
13 select PCIEXP_L1_SUB_STATE
14 select SOC_AMD_COMMON_BLOCK_ESPI_RETAIN_PORT80_EN if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
15 select SOC_AMD_COMMON_BLOCK_SIMNOW_SUPPORTED
16 select SPI_FLASH_EXIT_4_BYTE_ADDR_MODE
18 config BOARD_AMD_BIRMAN_PHOENIX_FSP
19 select BOARD_AMD_BIRMAN_COMMON
20 select SOC_AMD_PHOENIX_FSP
22 config BOARD_AMD_BIRMAN_PHOENIX_OPENSIL
23 select BOARD_AMD_BIRMAN_COMMON
24 select SOC_AMD_PHOENIX_OPENSIL
26 config BOARD_AMD_BIRMAN_GLINDA
27 select BOARD_AMD_BIRMAN_COMMON
30 if BOARD_AMD_BIRMAN_COMMON
33 default "src/mainboard/amd/birman/chromeos_glinda.fmd" if CHROMEOS && BOARD_AMD_BIRMAN_GLINDA
34 default "src/mainboard/amd/birman/chromeos_phoenix.fmd" if CHROMEOS
35 default "src/mainboard/amd/birman/board_glinda.fmd" if BOARD_AMD_BIRMAN_GLINDA
36 default "src/mainboard/amd/birman/board_phoenix.fmd"
41 config MAINBOARD_PART_NUMBER
42 default "Birman_Glinda" if BOARD_AMD_BIRMAN_GLINDA
43 default "Birman_Phoenix_FSP" if BOARD_AMD_BIRMAN_PHOENIX_FSP
44 default "Birman_Phoenix_openSIL" if BOARD_AMD_BIRMAN_PHOENIX_OPENSIL
47 default "devicetree_glinda.cb" if BOARD_AMD_BIRMAN_GLINDA
48 default "devicetree_phoenix_fsp.cb" if BOARD_AMD_BIRMAN_PHOENIX_FSP
49 default "devicetree_phoenix_opensil.cb" if BOARD_AMD_BIRMAN_PHOENIX_OPENSIL
51 config BIRMAN_HAVE_MCHP_FW
52 bool "Have Microchip EC firmware?"
55 config BIRMAN_MCHP_SIG_FILE
56 string "Microchip EC signature file"
57 depends on BIRMAN_HAVE_MCHP_FW
58 default "3rdparty/blobs/mainboard/amd/birman/EC_birman_sig.bin"
60 The EC sig blob is the first 4kBytes of the firmware image.
61 The first 4 bytes form a pointer (with CRC) to where the EC firmware
64 config AMD_SOC_CONSOLE_UART
65 default y if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
67 config BIRMAN_MCHP_FW_FILE
68 string "Microchip EC firmware file"
69 depends on BIRMAN_HAVE_MCHP_FW
70 default "3rdparty/blobs/mainboard/amd/birman/EC_birman.bin"
72 The EC firmware blob is at the EC_BODY FMAP region of the firmware image.
75 select VBOOT_NO_BOARD_SUPPORT
76 select VBOOT_SEPARATE_VERSTAGE
77 select VBOOT_STARTS_IN_BOOTBLOCK
79 config VBOOT_VBNV_OFFSET
85 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
86 # Add the EFS and EC to the RO region only
87 # This is a birman-specific override of soc/amd/(phoenix | glinda)/Kconfig
88 default "apu/amdfw apu/ecfw"
91 # Use default libpayload config
92 select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
93 # We don't have recovery buttons, so we can't manually enable devmode.
94 select GBB_FLAG_FORCE_DEV_SWITCH_ON
96 config ENABLE_EVAL_CARD
97 bool "Enable Eval Card"
99 Enable the Eval Card PCIe slot
101 config ENABLE_EVAL_19V
102 bool "Enable 19V rail for Eval Card"
103 depends on ENABLE_EVAL_CARD
105 Enable the 19V rail for Eval Card PCIe slot
108 prompt "DT SLOT/M.2 SSD1 ENABLE"
109 default ENABLE_DT_SLOT
111 Either DT slot or M.2 SSD1 can be used, as they are sharing PCIe lanes.
113 config ENABLE_DT_SLOT
114 bool "Enable DT slot"
116 config ENABLE_M2_SSD1
117 bool "Enable M.2 SSD1"
120 bool "Disable both DT and M.2 slot"
125 prompt "WLAN/WWAN Selection"
128 WLAN and WWAN lane configuration
131 bool "Both WLAN and WWAN Enabled (1 lane each)"
134 bool "Only WLAN Enabled (2 lanes WLAN, 0 lanes WWAN)"
137 bool "Only WWAN Enabled (2 lanes WWAN, 0 lanes WLAN)"
141 if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
142 config EFS_SPI_READ_MODE
143 default 3 # Quad IO (1-1-4)
148 config EFS_SPI_MICRON_FLAG
151 config NORMAL_READ_SPI_SPEED
162 endif # BOARD_AMD_BIRMAN_COMMON