1 # SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_AMD_BIRMANPLUS_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
19 config BOARD_AMD_BIRMANPLUS_PHOENIX
20 select BOARD_AMD_BIRMANPLUS_COMMON
21 select SOC_AMD_PHOENIX_FSP
23 config BOARD_AMD_BIRMANPLUS_GLINDA
24 select BOARD_AMD_BIRMANPLUS_COMMON
27 if BOARD_AMD_BIRMANPLUS_COMMON
30 default "src/mainboard/amd/birman_plus/chromeos_phoenix.fmd" if CHROMEOS && BOARD_AMD_BIRMANPLUS_PHOENIX
31 default "src/mainboard/amd/birman_plus/chromeos_glinda.fmd" if CHROMEOS && BOARD_AMD_BIRMANPLUS_GLINDA
32 default "src/mainboard/amd/birman_plus/board_phoenix.fmd" if BOARD_AMD_BIRMANPLUS_PHOENIX
33 default "src/mainboard/amd/birman_plus/board_glinda.fmd" if BOARD_AMD_BIRMANPLUS_GLINDA
36 default "amd/birman_plus" if BOARD_AMD_BIRMANPLUS_PHOENIX || BOARD_AMD_BIRMANPLUS_GLINDA
38 config MAINBOARD_PART_NUMBER
39 default "Birmanplus_Phoenix" if BOARD_AMD_BIRMANPLUS_PHOENIX
40 default "Birmanplus_Glinda" if BOARD_AMD_BIRMANPLUS_GLINDA
43 default "devicetree_phoenix.cb" if BOARD_AMD_BIRMANPLUS_PHOENIX
44 default "devicetree_glinda.cb" if BOARD_AMD_BIRMANPLUS_GLINDA
46 config BIRMANPLUS_HAVE_MCHP_FW
47 bool "Have Microchip EC firmware?"
50 config BIRMANPLUS_MCHP_SIG_FILE
51 string "Microchip EC signature file"
52 depends on BIRMAN_HAVE_MCHP_FW
53 default "3rdparty/blobs/mainboard/amd/birman_plus/EC_birmanplus_sig.bin"
55 The EC sig blob is the first 4kBytes of the firmware image.
56 The first 4 bytes form a pointer (with CRC) to where the EC firmware
59 config AMD_SOC_CONSOLE_UART
60 default y if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
62 config BIRMANPLUS_MCHP_FW_FILE
63 string "Microchip EC firmware file"
64 depends on BIRMAN_HAVE_MCHP_FW
65 default "3rdparty/blobs/mainboard/amd/birman_plus/EC_birmanplus.bin"
67 The EC firmware blob is at the EC_BODY FMAP region of the firmware image.
70 select VBOOT_NO_BOARD_SUPPORT
71 select VBOOT_SEPARATE_VERSTAGE
72 select VBOOT_STARTS_IN_BOOTBLOCK
74 config VBOOT_VBNV_OFFSET
80 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
81 # Add the EFS and EC to the RO region only
82 # This is a birmanplus specific override of soc/amd/(phoenix | glinda)/Kconfig
83 default "apu/amdfw apu/ecfw"
86 # Use default libpayload config
87 select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
88 # We don't have recovery buttons, so we can't manually enable devmode.
89 select GBB_FLAG_FORCE_DEV_SWITCH_ON
91 config ENABLE_EVAL_CARD
92 bool "Enable Eval Card"
94 Enable the Eval Card PCIe slot
96 config ENABLE_EVAL_19V
97 bool "Enable 19V rail for Eval Card"
98 depends on ENABLE_EVAL_CARD
100 Enable the 19V rail for Eval Card PCIe slot
103 prompt "DT SLOT/M.2 SSD1 ENABLE"
104 default ENABLE_DT_SLOT_BIRMANPLUS
106 Either DT slot or M.2 SSD1 can be used, as they are sharing PCIe lanes.
108 config ENABLE_DT_SLOT_BIRMANPLUS
109 bool "Enable DT slot"
111 config ENABLE_M2_SSD1_BIRMANPLUS
112 bool "Enable M.2 SSD1"
114 config DISABLE_DT_M2_BIRMANPLUS
115 bool "Disable both DT and M.2 slot"
120 prompt "WLAN/WWAN Selection"
121 default WLAN0_WWAN0_BIRMANPLUS
123 WLAN and WWAN lane configuration
125 config WLAN0_WWAN0_BIRMANPLUS
126 bool "Both WLAN and WWAN Enabled (1 lane each)"
128 config WLAN01_BIRMANPLUS
129 bool "Only WLAN Enabled (2 lanes WLAN, 0 lanes WWAN)"
131 config WWAN01_BIRMANPLUS
132 bool "Only WWAN Enabled (2 lanes WWAN, 0 lanes WLAN)"
135 if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
136 config EFS_SPI_READ_MODE
137 default 3 # Quad IO (1-1-4)
142 config EFS_SPI_MICRON_FLAG
145 config NORMAL_READ_SPI_SPEED
156 endif # BOARD_AMD_BIRMANPLUS_COMMON